Loading advisory.
Loading advisory.
Jetty vulnerable to errant command quoting in CGI Servlet
If a user sends a request to a org.eclipse.jetty.servlets.CGI Servlet for a binary with a space in its name, the servlet will escape the command by wrapping it in quotation marks. This wrapped command, plus an optional command prefix, will then be executed through a call to Runtime.exec.
Published 2023-09-14 16:16 UTC · Modified 2026-09-10 03:50 UTC
Severity and EPSS are shown separately. Helm does not combine them into one score.
| Package | Ecosystem | Affected | Fixed in | Upgrade command |
|---|---|---|---|---|
| org.eclipse.jetty:jetty-servlets | Maven | >= 9.0.0, < 9.4.52 >= 10.0.0, < 10.0.16 >= 11.0.0, < 11.0.16 versions 9.0.0.v20130308, 9.0.1.v20130408, 9.0.2.v20130417, 9.0.3.v20130506, 9.0.4.v20130625, 9.0.5.v20130815, 9.0.6.v20130930, 9.0.7.v20131107, 9.1.0.M0, 9.1.0.RC0, 9.1.0.RC1, 9.1.0.RC2, 9.1.0.v20131115, 9.1.1.v20140108, 9.1.2.v20140210, 9.1.3.v20140225, 9.1.4.v20140401, 9.1.5.v20140505, 9.1.6.v20160112, 9.2.0.M0 and 189 more | 9.4.52, 10.0.16, 11.0.16 | No single command for Maven. Update to 9.4.52, 10.0.16, 11.0.16 in your build file. |
| org.eclipse.jetty.ee10:jetty-ee10-servlets | Maven | < 12.0.0-beta2 | 12.0.0-beta2 | No single command for Maven. Update to 12.0.0-beta2 in your build file. |
| org.eclipse.jetty.ee9:jetty-ee9-servlets | Maven | < 12.0.0-beta2 | 12.0.0-beta2 | No single command for Maven. Update to 12.0.0-beta2 in your build file. |
| org.eclipse.jetty.ee8:jetty-ee8-servlets | Maven | < 12.0.0-beta2 | 12.0.0-beta2 | No single command for Maven. Update to 12.0.0-beta2 in your build file. |
If a user sends a request to a org.eclipse.jetty.servlets.CGI Servlet for a binary with a space in its name, the servlet will escape the command by wrapping it in quotation marks. This wrapped command, plus an optional command prefix, will then be executed through a call to Runtime.exec. If the original binary name provided by the user contains a quotation mark followed by a space, the resulting command line will contain multiple tokens instead of one. For example, if a request references a binary called file” name “here, the escaping algorithm will generate the command line string “file” name “here”, which will invoke the binary named file, not the one that the user requested.
if (execCmd.length() > 0 && execCmd.charAt(0) != '"' && execCmd.contains(" "))
execCmd = "\"" + execCmd + "\"";The cgi-bin directory contains a binary named exec and a subdirectory named exec” commands, which contains a file called bin1. The user sends to the CGI servlet a request for the filename exec” commands/bin1. This request will pass the file existence check on lines 194 through 205. The servlet will add quotation marks around this filename, resulting in the command line string “exec” commands/bin1”. When this string is passed to Runtime.exec, instead of executing the bin1 binary, the server will execute the exec binary with the argument commands/file1”. In addition to being incorrect, this behavior may bypass alias checks, and it may cause other unintended behaviors if a command prefix is configured.
If the useFullPath configuration setting is off, the command need not pass the existence check. The attack would not rely on a binary and subdirectory having similar names, and the attack will succeed on a much wider variety of directory structures.
Users of the org.eclipse.jetty.servlets.CGI Servlet with a very specific command structure may have the wrong command executed.
No patch.
In Jetty 9.x, 10.x, and 11.x the org.eclipse.jetty.servlets.CGI has been deprecated.
In Jetty 12 (all environments) the org.eclipse.jetty.servlets.CGI has been entirely removed.
The org.eclipse.jetty.servlets.CGI Servlet should not be used. Fast CGI support is available instead.
https://github.com/eclipse/jetty.project/pull/9516
https://github.com/eclipse/jetty.project/pull/9889
https://github.com/eclipse/jetty.project/pull/9888
No public exploit code known to Helm's sources (Nuclei templates, Metasploit, Exploit-DB and PoC-in-GitHub). That does not mean none exists.
EPSS went from 0.012 on 2026-11-24 to 0.011 on 2026-11-26, over 2 recorded scores.
| Date | Score | Previous | Model |
|---|---|---|---|
| 2026-11-24 | 0.012 | first score | v2026.06.15 |
| 2026-11-26 | 0.011 | 0.012 | v2026.06.15 |