CVEfocus › CVE database › CVE-2023-23934

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

CVSS 2.6 LowEPSS 0.5% (higher than 44% of CVEs)Published 2023-02-14Updated 2025-03-10Assigner: GitHub_M

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.

CWE-20

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

7Fixed
3Fix pending
1Will not fix

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 22.04python-werkzeugFixed2.0.2+dfsg1-1ubuntu0.22.04.1UBUNTU-CVE-2023-23934
Ubuntu 20.04python-werkzeugFixed0.16.1+dfsg1-2ubuntu0.1UBUNTU-CVE-2023-23934
Ubuntu 18.04python-werkzeugFixed0.14.1+dfsg1-1ubuntu0.2UBUNTU-CVE-2023-23934
Ubuntu 16.04python-werkzeugFix pending0.10.4+dfsg1-1ubuntu1.2+esm1 (Ubuntu Pro)UBUNTU-CVE-2023-23934
Ubuntu 14.04python-werkzeugFix pending
Debian 14python-werkzeugFixed2.2.2-3DEBIAN-CVE-2023-23934
Debian 13python-werkzeugFixed2.2.2-3DEBIAN-CVE-2023-23934
Debian 12python-werkzeugFixed2.2.2-3DEBIAN-CVE-2023-23934
Red Hat Enterprise Linux 8python3-werkzeugFix pending
Fix deferred
Red Hat Enterprise Linux 7python-werkzeugWill not fix
Out of support scope
PyPI librarywerkzeugFixed2.2.3PYSEC-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.

References

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.