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.

Severity (CVSS 3.1)5.3Medium
Exploit odds (30 days)1.3%top 29.9% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack tooling1Public PoC

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

EcosystemPackageFixed inAdvisory
Debian:12jetty99.4.50-4+deb12u1DEBIAN-CVE-2023-40167
Debian:12jetty99.4.50-4+deb12u1DSA-5507-1
Debian:13jetty99.4.52-1DEBIAN-CVE-2023-40167
Debian:14jetty99.4.52-1DEBIAN-CVE-2023-40167
Mavenorg.eclipse.jetty:jetty-http9.4.52GHSA-hmr7-m48g-48f6
Mavenorg.eclipse.jetty:jetty-http10.0.16GHSA-hmr7-m48g-48f6
Mavenorg.eclipse.jetty:jetty-http11.0.16GHSA-hmr7-m48g-48f6
Mavenorg.eclipse.jetty:jetty-http12.0.1GHSA-hmr7-m48g-48f6
Ubuntu:22.04:LTSjetty9no fix listedUBUNTU-CVE-2023-40167

Affected products (as reported)

VendorProductVersions
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

References