CVE-2005-4836: Apache Tomcat allows remote attackers to read JSP source files

org.apache.tomcat:tomcat Updated 02 Oct 2025

Summary

01/05/2022
No i
High
Not published

CVE-2005-4836: Apache Tomcat allows remote attackers to read JSP source files. Affects org.apache.tomcat:tomcat versions >= 4.1.15, <= 4.1.40. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

Apache Tomcat is an open-source web server and servlet container that is used to deploy Java-based web applications. It provides a Java Servlet and JavaServer Pages (JSP) environment for running web applications. The vulnerability in Apache Tomcat versions 4.1.15 through 4.1.40 allows remote attackers to read JSP source files and obtain sensitive information. This vulnerability arises due to the HTTP/1.1 connector not rejecting NULL bytes in a URL when the 'allowLinking' configuration is enabled.

Vulnerability Detail

The vulnerability allows an attacker to read JSP source files, which may contain sensitive information such as database credentials, API keys, or other confidential data. By exploiting this vulnerability, an attacker can gain unauthorized access to the source code and potentially use the obtained information for further attacks or unauthorized actions.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

To disable the 'allowLinking' configuration option, modify the Tomcat configuration file (usually located at conf/server.xml) and set the 'allowLinking' attribute to 'false' in the appropriate Connector element. Here is an example:

<Connector ...
       allowLinking="false"
       ... />

Conclusion

The vulnerability in Apache Tomcat versions 4.1.15 through 4.1.40 allows remote attackers to read JSP source files and obtain sensitive information. It is crucial to upgrade to a non-affected version or apply the recommended workaround to mitigate the risk. For further assistance in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for org.apache.tomcat:tomcat →

Share this vulnerability

FAQ

The vulnerability allows remote attackers to read JSP source files and obtain sensitive information, which can lead to unauthorized access, data breaches, or further exploitation of the compromised system.

The vulnerability affects Apache Tomcat versions 4.1.15 through 4.1.40.

Yes, users can disable the 'allowLinking' configuration option to mitigate the risk. Please refer to the 'workaround' section for instructions.

There may be known exploits targeting this vulnerability. It is recommended to apply the necessary fixes or workarounds as soon as possible to prevent potential attacks.

For more information about this vulnerability, you can refer to the CVE identifier CVE-2005-4836 or consult the official Apache Tomcat documentation and security advisories.

Related vulnerabilities

Recent vulnerabilities recorded for org.apache.tomcat:tomcat.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback