PT-2025-38247 · Esm.Sh · Esm.Sh

J3Ssie

·

Published

2025-09-17

·

Updated

2026-05-12

·

CVE-2025-59341

CVSS v4.0

8.7

High

VectorAV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
Name of the Vulnerable Software and Affected Versions esm.sh versions prior to 136
Description A Local File Inclusion (LFI) issue was identified in the esm.sh service URL handling. An attacker could craft a request that causes the server to read and return files from the host filesystem or other unintended file sources. The vulnerable code is located in router.go at line 1168. An attacker can exploit this by sending a crafted request to read local files, such as /etc/passwd or esm.db. The vulnerability is triggered by including .. in the URL path.
Recommendations Remove any .. in the URL path before processing the file.

Exploit

Fix

Relative Path Traversal

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2025-59341
GHSA-49PV-GWXP-532R
GO-2025-3962
OPENSUSE-SU-2025:15576-1
SUSE-SU-2025:3799-1

Affected Products

Esm.Sh