CVE-2021-23336
JSON

5.9medium

Web Cache Poisoning

Severity
5.9medium CVSS:3.1 by snyk
Exploit likelihood
41.1% (higher than 98% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
snyk
Also known as
PSF-2021-1BIT-DJANGO-2021-23336BIT-LIBPYTHON-2021-23336BIT-PYTHON-2021-23336BIT-PYTHON-MIN-2021-23336SNYK-UPSTREAM-PYTHONCPYTHON-1074933

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

Product or packageVersionsReported by
python/cpythonbefore unspecified, from unspecified before 3.6.13, from 3.7.0 before unspecified, from unspecified before 3.7.10, from 3.8.0 before unspecified, from unspecified before 3.8.8, from 3.9.0 before unspecified, from unspecified before 3.9.2CVE List
https://github.com/python/cpythonbefore 5c17dfc5d70ce88be99bc5769b91ce79d7a90d61, before c9f07813ab8e664d8c34413c4fc2d4f86c061a92, before d0d4d30882fe3ab9b1badbecf5d15d94326fd13e, before e3110c3cfbb7daa690d54d0eff6c264c870a71bf, before fcbe0cb04d35189401c0c880ebfb4311e952d776Python Software Foundation
python pythonbefore 3.6.13, from 3.7.0 before 3.7.10, from 3.8.0 before 3.8.8, from 3.9.0 before 3.9.2NVD
fedoraproject fedora32, 33, 34NVD
debian debian_linux9.0NVD
netapp cloud_backupNot specifiedNVD
netapp inventory_collect_toolNot specifiedNVD
netapp ontap_select_deploy_administration_utilityNot specifiedNVD
netapp snapcenterNot specifiedNVD
djangoproject djangofrom 2.2 before 2.2.19, from 3.0 before 3.0.13, from 3.1 before 3.1.7NVD
oracle communications_offline_mediation_controller12.0.0.3.0NVD
oracle communications_pricing_design_center12.0.0.3.0NVD

All scores

snyk5.9medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:H/E:P/RL:U/RC:C
NVD5.9medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:H
NVD4.0medium CVSS:2.0AV:N/AC:H/Au:N/C:N/I:P/A:P
Bitnami Vulnerability Databasemedium rating

Classification

CWE-444

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

El paquete python/cpython desde versiones 0 y anteriores a 3.6.13, desde versiones 3.7.0 y anteriores a 3.7.10, desde versiones 3.8.0 y anteriores a 3.8.8, desde versiones 3.9.0 y anteriores a 3.9.2, son vulnerables al envenenamiento de caché web por medio de urllib.parse.parse_qsl y urllib.parse.parse_qs usando un vector llamado encubrimiento de parámetros. Cuando el atacante puede separar los parámetros de la consulta usando un punto y coma (;), pueden causar una diferencia en la interpretación de la petición entre el proxy (que se ejecuta con la configuración predeterminada) y el servidor. Esto puede resultar en que las peticiones maliciosas se almacenen en caché como completamente seguras, ya que el proxy normalmente no vería el punto y coma como un separador y, por lo tanto, no lo incluiría en una clave de caché de un parámetro sin clave

References

https://snyk.io/vuln/SNYK-UPSTREAM-PYTHONCPYTHON-1074933advisory, exploit, third-party-advisory
https://github.com/python/cpython/pull/24297advisory, patch, third-party-advisory
https://snyk.io/blog/cache-poisoning-in-popular-open-source-packages/advisory, technical-description, third-party-advisory, web
http://www.openwall.com/lists/oss-security/2021/02/19/4advisory, mailing-list, patch, third-party-advisory
https://lists.debian.org/debian-lts-announce/2021/02/msg00030.htmladvisory, mailing-list, third-party-advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HCQTCSP6SCVIYNIRUJC5X7YBVUHPLSC4/vendor-advisory, web
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/NODWHDIFBQE5RU5PUWUVE47JOT5VCMJ2/vendor-advisory, web
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MP572OLHMS7MZO4KUPSCIMSZIA5IZZ62/vendor-advisory, web
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MNUN5SOMFL2BBKP6ZAICIIUPQKZDMGYO/vendor-advisory, web
https://lists.apache.org/thread.html/rf9fa47ab66495c78bb4120b0754dd9531ca2ff0430f6685ac9b07772%40%3Cdev.mina.apache.org%3Emailing-list, web
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FONHJIOZOFD7CD35KZL6SVBUTMBPGZGA/vendor-advisory, web
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/KJXCMHLY7H3FIYLE4OKDYUILU2CCRUCZ/vendor-advisory, web

Sources

SourceRecordLicence
CVE ListCVE-2021-23336 changed 2026-10-14CVE Terms of Use
Python Software FoundationPSF-2021-1 changed 2026-07-08CC-BY-4.0
NVDCVE-2021-23336 changed 2026-10-14Public domain
Bitnami Vulnerability DatabaseBIT-DJANGO-2021-23336 changed 2026-09-08Apache-2.0
Bitnami Vulnerability DatabaseBIT-LIBPYTHON-2021-23336 changed 2026-09-08Apache-2.0
Bitnami Vulnerability DatabaseBIT-PYTHON-2021-23336 changed 2026-09-08Apache-2.0
Bitnami Vulnerability DatabaseBIT-PYTHON-MIN-2021-23336 changed 2026-09-08Apache-2.0