CVE-2007-5342: Medium severity Apache Tomcat vulnerability

Published Dec 27, 2007
·
Updated

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.

Other sources

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.

Affected Software

35 affected components
maven/org.apache.tomcat:tomcat-juli>=6.0.0<=6.0.15
maven/org.apache.tomcat:tomcat-juli>=5.5.9<=5.5.25
Apache Tomcat=5.5.9
Apache Tomcat=5.5.10
Apache Tomcat=5.5.11
Apache Tomcat=5.5.12
Apache Tomcat=5.5.13
Apache Tomcat=5.5.14
Apache Tomcat=5.5.15
Apache Tomcat=5.5.16
Apache Tomcat=5.5.17
Apache Tomcat=5.5.18
Apache Tomcat=5.5.19
Apache Tomcat=5.5.20
Apache Tomcat=5.5.21
Apache Tomcat=5.5.22
Apache Tomcat=5.5.23
Apache Tomcat=5.5.24
Apache Tomcat=5.5.25
Apache Tomcat=6.0
Apache Tomcat=6.0.1
Apache Tomcat=6.0.2
Apache Tomcat=6.0.3
Apache Tomcat=6.0.4
Apache Tomcat=6.0.5
Apache Tomcat=6.0.6
Apache Tomcat=6.0.7
Apache Tomcat=6.0.8
Apache Tomcat=6.0.9
Apache Tomcat=6.0.10
Apache Tomcat=6.0.11
Apache Tomcat=6.0.12
Apache Tomcat=6.0.13
Apache Tomcat=6.0.14
Apache Tomcat=6.0.15

Remediation

Event History

Dec 27, 2007
CVE Published
10:46 PM
Dec 28, 2007
CVE Published
via MITRE·03:00 AM
Data Sourced
via MITRE·03:00 AM
Description
May 1, 2022
Advisory Published
06:32 PM

Frequently Asked Questions

1

What is the severity of CVE-2007-5342?

CVE-2007-5342 is rated as a medium severity vulnerability due to the potential for unauthorized modifications to logging configurations by attackers.

2

How do I fix CVE-2007-5342?

To mitigate CVE-2007-5342, it is recommended to update to Apache Tomcat versions 5.5.26 or 6.0.16 or later, which include fixed permissions in the catalina.policy.

3

What impact does CVE-2007-5342 have on Apache Tomcat?

CVE-2007-5342 allows attackers to modify logging configurations and potentially overwrite arbitrary files, posing a risk to system integrity.

4

Which versions of Apache Tomcat are affected by CVE-2007-5342?

CVE-2007-5342 affects Apache Tomcat versions 5.5.9 through 5.5.25 and 6.0.0 through 6.0.15.

5

Are there known exploits for CVE-2007-5342?

Yes, there are known exploits that demonstrate the ability to exploit the vulnerabilities in CVE-2007-5342 by manipulating the logging configuration.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203