GHSA-xh5x-j8jf-pcpx CVE-2014-0099
Improper Neutralization of CRLF Sequences in HTTP Headers in Apache Tomcat
- Severity
- Medium
- The publisher's own rating, not a CVSS score
- Exploit chance (EPSS)
- 8.84%
- Chance of exploitation in the next 30 days. Higher than 95.20% of scored vulnerabilities.
- Known exploited
- No
- Not in CISA's catalog
- Weakness
- CWE-113 Improper Neutralization of CRLF Sequences in HTTP Headers ('HTTP Request/Response Splitting')
- Fix
- Available
- 2 packages have a fixed version
Description
Integer overflow in java/org/apache/tomcat/util/buf/Ascii.java in Apache Tomcat before 6.0.40, 7.x before 7.0.53, and 8.x before 8.0.4, when operated behind a reverse proxy, allows remote attackers to conduct HTTP request smuggling attacks via a crafted Content-Length HTTP header.
Affected versions
Maven
| Package | Vulnerable | Fixed in |
|---|---|---|
| org.apache.tomcat:tomcat | < 6.0.40 |
6.0.40 |
| org.apache.tomcat:tomcat | >= 7.0.0, < 7.0.54 |
7.0.54 |
| org.apache.tomcat:tomcat | >= 8.0.0, < 8.0.6 |
8.0.6 |
| org.apache.tomcat:tomcat-util | < 6.0.40 |
6.0.40 |
| org.apache.tomcat:tomcat-util | >= 7.0.0, < 7.0.54 |
7.0.54 |
| org.apache.tomcat:tomcat-util | >= 8.0.0, < 8.0.6 |
8.0.6 |
How to fix
Move to the fixed version or later with your package manager, update the lockfile, and run your tests. If the package only arrives through another dependency, upgrade that dependency first. If none of its releases pulls a fixed version yet, force the version with your package manager's override.
org.apache.tomcat:tomcat Maven → 6.0.40
- maven
<dependency><groupId>org.apache.tomcat</groupId><artifactId>tomcat</artifactId><version>6.0.40</version></dependency>- gradle
implementation("org.apache.tomcat:tomcat:6.0.40")
org.apache.tomcat:tomcat-util Maven → 6.0.40
- maven
<dependency><groupId>org.apache.tomcat</groupId><artifactId>tomcat-util</artifactId><version>6.0.40</version></dependency>- gradle
implementation("org.apache.tomcat:tomcat-util:6.0.40")
Weakness
CWE-113: Improper Neutralization of CRLF Sequences in HTTP Headers ('HTTP Request/Response Splitting')
The product receives data from an HTTP agent/component (e.g., web server, proxy, browser, etc.), but it does not neutralize or incorrectly neutralizes CR and LF characters before the data is included in outgoing HTTP headers.
How to prevent it
- Implementation: Construct HTTP headers very carefully, avoiding the use of non-validated input data.
- Implementation: Assume all input is malicious. Use an "accept known good" input validation strategy, i.e., use a list of acceptable inputs that strictly conform to specifications. If an input does not strictly conform to specifications, reject it or transform it into something that conforms. When performing input validation, consider all potentially relevant properties, including length, type of input, the full range of acceptable values, missing or extra inputs, syntax, consistency across related fields, and conformance to business rules. As an example of business rule logic, "boat" may be syntactically valid because it only contains alphanumeric characters, but it is not valid if the input is only expected to contain colors such as "red" or "blue." Do not rely exclusively on looking for malicious or malformed inputs. This is likely to miss at least one undesirable input, especially if the code's environment changes. This can give attackers enough room to bypass the intended validation. However, denylists can be useful for detecting potential attacks or determining which inputs are so malformed that they should be rejected outright.
- Implementation: Use and specify an output encoding that can be handled by the downstream component that is reading the output. Common encodings include ISO-8859-1, UTF-7, and UTF-8. When an encoding is not specified, a downstream component may choose a different encoding, either by assuming a default encoding or automatically inferring which encoding is being used, which can be erroneous. When the encodings are inconsistent, the downstream component might treat some character or byte sequences as special, even if they are not special in the original encoding. Attackers might then be able to exploit this discrepancy and conduct injection attacks; they even might be able to bypass protection mechanisms that assume the original encoding is also being used by the downstream component.
- Implementation: Inputs should be decoded and canonicalized to the application's current internal representation before being validated (CWE-180). Make sure that the application does not decode the same input twice (CWE-174). Such errors could be used to bypass allowlist validation schemes by introducing dangerous inputs after they have been checked.
References
Advisories
Packages
Other links
- github.com/apache/tomcat/commit/184cdc0d3f03f5737e12d21fff246d7285034597
- github.com/apache/tomcat/commit/fffd63a3bd3a5475379b7c074820a5463b7663b3
- github.com/apache/tomcat80/commit/990de53ab923c126f7402090a4ca53df4bb80cbd
- lists.apache.org/thread.html/r587e50b86c1a96ee301f751d50294072d142fd6dc08a8987ae9f3a9…
- lists.apache.org/thread.html/r587e50b86c1a96ee301f751d50294072d142fd6dc08a8987ae9f3a9…
- lists.apache.org/thread.html/r03c597a64de790ba42c167efacfa23300c3d6c9fe589ab87fe02859…
- lists.apache.org/thread.html/r03c597a64de790ba42c167efacfa23300c3d6c9fe589ab87fe02859…
- lists.apache.org/thread.html/b8a1bf18155b552dcf9a928ba808cbadad84c236d85eab3033662cfb…
- lists.apache.org/thread.html/b8a1bf18155b552dcf9a928ba808cbadad84c236d85eab3033662cfb…
- lists.apache.org/thread.html/b84ad1258a89de5c9c853c7f2d3ad77e5b8b2930be9e132d5cef6b95…
- lists.apache.org/thread.html/b84ad1258a89de5c9c853c7f2d3ad77e5b8b2930be9e132d5cef6b95…
- lists.apache.org/thread.html/39ae1f0bd5867c15755a6f959b271ade1aea04ccdc3b2e639dcd903b…
- lists.apache.org/thread.html/39ae1f0bd5867c15755a6f959b271ade1aea04ccdc3b2e639dcd903b…
- lists.apache.org/thread.html/37220405a377c0182d2afdbc36461c4783b2930fbeae3a17f1333113…
- lists.apache.org/thread.html/37220405a377c0182d2afdbc36461c4783b2930fbeae3a17f1333113…
- h20564.www2.hpe.com/portal/site/hpsc/public/kb/docDisplay
- advisories.mageia.org/MGASA-2014-0268.html
- linux.oracle.com/errata/ELSA-2014-0865.html
- lists.fedoraproject.org/pipermail/package-announce/2015-February/150282.html
- marc.info
- marc.info
- marc.info
- rhn.redhat.com/errata/RHSA-2015-0675.html
- rhn.redhat.com/errata/RHSA-2015-0720.html
- rhn.redhat.com/errata/RHSA-2015-0765.html
- seclists.org/fulldisclosure/2014/Dec/23
- seclists.org/fulldisclosure/2014/May/138
- seclists.org/fulldisclosure/2014/May/140
- secunia.com/advisories/59121
- secunia.com/advisories/59678
- secunia.com/advisories/59732
- secunia.com/advisories/59835
- secunia.com/advisories/59849
- secunia.com/advisories/59873
- secunia.com/advisories/60729
- secunia.com/advisories/60793
- svn.apache.org/viewvc
- svn.apache.org/viewvc
- svn.apache.org/viewvc
- tomcat.apache.org/security-6.html
- tomcat.apache.org/security-7.html
- tomcat.apache.org/security-8.html
- www-01.ibm.com/support/docview.wss
- www-01.ibm.com/support/docview.wss
- www-01.ibm.com/support/docview.wss
- debian.org/security/2016/dsa-3447
- debian.org/security/2016/dsa-3530
- mandriva.com/security/advisories
- mandriva.com/security/advisories
- mandriva.com/security/advisories
- oracle.com/technetwork/security-advisory/cpuoct2016-2881722.html
- oracle.com/technetwork/topics/security/cpujul2014-1972956.html
- securityfocus.com/archive/1/532218/100/0/threaded
- securityfocus.com/archive/1/532221/100/0/threaded
- securityfocus.com/archive/1/534161/100/0/threaded
- securityfocus.com/bid/67668
- securitytracker.com/id/1030302
- vmware.com/security/advisories/VMSA-2014-0012.html
Timeline
- Published
- Last updated by the source
- Latest EPSS score
Related advisories
| Advisory | Severity | Why it's related |
|---|---|---|
| GHSA-69r9-qgr7-g2wj Apache Tomcat Missing Encryption of Sensitive Data vulnerability | High Known exploited | Also affects org.apache.tomcat:tomcat |
| GHSA-h3x4-894j-xpx5 Apache Tomcat's FORM authentication process has an Incorrect Authorization vulnerability | Critical | Also affects org.apache.tomcat:tomcat |
| GHSA-9xv2-5v5q-p794 Apache Tomcat's DIGEST authenticator has an Authentication Bypass by Capture-replay vulnerability | Critical | Also affects org.apache.tomcat:tomcat |
| GHSA-gcx9-497g-6cp6 Apache Tomcat has an Improper Access Control, Incorrect Authorization vulnerability | Critical | Also affects org.apache.tomcat:tomcat |
| GHSA-5m62-pw8w-7w9f Apache Tomcat - Security constraints not correctly applied | Critical | Also affects org.apache.tomcat:tomcat |
| GHSA-9m89-8frq-c98c Apache Tomcat - AJP secret compared in non-constant time | Low | Also affects org.apache.tomcat:tomcat |
| GHSA-5mp6-jrq3-r938 Apache Tomcat: LockOutRealm treats user names as case-sensitive | High | Also affects org.apache.tomcat:tomcat |
| GHSA-h6fc-48rj-7qqh Apache Tomcat - Digest authenticator will authenticate any unknown user | Critical | Also affects org.apache.tomcat:tomcat |
MergeHarbor checks every repository's dependencies against this database, ranks what matters by exploitability and reachability, routes it to the owning team and opens the fix pull request.
Check your repos with MergeHarbor