CVE-2007-5461 Apache Tomcat Path Traversal Vulnerability

Low 3.5 Published Updated

Authenticated attackers can read arbitrary files via WebDAV requests in Apache Tomcat under specific configurations.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2007-5461?

CVE-2007-5461 is a low-severity path traversal vulnerability in Apache Tomcat, published on 15 Oct 2007. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

Absolute path traversal vulnerability in Apache Tomcat 4.0.0 through 4.0.6, 4.1.0, 5.0.0, 5.5.0 through 5.5.25, and 6.0.0 through 6.0.14, under certain configurations, allows remote authenticated users to read arbitrary files via a WebDAV write request that specifies an entity with a SYSTEM tag.

Weakness: CWE-22

Which versions are affected by CVE-2007-5461?

8 open source packages ship an affected version, including org.apache.tomcat:tomcat. It affects 1 product.

PackageAffectedFixed in
org.apache.tomcat:tomcat MavenAll versionsNone
org.apache.tomcat:tomcat MavenAll versionsNone
org.apache.tomcat:tomcat MavenFrom 4.0.0 to 4.0.6None
org.apache.tomcat:tomcat MavenFrom 4.0.0 to 4.0.6None
org.apache.tomcat:tomcat MavenFrom 5.5.0 to 5.5.25None
org.apache.tomcat:tomcat MavenFrom 5.5.0 to 5.5.25None
2 more packages
org.apache.tomcat:tomcat MavenFrom 6.0.0 to 6.0.14None
org.apache.tomcat:tomcat MavenFrom 6.0.0 to 6.0.14None

Products include Apache Tomcat.

How do I fix CVE-2007-5461?

Upgrade to a fixed version.

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

Is CVE-2007-5461 being exploited?

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

Public exploit code: 2 Exploit-DB entries.

All Apache Tomcat vulnerabilities

Sources

Also known as GHSA-v5p2-vg3c-pmrr.

Is CVE-2007-5461 in your software?

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

Check your SBOMs for free