CVE-2023-36479Jetty vulnerable to errant command quoting in CGI Servlet
Eclipse Jetty Canonical Repository is the canonical repository for the Jetty project. Users of the CgiServlet with a very specific command structure may have the wrong command executed. 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. This issue was patched in version 9.4.52, 10.0.16, 11.0.16 and 12.0.0-beta2.
What to do
Fixed builds are available from Debian, Maven: see the table below for the fixed version per release.
Red Hat, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 16.04 | jetty | Fix pending | UBUNTU-CVE-2023-36479 | |
| Ubuntu 14.04 | jetty | Fix pending | UBUNTU-CVE-2023-36479 | |
| Debian 14 | jetty9 | Fixed | 9.4.52-1 | DEBIAN-CVE-2023-36479 |
| Debian 13 | jetty9 | Fixed | 9.4.52-1 | DEBIAN-CVE-2023-36479 |
| Debian 12 | jetty9 | Fixed | 9.4.50-4+deb12u1 | DEBIAN-CVE-2023-36479 |
| Red Hat Enterprise Linux 9 | jetty-project | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | jetty-continuation | Not affected | ||
| Red Hat Enterprise Linux 8 | jetty-http | Not affected | ||
| Red Hat Enterprise Linux 8 | jetty-io | Not affected | ||
| Red Hat Enterprise Linux 8 | jetty-security | Not affected | ||
| Red Hat Enterprise Linux 8 | jetty-server | Not affected | ||
| Red Hat Enterprise Linux 8 | jetty-servlet | Not affected | ||
| Red Hat Enterprise Linux 8 | jetty-util | Not affected | ||
| Red Hat Enterprise Linux 7 | jetty-annotations | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | jetty-ant | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | jetty-client | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | jetty-continuation | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | jetty-deploy | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | jetty-http | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | jetty-io | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | jetty-jaas | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | jetty-jaspi | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | jetty-javadoc | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | jetty-jmx | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | jetty-jndi | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | jetty-jsp | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | jetty-jspc-maven-plugin | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | jetty-maven-plugin | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | jetty-monitor | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | jetty-plus | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | jetty-project | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | jetty-proxy | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | jetty-rewrite | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | jetty-runner | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | jetty-security | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | jetty-server | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | jetty-servlet | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | jetty-servlets | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | jetty-start | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | jetty-util | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | jetty-util-ajax | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | jetty-webapp | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | jetty-websocket-api | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | jetty-websocket-client | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | jetty-websocket-common | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | jetty-websocket-parent | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | jetty-websocket-server | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | jetty-websocket-servlet | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | jetty-xml | Will not fix Out of support scope | ||
| Maven library | org.eclipse.jetty.ee10:jetty-ee10-servlets | Fixed | 12.0.0-beta2 | GHSA-3gh6-v5v9-6v9j |
| Maven library | org.eclipse.jetty.ee8:jetty-ee8-servlets | Fixed | 12.0.0-beta2 | GHSA-3gh6-v5v9-6v9j |
| Maven library | org.eclipse.jetty.ee9:jetty-ee9-servlets | Fixed | 12.0.0-beta2 | GHSA-3gh6-v5v9-6v9j |
| Maven library | org.eclipse.jetty:jetty-servlets | Fixed | 9.4.52 | GHSA-3gh6-v5v9-6v9j |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- eclipse jetty.project: affected: >= 9.0.0, <= 9.4.51, >= 10.0.0, <= 10.0.15, >= 11.0.0, <= 11.0.15, <= 12.0.0-beta1
References
- https://github.com/eclipse/jetty.project/security/advisories/GHSA-3gh6-v5v9-6v9j
- https://github.com/eclipse/jetty.project/pull/9516
- https://github.com/eclipse/jetty.project/pull/9888
- https://github.com/eclipse/jetty.project/pull/9889
- https://www.debian.org/security/2023/dsa-5507
- https://lists.debian.org/debian-lts-announce/2023/09/msg00039.html
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.