CVE-2023-23934: Wrkzeug's incorrect parsing of nameless cookies leads to __Host- cookies bypass

Published Feb 14, 2023
·
Updated

Browsers may allow "nameless" cookies that look like =value instead of key=value. A vulnerable browser may allow a compromised application on an adjacent subdomain to exploit this to set a cookie like =Host-test=bad for another subdomain.

Werkzeug <= 2.2.2 will parse the cookie =Host-test=bad as Host-test=bad. If a Werkzeug application is running next to a vulnerable or malicious subdomain which sets such a cookie using a vulnerable browser, the Werkzeug application will see the bad cookie value but the valid cookie key.

Other sources

Browsers may allow "nameless" cookies that look like =value instead of key=value. A vulnerable browser may allow a compromised application on an adjacent subdomain to exploit this to set a cookie like =Host-test=bad for another subdomain.

Werkzeug <= 2.2.2 will parse the cookie =Host-test=bad as Host-test=bad. If a Werkzeug application is running next to a vulnerable or malicious subdomain which sets such a cookie using a vulnerable browser, the Werkzeug application will see the bad cookie value but the valid cookie key.

Red Hat

Pallets Werkzeug could allow a remote attacker to bypass security restrictions, caused by improper input validation. By sending a specially-crafted request, an attacker could exploit this vulnerability to set a cookie like =Host-test=bad for another subdomain.

IBM

Werkzeug is a comprehensive WSGI web application library. Browsers may allow "nameless" cookies that look like =value instead of key=value. A vulnerable browser may allow a compromised application on an adjacent subdomain to exploit this to set a cookie like =Host-test=bad for another subdomain. Werkzeug prior to 2.2.3 will parse the cookie =Host-test=bad as Host-test=bad. If a Werkzeug application is running next to a vulnerable or malicious subdomain which sets such a cookie using a vulnerable browser, the Werkzeug application will see the bad cookie value but the valid cookie key. The issue is fixed in Werkzeug 2.2.3.

Affected Software

7 affected componentsFixes available
pip/Werkzeug<2.2.3
2.2.3
debian/python-werkzeug<=0.14.1+dfsg1-4+deb10u1
0.14.1+dfsg1-4+deb10u21.0.1+dfsg1-2+deb11u12.2.2-3
debian/python-werkzeug<=1.0.1+dfsg1-2, <=2.2.2-2
palletsprojects Werkzeug<2.2.3
IBM QRadar SIEM<=7.5 - 7.5.0 UP9 IF03
IBM QRadar Incident Forensics<=7.5 - 7.5.0 UP9 IF03
redhat/python-werkzeug<2.2.3
2.2.3

Event History

Feb 14, 2023
CVE Published
via MITRE·07:56 PM
Data Sourced
via MITRE·07:56 PM
DescriptionSeverityWeakness
Feb 15, 2023
Advisory Published
03:37 PM
Feb 16, 2023
Data Sourced
via Red Hat·12:14 AM
DescriptionSeverityAffected Software
Oct 17, 2024
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2023-23934?

CVE-2023-23934 is a vulnerability in Werkzeug that allows browsers to allow nameless cookies.

2

Which browsers are affected by CVE-2023-23934?

Any vulnerable browser that allows "nameless" cookies can be affected.

3

What is the severity of CVE-2023-23934?

The severity of CVE-2023-23934 is low, with a severity score of 3.5.

4

How can I fix CVE-2023-23934?

To fix CVE-2023-23934, update to Werkzeug version 2.2.3 or later.

5

Where can I find more information about CVE-2023-23934?

You can find more information about CVE-2023-23934 on the official GitHub page of Pallets Werkzeug.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203