CVE-2007-1742 Path traversal in n/a

Low 3.7 Published Updated

Local attackers can bypass directory restrictions in Apache suexec to modify files outside the document root if write access is granted.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2007-1742?

CVE-2007-1742 is a low-severity path traversal vulnerability in Apache Http Server, published on 13 Apr 2007. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

suexec in Apache HTTP Server (httpd) 2.2.3 uses a partial comparison for verifying whether the current directory is within the document root, which might allow local users to perform unauthorized operations on incorrect directories, as demonstrated using "html_backup" and "htmleditor" under an "html" directory. NOTE: the researcher, who is reliable, claims that the vendor disputes the issue because "the attacks described rely on an insecure server configuration" in which the user "has write access to the document root."

Which versions are affected by CVE-2007-1742?

It affects 1 product.

Products include Apache Http Server.

How do I fix CVE-2007-1742?

Apply the vendor's patch.

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

Is CVE-2007-1742 being exploited?

There is no known exploitation of CVE-2007-1742 in the wild and no public exploit code.

All Apache Http Server vulnerabilities

Sources

Also known as DEBIAN-CVE-2007-1742, GHSA-gm29-7qcq-q6q6.

Is CVE-2007-1742 in your software?

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

Check your SBOMs for free