CVE-2007-5685 Path traversal in n/a

Medium 5.0 Published Updated

Remote attackers can read arbitrary files via directory traversal in the shttp web server's safe_path function.

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-2007-5685?

CVE-2007-5685 is a medium-severity path traversal vulnerability in n/a, published on 28 Oct 2007. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

The safe_path function in shttp before 0.0.5 allows remote attackers to conduct directory traversal attacks and read files via a combination of ".." and sub-directory specifiers that resolve to a pathname that is at or below the same level as the web document root, but in a different part of the directory tree.

Weakness: CWE-22

Which versions are affected by CVE-2007-5685?

It affects 1 product.

Products include Serverkit Shttp.

How do I fix CVE-2007-5685?

No fix has been published for CVE-2007-5685 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-2007-5685 being exploited?

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

Public exploit code: 1 Exploit-DB entry.

Sources

Also known as GHSA-fp8w-ccf9-rfr2.

Is CVE-2007-5685 in your software?

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

Check your SBOMs for free