CVE-2021-23336: Web Cache Poisoning

Published Feb 13, 2021
·
Updated

Python CPython could allow a remote attacker to bypass security restrictions, caused by a web cache poisoning flaw via urllib.parse.parseqsl and urllib.parse.parseqs. By sending a specially-crafted request parameter cloaking, an attacker could exploit this vulnerability to cause a difference in the interpretation of the request between the proxy and the server.

Other sources

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.parseqsl and urllib.parse.parseqs 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.

The package python/cpython is vulnerable to Web Cache Poisoning via urllib.parse.parseqsl and urllib.parse.parseqs 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

38 affected componentsFixes available
redhat/python3<0:3.6.8-37.el8
0:3.6.8-37.el8
redhat/python27-babel<0:0.9.6-10.el7
0:0.9.6-10.el7
redhat/python27-python<0:2.7.18-3.el7
0:2.7.18-3.el7
redhat/python27-python-jinja2<0:2.6-16.el7
0:2.6-16.el7
redhat/python27-python-pygments<0:1.5-5.el7
0:1.5-5.el7
redhat/rh-python38-babel<0:2.7.0-12.el7
0:2.7.0-12.el7
redhat/rh-python38-python<0:3.8.11-2.el7
0:3.8.11-2.el7
redhat/rh-python38-python-cryptography<0:2.8-5.el7
0:2.8-5.el7
redhat/rh-python38-python-jinja2<0:2.10.3-6.el7
0:2.10.3-6.el7
redhat/rh-python38-python-lxml<0:4.4.1-7.el7
0:4.4.1-7.el7
redhat/rh-python38-python-pip<0:19.3.1-2.el7
0:19.3.1-2.el7
redhat/rh-python38-python-urllib3<0:1.25.7-7.el7
0:1.25.7-7.el7
IBM Cloud Pak for Security (CP4S)<=1.7.2.0
IBM Cloud Pak for Security (CP4S)<=1.7.1.0
IBM Cloud Pak for Security (CP4S)<=1.7.0.0
Python Python<3.6.13
Python Python>=3.7.0<3.7.10
Python Python>=3.8.0<3.8.8
Python Python>=3.9.0<3.9.2
Fedoraproject Fedora=32
Fedoraproject Fedora=33
Fedoraproject Fedora=34
Debian Debian Linux=9.0
NetApp Cloud Backup
NetApp Inventory Collect Tool
NetApp ONTAP Select Deploy administration utility
NetApp Snapcenter
djangoproject Django>=2.2<2.2.19
djangoproject Django>=3.0<3.0.13
djangoproject Django>=3.1<3.1.7
Oracle Communications Offline Mediation Controller=12.0.0.3.0
Oracle Communications Pricing Design Center=12.0.0.3.0
Oracle Enterprise Manager Ops Center=12.4.0.0
Oracle ZFS Storage Appliance=8.8
redhat/python<3.6.13
3.6.13
redhat/python<3.7.10
3.7.10
redhat/python<3.8.8
3.8.8
redhat/python<3.9.2
3.9.2

Event History

Feb 13, 2021
CVE Published
12:00 AM
Feb 15, 2021
CVE Published
via MITRE·12:15 PM
Data Sourced
via MITRE·12:15 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·01:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Data Sourced
via Red Hat·07:42 PM
DescriptionSeverityAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2021-23336?

CVE-2021-23336 is a vulnerability in the Python CPython package that could allow a remote attacker to bypass security restrictions caused by a web cache poisoning.

2

How does CVE-2021-23336 work?

CVE-2021-23336 allows an attacker to perform Web Cache Poisoning by using a vector called parameter cloaking, specifically targeting the functions urllib.parse.parse_qsl and urllib.parse.parse_qs.

3

What is the severity of CVE-2021-23336?

CVE-2021-23336 has a severity level of medium with a score of 5.9.

4

Which versions of Python are affected by CVE-2021-23336?

The versions of python/cpython affected by CVE-2021-23336 are 0 and before 3.6.13, 3.7.0 and before 3.7.10, 3.8.0 and before 3.8.8, and 3.9.0 and before 3.9.2.

5

How can I fix CVE-2021-23336?

To fix CVE-2021-23336, update your Python package to version 3.6.13, 3.7.10, 3.8.8, or 3.9.2.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203