CVE-2023-36479: Jetty vulnerable to errant command quoting in CGI Servlet
3.5
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.74103%
CWE
Published
9/14/2023
Updated
11/6/2023
KEV Status
No
Technology
Java
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:N/I:L/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
org.eclipse.jetty:jetty-servlets | maven | >= 9.0.0, <= 9.4.51 | 9.4.52 |
org.eclipse.jetty:jetty-servlets | maven | >= 10.0.0, <= 10.0.15 | 10.0.16 |
org.eclipse.jetty:jetty-servlets | maven | >= 11.0.0, <= 11.0.15 | 11.0.16 |
org.eclipse.jetty.ee10:jetty-ee10-servlets | maven | <= 12.0.0-beta1 | 12.0.0-beta2 |
org.eclipse.jetty.ee9:jetty-ee9-servlets | maven | <= 12.0.0-beta1 | 12.0.0-beta2 |
org.eclipse.jetty.ee8:jetty-ee8-servlets | maven | <= 12.0.0-beta1 | 12.0.0-beta2 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from the command escaping logic shown in the code snippet that wraps commands in quotes when spaces are present. This implementation fails to account for existing quotation marks in user-supplied filenames
, allowing command injection through crafted filenames
containing " followed by space. The code pattern matches the described vulnerability scenario where Runtime.exec()
parses the malformed quoted command string into unintended arguments. The direct connection between the shown code pattern and the described exploit scenario indicates this is the primary vulnerable function in the CGI Servlet
implementation.