CVE-2023-23934Wrkzeug's incorrect parsing of nameless cookies leads to __Host- cookies bypass
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.
What to do
Fixed builds are available from Debian, PyPI, Ubuntu: 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 22.04 | python-werkzeug | Fixed | 2.0.2+dfsg1-1ubuntu0.22.04.1 | UBUNTU-CVE-2023-23934 |
| Ubuntu 20.04 | python-werkzeug | Fixed | 0.16.1+dfsg1-2ubuntu0.1 | UBUNTU-CVE-2023-23934 |
| Ubuntu 18.04 | python-werkzeug | Fixed | 0.14.1+dfsg1-1ubuntu0.2 | UBUNTU-CVE-2023-23934 |
| Ubuntu 16.04 | python-werkzeug | Fix pending | 0.10.4+dfsg1-1ubuntu1.2+esm1 (Ubuntu Pro) | UBUNTU-CVE-2023-23934 |
| Ubuntu 14.04 | python-werkzeug | Fix pending | ||
| Debian 14 | python-werkzeug | Fixed | 2.2.2-3 | DEBIAN-CVE-2023-23934 |
| Debian 13 | python-werkzeug | Fixed | 2.2.2-3 | DEBIAN-CVE-2023-23934 |
| Debian 12 | python-werkzeug | Fixed | 2.2.2-3 | DEBIAN-CVE-2023-23934 |
| Red Hat Enterprise Linux 8 | python3-werkzeug | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | python-werkzeug | Will not fix Out of support scope | ||
| PyPI library | werkzeug | Fixed | 2.2.3 | PYSEC-2023-57 |
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.
- pallets werkzeug: affected: < 2.2.3
References
- https://github.com/pallets/werkzeug/security/advisories/GHSA-px8h-6qxv-m22q
- https://github.com/pallets/werkzeug/commit/cf275f42acad1b5950c50ffe8ef58fe62cdce028
- https://github.com/pallets/werkzeug/releases/tag/2.2.3
- https://www.debian.org/security/2023/dsa-5470
- https://security.netapp.com/advisory/ntap-20230818-0003/
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.