CVE-2014-0099: Improper Neutralization of CRLF Sequences in HTTP Headers in Apache Tomcat

org.apache.tomcat:tomcat Updated 02 Oct 2025

Summary

14/05/2022
Yes i
Moderate
Not published

CVE-2014-0099: Improper Neutralization of CRLF Sequences in HTTP Headers in Apache Tomcat. Affects org.apache.tomcat:tomcat across 3 version ranges.

< 6.0.40 >= 7.0.0, < 7.0.54 >= 8.0.0, < 8.0.6

Fixed in 6.0.40, 7.0.54 or 8.0.6, depending on the release line you run. 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 widely used for hosting Java-based web applications. It provides a robust and scalable platform for running Java web applications. This vulnerability affects versions of Apache Tomcat prior to 6.0.40, 7.x prior to 7.0.53, and 8.x prior to 8.0.4. The vulnerability arises when Apache Tomcat is operated behind a reverse proxy. An attacker can exploit this vulnerability by sending a crafted Content-Length HTTP header, leading to HTTP request smuggling attacks.

Vulnerability Detail

The vulnerability (CVE-2014-0099) in Apache Tomcat allows remote attackers to conduct HTTP request smuggling attacks. The issue is caused by an integer overflow in the Ascii.java file of the Tomcat utility library. When operated behind a reverse proxy, an attacker can manipulate the Content-Length HTTP header to bypass security measures and smuggle malicious requests. This can lead to various security risks, including unauthorized access, data leakage, and potential remote code execution.

How To Fix

Fixed versions by release line

The minimum fixed version depends on the release line you run.

  • < 6.0.40 6.0.40
  • >= 7.0.0, < 7.0.54 7.0.54
  • >= 8.0.0, < 8.0.6 8.0.6

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Workaround

If upgrading Apache Tomcat is not immediately feasible, a possible workaround is to configure the reverse proxy to reject or sanitize requests with a crafted Content-Length HTTP header. This can be achieved by implementing custom request filtering rules or using a web application firewall (WAF) to block such requests. However, applying the workaround may introduce additional complexities and is not a substitute for upgrading to a fixed version.

Conclusion

The vulnerability (CVE-2014-0099) in Apache Tomcat allows remote attackers to conduct HTTP request smuggling attacks. It is crucial to upgrade to a fixed version of Apache Tomcat to mitigate the risk. Regularly updating Apache Tomcat and implementing security best practices are essential to protect against such vulnerabilities. For further support and assistance in vulnerability remediation, you can reach out to DevNack.com.

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

Share this vulnerability

FAQ

Apache Tomcat is an open-source web server and servlet container that provides a platform for running Java-based web applications.

HTTP request smuggling is a technique used by attackers to manipulate the interpretation of HTTP requests by intermediaries, such as reverse proxies or web application firewalls, leading to security vulnerabilities.

The potential risks of this vulnerability include unauthorized access to sensitive information, data leakage, and potential remote code execution.

You can use Vulert Playground (https://vulert.com/scanner) to check if your application is affected by this vulnerability. Vulert Playground allows you to analyze your pom.xml file and provides real-time alerts for open-source vulnerabilities.

Here is an example of a crafted Content-Length HTTP header that can be used to exploit the vulnerability:

Content-Length: 1234 Transfer-Encoding: chunked

GET / HTTP/1.1 Host: example.com

This example demonstrates how an attacker can manipulate the Content-Length header to smuggle a malicious request.

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

Fixed versions by release line

The minimum fixed version depends on the release line you run.

  • < 6.0.40 6.0.40
  • >= 7.0.0, < 7.0.54 7.0.54
  • >= 8.0.0, < 8.0.6 8.0.6

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. 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