CVE-2023-26049
Cookie parsing of quoted values can exfiltrate values from other cookies in Eclipse Jetty
Reported by github_m · Published April 18, 2023
jetty-client is fixed in 11.0.14, 10.0.14 and 9.4.51 (Maven Central)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| org.eclipse.jetty:jetty-client | Maven Central | 11.0.14, 10.0.14, 9.4.51 |
| org.eclipse.jetty:jetty-deploy | Maven Central | 11.0.14, 10.0.14, 9.4.51 |
| org.eclipse.jetty:jetty-webapp | Maven Central | 11.0.14, 10.0.14, 9.4.51 |
| org.eclipse.jetty:jetty-servlets | Maven Central | 11.0.14, 10.0.14, 9.4.51 |
| org.eclipse.jetty:jetty-server | Maven Central | 12.0.0.beta0, 11.0.14, 10.0.14, 9.4.51.v20230217, 9.4.51 |
| cassandra-reaper | Chainguard | 4.0.1-r1 |
| kafka | Chainguard | 3.4.0-r2 |
| hive | Chainguard | 4.0.1-r1 |
| cassandra-reaper | Wolfi | 4.0.1-r1 |
| kafka | Wolfi | 3.4.0-r2 |
| jetty | eclipse | 11.0.14, 10.0.14, 9.4.51 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| eclipse | jetty.project | < 9.4.51, >= 10.0.0, < 10.0.14, >= 11.0.0, < 11.0.14 |
| chainguard | cassandra-reaper | 0 |
| chainguard | kafka | 0 |
| chainguard | hive | 0 |
| wolfi | cassandra-reaper | 0 |
| Maven | org.eclipse.jetty:jetty-client | 11.0.0, 0, 10.0.0 |
| Maven | org.eclipse.jetty:jetty-servlets | 10.0.0, 0, 11.0.0 |
| wolfi | kafka | 0 |
| Maven | org.eclipse.jetty:jetty-server | 0, 12.0.0, 11.0.0 |
| Maven | org.eclipse.jetty:jetty-webapp | 0, 10.0.0, 11.0.0 |
| Maven | org.eclipse.jetty:jetty-deploy | 12.0.0, 0, 10.0.0 |
| eclipse | jetty.project | 0, 12.0.0.alpha0, 11.0.0 |
Timeline
- Apr 18, 2023 CVE Published
- Apr 18, 2023 CVE Updated
- Apr 19, 2023 EPSS Score (30 in total, the first dated here)
- Feb 8, 2024 PoC Published
- Mar 23, 2026 Security Advisory (12 in total, the first dated here)
- Apr 27, 2026 Distribution Patch (11 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2023-26049
vulnetix vdb fixes CVE-2023-26049
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2023-26049/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://github.com/eclipse/jetty.project/security/advisories/GHSA-p26g-97m4-6q7c x_refsource_CONFIRM
- https://github.com/eclipse/jetty.project/pull/9339 x_refsource_MISC
- https://github.com/eclipse/jetty.project/pull/9352 x_refsource_MISC
- https://www.rfc-editor.org/rfc/rfc2965 x_refsource_MISC
- https://www.rfc-editor.org/rfc/rfc6265 x_refsource_MISC
- https://github.com/advisories/GHSA-p26g-97m4-6q7c advisory
- https://nvd.nist.gov/vuln/detail/CVE-2023-26049 advisory