CVE-2021-23336
Web Cache Poisoning
Mitigation
- Upgrade python/cpython to 3.9.2 or later.
Who should check
- Anyone running python/cpython < unspecified; >= unspecified, < 3.6.13; >= 3.7.0, < unspecified; >= unspecified, < 3.7.10; >= 3.8.0, < unspecified; >= unspecified, < 3.8.8; >= 3.9.0, < unspecified; >= unspecified, < 3.9.2
Vulnerability facts
- Affected
- python/cpython < unspecified; >= unspecified, < 3.6.13; >= 3.7.0, < unspecified; >= unspecified, < 3.7.10; >= 3.8.0, < unspecified; >= unspecified, < 3.8.8; >= 3.9.0, < unspecified; >= unspecified, < 3.9.2
- Fixed in
- python/cpython 3.6.13, python/cpython 3.7.10, python/cpython 3.8.8, python/cpython 3.9.2
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- Yes: see the exploit references below
- Remote exploitation
- Remote, no login needed
- CVSS
- 5.9 (v3.1, CNA)CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:H/E:P/RL:U/RC:COpen in CVSS calculator
Show all 11 CVSS metrics
- Attack vector: Network
- Attack complexity: High
- Privileges required: None
- User interaction: Required
- Scope: Unchanged
- Confidentiality impact: None
- Integrity impact: Low
- Availability impact: High
- E: P
- RL: U
- RC: C
- EPSS
- 41.13% chance of exploitation in 30 days (percentile 99, 2026-11-26)
- CWE
- CWE-444
- Modified
Description
The package python/cpython from 0 and before 3.6.13, from 3.7.0 and before 3.7.10, from 3.8.0 and before 3.8.8, from 3.9.0 and before 3.9.2 are vulnerable to Web Cache Poisoning via urllib.parse.parse_qsl and urllib.parse.parse_qs by using a vector called parameter cloaking. When the attacker can separate query parameters using a semicolon (;), they can cause a difference in the interpretation of the request between the proxy (running with default configuration) and the server. This can result in malicious requests being cached as completely safe ones, as the proxy would usually not see the semicolon as a separator, and therefore would not include it in a cache key of an unkeyed parameter.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| python/cpython | < unspecified; >= unspecified, < 3.6.13; >= 3.7.0, < unspecified; >= unspecified, < 3.7.10; >= 3.8.0, < unspecified; >= unspecified, < 3.8.8; >= 3.9.0, < unspecified; >= unspecified, < 3.9.2 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2021-23336. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2021-23336.md Affected: python/cpython < unspecified; >= unspecified, < 3.6.13; >= 3.7.0, < unspecified; >= unspecified, < 3.7.10; >= 3.8.0, < unspecified; >= unspecified, < 3.8.8; >= 3.9.0, < unspecified; >= unspecified, < 3.9.2 Fixed in: python/cpython 3.6.13, python/cpython 3.7.10, python/cpython 3.8.8, python/cpython 3.9.2 Steps: 1. Search this machine and project for python/cpython: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HCQTCSP6SCVIYNIRUJC5X7YBVUHPLSC4/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/NODWHDIFBQE5RU5PUWUVE47JOT5VCMJ2/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MP572OLHMS7MZO4KUPSCIMSZIA5IZZ62/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MNUN5SOMFL2BBKP6ZAICIIUPQKZDMGYO/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FONHJIOZOFD7CD35KZL6SVBUTMBPGZGA/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/KJXCMHLY7H3FIYLE4OKDYUILU2CCRUCZ/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3YKKDLXL3UEZ3J426C2XTBS63AHE46SM/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TFTELUMWZE3KV3JB2H5EE6VFRZFRD5MV/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/OAGSWNGZJ6HQ5ISA67SNMK3CJRKICET7/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/NJSCSN722JO2E2AGPWD4NTGVELVRPB4R/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HZTM7KLHFCE3LWSEVO2NAFLUHMGYMCRY/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3EPYWWFDV22CJ5AOH5VCE72DOASZZ255/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/IHQDU7NXA7EWAE4W7VO6MURVJIULEPPR/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/W2LSKBEFI5SYEY5FM6ICZVZM5WRQUCS4/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/46N6A52EGSXHJYCZWVMBJJIH4NWIV2B5/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LVNH6Z24IG3E67ZCQGGJ46FZB4XFLQNZ/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/N6VXJZSZ6N64AILJX4CTMACYGQGHHD5C/
- https://security.gentoo.org/glsa/202104-04
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/SGIY6I4YS3WOXAK4SXKIEOC2G4VZKIR7/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/RSLQD5CCM75IZGAMBDGUZEATYU5YSGJ7/
Patches
- https://github.com/python/cpython/pull/24297
- http://www.openwall.com/lists/oss-security/2021/02/19/4
- https://www.oracle.com/security-alerts/cpuApr2021.html
- https://www.oracle.com//security-alerts/cpujul2021.html
- https://www.oracle.com/security-alerts/cpuoct2021.html
- https://www.oracle.com/security-alerts/cpujan2022.html
Exploits and PoCs
Other
- https://snyk.io/blog/cache-poisoning-in-popular-open-source-packages/
- https://lists.debian.org/debian-lts-announce/2021/02/msg00030.html
- https://lists.apache.org/thread.html/rf9fa47ab66495c78bb4120b0754dd9531ca2ff0430f6685ac9b07772%40%3Cdev.mina.apache.org%3E
- https://lists.debian.org/debian-lts-announce/2021/04/msg00005.html
- https://lists.debian.org/debian-lts-announce/2021/04/msg00015.html
- https://lists.apache.org/thread.html/ra8ce70088ba291f358e077cafdb14d174b7a1ce9a9d86d1b332d6367%40%3Cusers.airflow.apache.org%3E
- http://www.openwall.com/lists/oss-security/2021/05/01/2
- https://lists.apache.org/thread.html/rc005f4de9d9b0ba943ceb8ff5a21a5c6ff8a9df52632476698d99432%40%3Cannounce.apache.org%3E
- https://security.netapp.com/advisory/ntap-20210326-0004/
- https://lists.debian.org/debian-lts-announce/2023/09/msg00022.html
- https://cert-portal.siemens.com/productcert/html/ssa-398330.html
FAQ
Is CVE-2021-23336 being exploited?
There is no confirmed exploitation: CVE-2021-23336 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 41.13% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2021-23336?
Medium: CVSS 5.9 (v3.1, scored by CNA). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work. The attack needs conditions outside the attacker's control, which makes it harder.
Which versions are affected by CVE-2021-23336?
python/cpython < unspecified; >= unspecified, < 3.6.13; >= 3.7.0, < unspecified; >= unspecified, < 3.7.10; >= 3.8.0, < unspecified; >= unspecified, < 3.8.8; >= 3.9.0, < unspecified; >= unspecified, < 3.9.2.
Is there a fix for CVE-2021-23336?
Yes. Fixed in python/cpython 3.6.13, python/cpython 3.7.10, python/cpython 3.8.8, python/cpython 3.9.2. Upgrade python/cpython to 3.9.2 or later.
How do I check if I'm affected by CVE-2021-23336?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.