CVE-2004-2640 Path traversal in n/a

Medium 5.0 Published Updated

Remote attackers can read arbitrary files via directory traversal in LinuxStat's lstat.cgi script, exposing sensitive system data.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2004-2640?

CVE-2004-2640 is a medium-severity path traversal vulnerability in n/a, published on 4 Dec 2005. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Directory traversal vulnerability in lstat.cgi in LinuxStat before 2.3.1 allows remote attackers to read arbitrary files via (1) .. (dot dot) sequences or (2) absolute paths to the template parameter.

Which versions are affected by CVE-2004-2640?

How do I fix CVE-2004-2640?

No fix has been published for CVE-2004-2640 yet. Limit exposure of the affected software until one is available.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2004-2640 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2004-2640 exists.

Public exploit code: 1 Exploit-DB entry.

Sources

Also known as GHSA-rqvp-h98w-9g7q.

Is CVE-2004-2640 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free