Original 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 software
- Python < 3.6.13≥ 3.9.0 < 3.9.2≥ 3.7.0 < 3.7.10≥ 3.8.0 < 3.8.8 Fixed in: 3.6.13, 3.9.2, 3.7.10, 3.8.8 exact match
Details
- Published
- 2021-02-15
- Last modified
- 2026-10-14
- CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:H/E:P/RL:U/RC:C- EPSS (30-day exploit probability)
- 41.13% (percentile 99)
References
- cve.org/CVE-2021-23336
- nvd.nist.gov/vuln/detail/CVE-2021-23336
- snyk.io/vuln/SNYK-UPSTREAM-PYTHONCPYTHON-1074933
- github.com/python/cpython/pull/24297
- snyk.io/blog/cache-poisoning-in-popular-open-source-packages/
- www.openwall.com/lists/oss-security/2021/02/19/4
- lists.debian.org/debian-lts-announce/2021/02/msg00030.html
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/H...
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/N...
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/M...
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/M...
- lists.apache.org/thread.html/rf9fa47ab66495c78bb4120b0754dd9531ca2ff0430f6685ac9b07772%40%...
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/F...
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/K...
Track these versions on your own servers
InfraGuard collects installed software versions from every server and flags the ones with known vulnerabilities. Self-hosted — nothing leaves your network.
This product uses data from the NVD API but is not endorsed or certified by the NVD. CVE® is a registered trademark of The MITRE Corporation; CVE records are used under the CVE Program Terms of Use.