Skip to content
OpenAdvisories
Low · 2.4 Public exploit CVE-2023-26049 EUVD-2023-1360GHSA-p26g-97m4-6q7c

Cookie parsing of quoted values can exfiltrate values from other cookies in Eclipse Jetty

Published Apr 18, 2023 · Updated Feb 13, 2025 · Assigned by GitHub_M

Description

Jetty is a java based web server and servlet engine. Nonstandard cookie parsing in Jetty may allow an attacker to smuggle cookies within other cookies, or otherwise perform unintended behavior by tampering with the cookie parsing mechanism. If Jetty sees a cookie VALUE that starts with `"` (double quote), it will continue to read the cookie string until it sees a closing quote -- even if a semicolon is encountered. So, a cookie header such as: `DISPLAY_LANGUAGE="b; JSESSIONID=1337; c=d"` will be parsed as one cookie, with the name DISPLAY_LANGUAGE and a value of b; JSESSIONID=1337; c=d instead of 3 separate cookies. This has security implications because if, say, JSESSIONID is an HttpOnly cookie, and the DISPLAY_LANGUAGE cookie value is rendered on the page, an attacker can smuggle the JSESSIONID cookie into the DISPLAY_LANGUAGE cookie and thereby exfiltrate it. This is significant when an intermediary is enacting some policy based on cookies, so a smuggled cookie can bypass that policy yet still be seen by the Jetty server or its logging system. This issue has been addressed in versions 9.4.51, 10.0.14, 11.0.14, and 12.0.0.beta0 and users are advised to upgrade. There are no known workarounds for this issue.

Affected products

VendorProductAffectedFixed
eclipse jetty.project < 9.4.51, >= 10.0.0, < 10.0.14, >= 11.0.0, < 11.0.14, >= 12.0.0.alpha0, < 12.0.0.beta0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 jetty9 9.4.52-1 —
Debian 13 jetty9 9.4.52-1 —
Debian 12 jetty9 9.4.50-4+deb12u1 DSA-5507-1
Debian 11 jetty9 9.4.39-3+deb11u2 DSA-5507-1
Debian 10 jetty9 9.4.16-0+deb10u3 DLA-3592-1
ReleasePackageFixed inAdvisory
Ubuntu 16.04 LTS jetty No fix yet —
Ubuntu 14.04 LTS jetty No fix yet —
ReleasePackageFixed inAdvisory
Red Hat Satellite Capsule 6 mosquitto 2.0.17-1.el8sat RHSA-2024:0797
Red Hat Satellite Capsule 6 puppet-agent 7.27.0-1.el8sat RHSA-2024:0797
Red Hat Satellite Capsule 6 puppetserver 7.14.0-1.el8sat RHSA-2024:0797
Red Hat Satellite 6 candlepin +1 4.3.11-1.el8sat RHSA-2024:0797
Red Hat Satellite 6 mosquitto 2.0.17-1.el8sat RHSA-2024:0797
Red Hat Satellite 6 puppet-agent 7.27.0-1.el8sat RHSA-2024:0797
Red Hat Satellite 6 puppetserver 7.14.0-1.el8sat RHSA-2024:0797
Red Hat Satellite 6 rubygem-grpc 1.58.0-1.el8sat RHSA-2024:0797
Red Hat Satellite 6 rubygem-puma 6.3.1-1.el8sat RHSA-2024:0797
Red Hat Satellite 6 rubygem-sidekiq 6.5.12-1.el8sat RHSA-2024:0797
Red Hat Single Sign On 7 rh-sso7-keycloak +1 18.0.12-1.redhat_00001.1.el7sso RHSA-2024:0800, RHSA-2024:0799, RHSA-2024:0798
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Red Hat Ocp Tools 4 jenkins 2.426.3.1706515686-3.el8 RHSA-2024:0778
Red Hat Ocp Tools 4 jenkins-2-plugins 4.12.1706515741-1.el8 RHSA-2024:0778
Red Hat JBoss EAP 7 eap7-activemq-artemis +15 2.16.0-17.redhat_00051.1.el7eap RHSA-2023:7639, RHSA-2023:7638, RHSA-2023:7637
Red Hat JBoss EAP 7 eap7-apache-sshd 2.9.3-1.redhat_00001.1.el7eap RHSA-2023:7639, RHSA-2023:7638, RHSA-2023:7637
Red Hat JBoss EAP 7 eap7-avro 1.11.3-1.redhat_00001.1.el7eap RHSA-2023:7639, RHSA-2023:7638, RHSA-2023:7637
Red Hat JBoss EAP 7 eap7-guava +1 32.1.1-2.jre_redhat_00001.1.el7eap RHSA-2023:7639, RHSA-2023:7638, RHSA-2023:7637
Red Hat JBoss EAP 7 eap7-hal-console 3.3.20-1.Final_redhat_00001.1.el7eap RHSA-2023:7639, RHSA-2023:7638, RHSA-2023:7637
Red Hat JBoss EAP 7 eap7-hibernate +4 5.3.32-1.Final_redhat_00001.1.el7eap RHSA-2023:7639, RHSA-2023:7638, RHSA-2023:7637
Red Hat JBoss EAP 7 eap7-infinispan +9 11.0.18-1.Final_redhat_00001.1.el7eap RHSA-2023:7639, RHSA-2023:7638, RHSA-2023:7637
Red Hat JBoss EAP 7 eap7-jandex 2.4.4-1.Final_redhat_00001.1.el7eap RHSA-2023:7639, RHSA-2023:7638, RHSA-2023:7637
Red Hat JBoss EAP 7 eap7-jboss-jsp-api_2.3_spec 2.0.1-1.Final_redhat_00001.1.el7eap RHSA-2023:7639, RHSA-2023:7638, RHSA-2023:7637
Red Hat JBoss EAP 7 eap7-jboss-marshalling +1 2.0.14-1.SP1_redhat_00001.1.el7eap RHSA-2023:7639, RHSA-2023:7638, RHSA-2023:7637
Red Hat JBoss EAP 7 eap7-jboss-server-migration +2 1.10.0-33.Final_redhat_00032.1.el7eap RHSA-2023:7639, RHSA-2023:7638, RHSA-2023:7637
Red Hat JBoss EAP 7 eap7-jboss-xnio-base 3.8.11-1.SP1_redhat_00001.1.el7eap RHSA-2023:7639, RHSA-2023:7638, RHSA-2023:7637
Red Hat JBoss EAP 7 eap7-jbossws-cxf 5.4.9-1.Final_redhat_00001.1.el7eap RHSA-2023:7639, RHSA-2023:7638, RHSA-2023:7637
Red Hat JBoss EAP 7 eap7-jgroups 4.2.23-1.Final_redhat_00001.1.el7eap RHSA-2023:7639, RHSA-2023:7638, RHSA-2023:7637
Red Hat JBoss EAP 7 eap7-undertow 2.2.28-1.SP1_redhat_00001.1.el7eap RHSA-2023:7639, RHSA-2023:7638, RHSA-2023:7637
Red Hat JBoss EAP 7 eap7-weld-ejb +6 3.1.10-2.Final_redhat_00001.1.el7eap RHSA-2023:7639, RHSA-2023:7638, RHSA-2023:7637
Red Hat JBoss EAP 7 eap7-wildfly +4 7.4.14-5.GA_redhat_00002.1.el7eap RHSA-2023:7639, RHSA-2023:7638, RHSA-2023:7637
Red Hat JBoss EAP 7 eap7-wildfly-java-jdk17 7.4.14-5.GA_redhat_00002.1.el8eap RHSA-2023:7639, RHSA-2023:7638
Red Hat JBoss EAP 7 eap7-wildfly-transaction-client 1.1.16-1.Final_redhat_00001.1.el7eap RHSA-2023:7639, RHSA-2023:7638, RHSA-2023:7637
Red Hat JBoss EAP 7 eap7-yasson 1.0.11-4.redhat_00002.1.el7eap RHSA-2023:7639, RHSA-2023:7638, RHSA-2023:7637
ReleasePackageFixed inAdvisory
SLES 15 SP5 jetty-minimal 9.4.51-150200.3.19.2 SUSE-SU-2023:2539-1
SLES 15 SP4 jetty-minimal 9.4.51-150200.3.19.2 SUSE-SU-2023:2539-1
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLE Real Time 15 SP3 jetty-minimal 9.4.51-150200.3.19.2 SUSE-SU-2023:2539-1
ReleasePackageFixed inAdvisory
openSUSE Leap 15.5 jetty-minimal 9.4.51-150200.3.19.2 SUSE-SU-2023:2539-1
openSUSE Leap 15.4 jetty-minimal 9.4.51-150200.3.19.2 SUSE-SU-2023:2539-1

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling cassandra-reaper 4.0.1-r1 —

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
Maven org.eclipse.jetty:jetty-server < 9.4.51.v20230217 9.4.51.v20230217 GHSA-p26g-97m4-6q7c
Maven org.eclipse.jetty:jetty-server >= 10.0.0, < 10.0.14 10.0.14 GHSA-p26g-97m4-6q7c
Maven org.eclipse.jetty:jetty-server >= 11.0.0, < 11.0.14 11.0.14 GHSA-p26g-97m4-6q7c
Maven org.eclipse.jetty:jetty-server >= 12.0.0alpha0, < 12.0.0.beta0 12.0.0.beta0 GHSA-p26g-97m4-6q7c

Advisories 20

References