CVE-2021-23336
Published: 15 February 2021
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.
Notes
Author | Note |
---|---|
mdeslaur | fixing this in stable releases will break compatibility with existing applications. Marking as low priority. We may decide not to fix this at all in stable releases in the future. |
rodrigo-zaiden | Decided not to fix. The proposed fixes could possibly break existing python packages in Ubuntu. There are known regressions to this CVE, such as: https://giters.com/scrapy/w3lib/issues/164 |
Priority
Status
Package | Release | Status |
---|---|---|
python-django Launchpad, Ubuntu, Debian |
kinetic |
Released
(2.2.19-1)
|
impish |
Released
(2.2.19-1)
|
|
trusty |
Not vulnerable
(code not present)
|
|
xenial |
Not vulnerable
(code not present)
|
|
bionic |
Released
(1:1.11.11-1ubuntu1.11)
|
|
focal |
Released
(2:2.2.12-1ubuntu0.4)
|
|
groovy |
Released
(2:2.2.16-1ubuntu0.2)
|
|
hirsute |
Released
(2.2.19-1)
|
|
upstream |
Released
(2.2.19)
|
|
jammy |
Released
(2.2.19-1)
|
|
lunar |
Released
(2.2.19-1)
|
|
mantic |
Released
(2.2.19-1)
|
|
Patches: upstream: https://github.com/django/django/commit/8f6d431b08cbb418d9144b976e7b972546607851 |
||
python2.7 Launchpad, Ubuntu, Debian |
groovy |
Ignored
(end of life)
|
hirsute |
Ignored
(end of life)
|
|
kinetic |
Ignored
|
|
impish |
Ignored
|
|
upstream |
Needs triage
|
|
bionic |
Ignored
|
|
focal |
Ignored
|
|
trusty |
Ignored
|
|
xenial |
Ignored
|
|
jammy |
Ignored
|
|
lunar |
Does not exist
|
|
mantic |
Does not exist
|
|
python3.4 Launchpad, Ubuntu, Debian |
kinetic |
Does not exist
|
impish |
Does not exist
|
|
bionic |
Does not exist
|
|
focal |
Does not exist
|
|
groovy |
Does not exist
|
|
hirsute |
Does not exist
|
|
trusty |
Needed
|
|
upstream |
Needs triage
|
|
xenial |
Does not exist
|
|
jammy |
Does not exist
|
|
lunar |
Does not exist
|
|
mantic |
Does not exist
|
|
python3.5 Launchpad, Ubuntu, Debian |
kinetic |
Does not exist
|
impish |
Does not exist
|
|
bionic |
Does not exist
|
|
focal |
Does not exist
|
|
groovy |
Does not exist
|
|
hirsute |
Does not exist
|
|
trusty |
Ignored
|
|
upstream |
Needs triage
|
|
xenial |
Ignored
|
|
jammy |
Does not exist
|
|
lunar |
Does not exist
|
|
mantic |
Does not exist
|
|
python3.6 Launchpad, Ubuntu, Debian |
groovy |
Does not exist
|
hirsute |
Does not exist
|
|
kinetic |
Does not exist
|
|
trusty |
Does not exist
|
|
upstream |
Released
(3.6.13)
|
|
xenial |
Does not exist
|
|
impish |
Does not exist
|
|
focal |
Does not exist
|
|
bionic |
Ignored
|
|
jammy |
Does not exist
|
|
lunar |
Does not exist
|
|
mantic |
Does not exist
|
|
python3.7 Launchpad, Ubuntu, Debian |
focal |
Does not exist
|
groovy |
Does not exist
|
|
hirsute |
Does not exist
|
|
kinetic |
Does not exist
|
|
trusty |
Does not exist
|
|
upstream |
Released
(3.7.10)
|
|
xenial |
Does not exist
|
|
impish |
Does not exist
|
|
bionic |
Ignored
|
|
jammy |
Does not exist
|
|
lunar |
Does not exist
|
|
mantic |
Does not exist
|
|
Patches: upstream: https://github.com/python/cpython/commit/d0d4d30882fe3ab9b1badbecf5d15d94326fd13e |
||
python3.8 Launchpad, Ubuntu, Debian |
groovy |
Ignored
(end of life)
|
hirsute |
Does not exist
|
|
kinetic |
Does not exist
|
|
trusty |
Does not exist
|
|
upstream |
Released
(3.8.8)
|
|
xenial |
Does not exist
|
|
impish |
Does not exist
|
|
bionic |
Ignored
|
|
focal |
Ignored
|
|
jammy |
Does not exist
|
|
lunar |
Does not exist
|
|
mantic |
Does not exist
|
|
Patches: upstream: https://github.com/python/cpython/commit/e3110c3cfbb7daa690d54d0eff6c264c870a71bf upstream: https://github.com/python/cpython/commit/d5b80eb11b4812b4a579ce129ba4a10c5f5d27f6 |
||
python3.9 Launchpad, Ubuntu, Debian |
bionic |
Does not exist
|
focal |
Released
(3.9.5-3~20.04.1)
|
|
groovy |
Released
(3.9.5-3~20.10.1)
|
|
kinetic |
Does not exist
|
|
xenial |
Does not exist
|
|
impish |
Not vulnerable
(3.9.2-1)
|
|
trusty |
Does not exist
|
|
upstream |
Released
(3.9.2)
|
|
hirsute |
Not vulnerable
(3.9.2-1)
|
|
jammy |
Does not exist
|
|
lunar |
Does not exist
|
|
mantic |
Does not exist
|
|
Patches: upstream: https://github.com/python/cpython/commit/c9f07813ab8e664d8c34413c4fc2d4f86c061a92 |
Severity score breakdown
Parameter | Value |
---|---|
Base score | 5.9 |
Attack vector | Network |
Attack complexity | High |
Privileges required | None |
User interaction | Required |
Scope | Unchanged |
Confidentiality | None |
Integrity impact | Low |
Availability impact | High |
Vector | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:H |
References
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-23336
- https://github.com/python/cpython/pull/24297
- https://github.com/python/cpython/commit/fcbe0cb04d35189401c0c880ebfb4311e952d776 (master)
- https://snyk.io/blog/cache-poisoning-in-popular-open-source-packages/
- https://snyk.io/vuln/SNYK-UPSTREAM-PYTHONCPYTHON-1074933
- https://www.djangoproject.com/weblog/2021/feb/19/security-releases/
- https://ubuntu.com/security/notices/USN-4742-1
- NVD
- Launchpad
- Debian