GitHub Advisoryadvisory · Maven

GHSA-p22x-g9px-3945 Apache Tomcat may reject request containing invalid Content-Length header

HIGH Published 2022-11-01 Modified 2024-04-23 Official page ↗
Aliases
CVE-2022-42252
Ecosystem
Maven
Packages
org.apache.tomcat.embed:tomcat-embed-core, org.apache.tomcat:tomcat-coyote
Severity
High
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Weaknesses
CWE-20, CWE-444
Reviewed
2022-11-01

Affected packages

• Maven org.apache.tomcat.embed:tomcat-embed-core: >= 8.5.0, < 8.5.83 → fixed in 8.5.83 • Maven org.apache.tomcat.embed:tomcat-embed-core: >= 9.0.0-M1, < 9.0.68 → fixed in 9.0.68 • Maven org.apache.tomcat.embed:tomcat-embed-core: >= 10.0.0-M1, < 10.0.27 → fixed in 10.0.27 • Maven org.apache.tomcat.embed:tomcat-embed-core: >= 10.1.0-M1, < 10.1.1 → fixed in 10.1.1 • Maven org.apache.tomcat:tomcat-coyote: >= 9.0.0-M1, < 9.0.68 → fixed in 9.0.68 • Maven org.apache.tomcat:tomcat-coyote: >= 10.0.0-M1, < 10.0.27 → fixed in 10.0.27 • Maven org.apache.tomcat:tomcat-coyote: >= 10.1.0-M1, < 10.1.1 → fixed in 10.1.1

Description

If Apache Tomcat 8.5.0 to 8.5.82, 9.0.0-M1 to 9.0.67, 10.0.0-M1 to 10.0.26 or 10.1.0-M1 to 10.1.0 was configured to ignore invalid HTTP headers via setting rejectIllegalHeader to false (the default for 8.5.x only), Tomcat did not reject a request containing an invalid Content-Length header making a request smuggling attack possible if Tomcat was located behind a reverse proxy that also failed to reject the request with the invalid header.

Related

Alias · CVE (1)

  • CVE-2022-42252 If Apache Tomcat 8.5.0 to 8.5.82, 9.0.0-M1 to 9.0.67, 10.0.0-M1 to 10.0.26 or 10.1.0-M1 to 10.1.0 was configured to ignore invalid HTTP… vulnerability

Weakness · CWE (2)

  • CWE-20 Improper Input Validation weakness
  • CWE-444 Inconsistent Interpretation of HTTP Requests weakness

References