CVE-2007-5342 JULI logging component in Apache Tomcat does not restrict certain permissions for web applications

Medium 6.4 Published Updated

Attackers can modify logging configurations and overwrite arbitrary files due to insufficient permission restrictions in the default JULI policy.

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-5342?

CVE-2007-5342 is a medium-severity missing authorization vulnerability in Apache Tomcat, published on 27 Dec 2007. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

The default catalina.policy in the JULI logging component in Apache Tomcat 5.5.9 through 5.5.25 and 6.0.0 through 6.0.15 does not restrict certain permissions for web applications, which allows attackers to modify logging configuration options and overwrite arbitrary files, as demonstrated by changing the (1) level, (2) directory, and (3) prefix attributes in the org.apache.juli.FileHandler handler.

Weakness: CWE-264

Which versions are affected by CVE-2007-5342?

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

PackageAffectedFixed in
org.apache.tomcat:tomcat-juli MavenFrom 5.5.9 to 5.5.25None
org.apache.tomcat:tomcat-juli MavenFrom 5.5.9 to 5.5.25None
org.apache.tomcat:tomcat-juli MavenFrom 6.0.0 to 6.0.15None
org.apache.tomcat:tomcat-juli MavenFrom 6.0.0 to 6.0.15None

Products include Apache Tomcat.

How do I fix CVE-2007-5342?

Upgrade to a fixed version.

Upgrade, and check permissions on every request on the server, not only in the interface. More about Missing authorization.

Is CVE-2007-5342 being exploited?

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

All Apache Tomcat vulnerabilities

Sources

Also known as GHSA-w65j-cmqc-37p2.

Is CVE-2007-5342 in your software?

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

Check your SBOMs for free