Red Hat VEX
RHVEX-CVE-2023-23934
python-werkzeug: cookie prefixed with = can shadow unprefixed cookie
Details
A flaw was found in python-werkzeug. Browsers may allow "nameless" cookies 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 for another subdomain. If a Werkzeug application is running next to a vulnerable or malicious subdomain that sets such a cookie using a vulnerable browser, the Werkzeug application will see the bad cookie value but the valid cookie key.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Red Hat:enterprise_linux:7 | python-werkzeug | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:8 | python3-werkzeug | All versions, no fix (fix deferred) |
References
- https://access.redhat.com/security/cve/CVE-2023-23934
- https://bugzilla.redhat.com/show_bug.cgi?id=2170243
- https://www.cve.org/CVERecord?id=CVE-2023-23934
- https://nvd.nist.gov/vuln/detail/CVE-2023-23934
- https://github.com/pallets/werkzeug/commit/cf275f42acad1b5950c50ffe8ef58fe62cdce028
- https://github.com/pallets/werkzeug/releases/tag/2.2.3
- https://github.com/pallets/werkzeug/security/advisories/GHSA-px8h-6qxv-m22q