Unauthenticated file disclosure via unvalidated request paths
Published May 10, 2023 · Updated Jan 27, 2025
Path traversal in m.static 2.2.0 and earlier allows remote attackers to read files outside the configured web root via crafted URLs. The requestFile path joins options.cwd with req.url without validating or neutralizing parent-directory segments before createReadStream opens it. An unauthenticated HTTP request is sufficient when the server can read the targeted file; the flaw discloses file contents but does not modify them.
Summary
What happened
Path traversal in m.static 2.2.0 and earlier allows remote attackers to read files outside the configured web root via crafted URLs. The requestFile path joins options.cwd with req.url without validating or neutralizing parent-directory segments before createReadStream opens it. An unauthenticated HTTP request is sufficient when the server can read the targeted file; the flaw discloses file contents but does not modify them.
The record
- CVE
- CVE-2023-26126
- Published
- May 10, 2023
- Updated
- Jan 27, 2025
- Vendor
- Ivo von Putzer Reibegg
- Product
- m.static
- Classifications
- CWE-22, T1190, T1005
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- May 10, 2023CVE publishedPublication date reported by the CVE source.
- Jan 27, 2025Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=0 <*
What conditions does exploitation require?
What is affected?
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- Path traversal vulnerability in [email protected]functional · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo