Vulnerability · Published Sep 15, 2023 · Assigned by GitHub_M
CVE-2023-40167Jetty accepts "+" prefixed value in Content-Length
Medium 5.3
In plain English
A medium-severity security flaw in jetty.project from eclipse. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.3% (higher than 70% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.
Official description
Jetty is a Java based web server and servlet engine. Prior to versions 9.4.52, 10.0.16, 11.0.16, and 12.0.1, Jetty accepts the `+` character proceeding the content-length value in a HTTP/1 header field. This is more permissive than allowed by the RFC and other servers routinely reject such requests with 400 responses. There is no known exploit scenario, but it is conceivable that request smuggling could result if jetty is used in combination with a server that does not close the connection after sending such a 400 response. Versions 9.4.52, 10.0.16, 11.0.16, and 12.0.1 contain a patch for this issue. There is no workaround as there is no known exploit scenario.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | jetty9 | 9.4.50-4+deb12u1 | DEBIAN-CVE-2023-40167 |
| Debian:12 | jetty9 | 9.4.50-4+deb12u1 | DSA-5507-1 |
| Debian:13 | jetty9 | 9.4.52-1 | DEBIAN-CVE-2023-40167 |
| Debian:14 | jetty9 | 9.4.52-1 | DEBIAN-CVE-2023-40167 |
| Maven | org.eclipse.jetty:jetty-http | 9.4.52 | GHSA-hmr7-m48g-48f6 |
| Maven | org.eclipse.jetty:jetty-http | 10.0.16 | GHSA-hmr7-m48g-48f6 |
| Maven | org.eclipse.jetty:jetty-http | 11.0.16 | GHSA-hmr7-m48g-48f6 |
| Maven | org.eclipse.jetty:jetty-http | 12.0.1 | GHSA-hmr7-m48g-48f6 |
| Ubuntu:22.04:LTS | jetty9 | no fix listed | UBUNTU-CVE-2023-40167 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| eclipse | jetty.project | >= 9.0.0, <= 9.4.51>= 10.0.0, <= 10.0.15>= 11.0.0, <= 11.0.15= 12.0.0 |
Weakness: CWE-130 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N