CVE-2024-5642
CVE-2024-5642 · Buffer overread when using an empty list with SSLContext.set_npn_protocols()
This page contains facts from public vulnerability sources. Check the original advisory before updating.
CPython 3.9 and earlier doesn't disallow configuring an empty list ("[]") for SSLContext.set_npn_protocols() which is an invalid value for the underlying OpenSSL API. This results in a buffer over-read when NPN is used (see CVE-2024-5535 for OpenSSL). This vulnerability is of low severity due to NPN being not widely used and specifying an empty list likely being uncommon in-practice (typically a protocol name would be configured).
CVSS 6.5 · Medium · EPSS 0.7% · Fix available
- Published
- Updated
Affected products and versions
python
- Versions
- ≥ 0, < 3.9.24: Affected (python)
- ≥ 3.10.0a1, < 3.10.0b1: Affected (python)
Update to 3.10.0b1; Update to 3.9.24
pypy3 Debian:12
- Affected ranges
- ECOSYSTEM: < 7.3.10+dfsg-1
Update to 7.3.10+dfsg-1
pypy3 Debian:13
- Affected ranges
- ECOSYSTEM: < 7.3.10+dfsg-1
Update to 7.3.10+dfsg-1
pypy3 Debian:14
- Affected ranges
- ECOSYSTEM: < 7.3.10+dfsg-1
Update to 7.3.10+dfsg-1
python2.7 Ubuntu:Pro:14.04:LTS
- Versions
- 2.7.5-8ubuntu3
- 2.7.5-8ubuntu4
- 2.7.6-2
- 2.7.6-2ubuntu1
- 2.7.6-3
- 2.7.6-3ubuntu1
- 2.7.6-4
- 2.7.6-4ubuntu1
- 2.7.6-5
- 2.7.6-7
- 2.7.6-8
- 2.7.6-8ubuntu0.2
- 2.7.6-8ubuntu0.3
- 2.7.6-8ubuntu0.4
- 2.7.6-8ubuntu0.5
- 2.7.6-8ubuntu0.6+esm2
- 2.7.6-8ubuntu0.6+esm3
- 2.7.6-8ubuntu0.6+esm5
- 2.7.6-8ubuntu0.6+esm6
- 2.7.6-8ubuntu0.6+esm7
- 2.7.6-8ubuntu0.6+esm8
- 2.7.6-8ubuntu0.6+esm9
- 2.7.6-8ubuntu0.6+esm10
- 2.7.6-8ubuntu0.6+esm11
- 2.7.6-8ubuntu0.6+esm12
- 2.7.6-8ubuntu0.6+esm13
- 2.7.6-8ubuntu0.6+esm14
- 2.7.6-8ubuntu0.6+esm15
- 2.7.6-8ubuntu0.6+esm16
- 2.7.6-8ubuntu0.6+esm17
- 2.7.6-8ubuntu0.6+esm18
- 2.7.6-8ubuntu0.6+esm20
- 2.7.6-8ubuntu0.6+esm21
- 2.7.6-8ubuntu0.6+esm22
- 2.7.6-8ubuntu0.6+esm24
- 2.7.6-8ubuntu0.6+esm25
- 2.7.6-8ubuntu0.6+esm26
- 2.7.6-8ubuntu0.6+esm28
- 2.7.6-8ubuntu0.6+esm29
- 2.7.6-8ubuntu0.6+esm30
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
python3.4 Ubuntu:Pro:14.04:LTS
- Versions
- 3.4~b1-0ubuntu3
- 3.4~b1-4ubuntu4
- 3.4~b1-4ubuntu6
- 3.4~b1-5ubuntu2
- 3.4~b2-1
- 3.4~b3-1ubuntu1
- 3.4~rc1-1build1
- 3.4~rc2-1
- 3.4~rc3-0ubuntu1
- 3.4.0-1
- 3.4.0-2ubuntu1
- 3.4.0-2ubuntu1.1
- 3.4.3-1ubuntu1~14.04.1
- 3.4.3-1ubuntu1~14.04.3
- 3.4.3-1ubuntu1~14.04.4
- 3.4.3-1ubuntu1~14.04.5
- 3.4.3-1ubuntu1~14.04.6
- 3.4.3-1ubuntu1~14.04.7
- 3.4.3-1ubuntu1~14.04.7+esm2
- 3.4.3-1ubuntu1~14.04.7+esm4
- 3.4.3-1ubuntu1~14.04.7+esm6
- 3.4.3-1ubuntu1~14.04.7+esm7
- 3.4.3-1ubuntu1~14.04.7+esm8
- 3.4.3-1ubuntu1~14.04.7+esm10
- 3.4.3-1ubuntu1~14.04.7+esm11
- 3.4.3-1ubuntu1~14.04.7+esm12
- 3.4.3-1ubuntu1~14.04.7+esm13
- 3.4.3-1ubuntu1~14.04.7+esm14
- 3.4.3-1ubuntu1~14.04.7+esm15
- 3.4.3-1ubuntu1~14.04.7+esm16
- 3.4.3-1ubuntu1~14.04.7+esm17
- 3.4.3-1ubuntu1~14.04.7+esm19
- 3.4.3-1ubuntu1~14.04.7+esm20
- 3.4.3-1ubuntu1~14.04.7+esm21
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
python3.5 Ubuntu:Pro:14.04:LTS
- Versions
- 3.5.2-2ubuntu0~16.04.4~14.04.1
- 3.5.2-2ubuntu0~16.04.4~14.04.1+esm1
- 3.5.2-2ubuntu0~16.04.4~14.04.1+esm3
- 3.5.2-2ubuntu0~16.04.4~14.04.1+esm4
- 3.5.2-2ubuntu0~16.04.4~14.04.1+esm5
- 3.5.2-2ubuntu0~16.04.4~14.04.1+esm6
- 3.5.2-2ubuntu0~16.04.4~14.04.1+esm7
- 3.5.2-2ubuntu0~16.04.4~14.04.1+esm8
- 3.5.2-2ubuntu0~16.04.4~14.04.1+esm9
- 3.5.2-2ubuntu0~16.04.4~14.04.1+esm10
- 3.5.2-2ubuntu0~16.04.4~14.04.1+esm11
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
python2.7 Ubuntu:Pro:16.04:LTS
- Versions
- 2.7.10-4ubuntu1
- 2.7.10-4ubuntu2
- 2.7.11-2
- 2.7.11-3
- 2.7.11-4
- 2.7.11-6
- 2.7.11-7
- 2.7.11-7ubuntu1
- 2.7.12-1~16.04
- 2.7.12-1ubuntu0~16.04.1
- 2.7.12-1ubuntu0~16.04.2
- 2.7.12-1ubuntu0~16.04.3
- 2.7.12-1ubuntu0~16.04.4
- 2.7.12-1ubuntu0~16.04.8
- 2.7.12-1ubuntu0~16.04.9
- 2.7.12-1ubuntu0~16.04.11
- 2.7.12-1ubuntu0~16.04.12
- 2.7.12-1ubuntu0~16.04.13
- 2.7.12-1ubuntu0~16.04.14
- 2.7.12-1ubuntu0~16.04.16
- 2.7.12-1ubuntu0~16.04.18
- 2.7.12-1ubuntu0~16.04.18+esm1
- 2.7.12-1ubuntu0~16.04.18+esm2
- 2.7.12-1ubuntu0~16.04.18+esm3
- 2.7.12-1ubuntu0~16.04.18+esm4
- 2.7.12-1ubuntu0~16.04.18+esm5
- 2.7.12-1ubuntu0~16.04.18+esm6
- 2.7.12-1ubuntu0~16.04.18+esm7
- 2.7.12-1ubuntu0~16.04.18+esm8
- 2.7.12-1ubuntu0~16.04.18+esm9
- 2.7.12-1ubuntu0~16.04.18+esm10
- 2.7.12-1ubuntu0~16.04.18+esm11
- 2.7.12-1ubuntu0~16.04.18+esm12
- 2.7.12-1ubuntu0~16.04.18+esm13
- 2.7.12-1ubuntu0~16.04.18+esm15
- 2.7.12-1ubuntu0~16.04.18+esm16
- 2.7.12-1ubuntu0~16.04.18+esm17
- 2.7.12-1ubuntu0~16.04.18+esm18
- 2.7.12-1ubuntu0~16.04.18+esm19
- 2.7.12-1ubuntu0~16.04.18+esm20
- 2.7.12-1ubuntu0~16.04.18+esm21
- 2.7.12-1ubuntu0~16.04.18+esm22
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
python3.5 Ubuntu:Pro:16.04:LTS
- Versions
- 3.5.0-3
- 3.5.0-3ubuntu1
- 3.5.1~rc1-2ubuntu1
- 3.5.1-1
- 3.5.1-2
- 3.5.1-3
- 3.5.1-5
- 3.5.1-6ubuntu1
- 3.5.1-6ubuntu2
- 3.5.1-9ubuntu1
- 3.5.1-10
- 3.5.2-2~16.01
- 3.5.2-2~16.04
- 3.5.2-2ubuntu0~16.04.1
- 3.5.2-2ubuntu0~16.04.2
- 3.5.2-2ubuntu0~16.04.3
- 3.5.2-2ubuntu0~16.04.4
- 3.5.2-2ubuntu0~16.04.5
- 3.5.2-2ubuntu0~16.04.8
- 3.5.2-2ubuntu0~16.04.9
- 3.5.2-2ubuntu0~16.04.10
- 3.5.2-2ubuntu0~16.04.11
- 3.5.2-2ubuntu0~16.04.12
- 3.5.2-2ubuntu0~16.04.13
- 3.5.2-2ubuntu0~16.04.13+esm1
- 3.5.2-2ubuntu0~16.04.13+esm2
- 3.5.2-2ubuntu0~16.04.13+esm3
- 3.5.2-2ubuntu0~16.04.13+esm5
- 3.5.2-2ubuntu0~16.04.13+esm6
- 3.5.2-2ubuntu0~16.04.13+esm7
- 3.5.2-2ubuntu0~16.04.13+esm8
- 3.5.2-2ubuntu0~16.04.13+esm9
- 3.5.2-2ubuntu0~16.04.13+esm10
- 3.5.2-2ubuntu0~16.04.13+esm11
- 3.5.2-2ubuntu0~16.04.13+esm12
- 3.5.2-2ubuntu0~16.04.13+esm13
- 3.5.2-2ubuntu0~16.04.13+esm14
- 3.5.2-2ubuntu0~16.04.13+esm15
- 3.5.2-2ubuntu0~16.04.13+esm16
- 3.5.2-2ubuntu0~16.04.13+esm17
- 3.5.2-2ubuntu0~16.04.13+esm18
- 3.5.2-2ubuntu0~16.04.13+esm19
- 3.5.2-2ubuntu0~16.04.13+esm20
- 3.5.2-2ubuntu0~16.04.13+esm21
- 3.5.2-2ubuntu0~16.04.13+esm22
- 3.5.2-2ubuntu0~16.04.13+esm23
- 3.5.2-2ubuntu0~16.04.13+esm24
- 3.5.2-2ubuntu0~16.04.13+esm25
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
python2.7 Ubuntu:Pro:18.04:LTS
- Versions
- 2.7.14-2ubuntu2
- 2.7.14-4
- 2.7.14-6
- 2.7.14-7
- 2.7.14-8
- 2.7.15~rc1-1
- 2.7.15~rc1-1ubuntu0.1
- 2.7.15-4ubuntu4~18.04
- 2.7.15-4ubuntu4~18.04.1
- 2.7.15-4ubuntu4~18.04.2
- 2.7.17-1~18.04
- 2.7.17-1~18.04ubuntu1
- 2.7.17-1~18.04ubuntu1.1
- 2.7.17-1~18.04ubuntu1.2
- 2.7.17-1~18.04ubuntu1.3
- 2.7.17-1~18.04ubuntu1.5
- 2.7.17-1~18.04ubuntu1.6
- 2.7.17-1~18.04ubuntu1.7
- 2.7.17-1~18.04ubuntu1.8
- 2.7.17-1~18.04ubuntu1.10
- 2.7.17-1~18.04ubuntu1.11
- 2.7.17-1~18.04ubuntu1.13
- 2.7.17-1~18.04ubuntu1.13+esm1
- 2.7.17-1~18.04ubuntu1.13+esm2
- 2.7.17-1~18.04ubuntu1.13+esm3
- 2.7.17-1~18.04ubuntu1.13+esm4
- 2.7.17-1~18.04ubuntu1.13+esm5
- 2.7.17-1~18.04ubuntu1.13+esm6
- 2.7.17-1~18.04ubuntu1.13+esm7
- 2.7.17-1~18.04ubuntu1.13+esm8
- 2.7.17-1~18.04ubuntu1.13+esm10
- 2.7.17-1~18.04ubuntu1.13+esm11
- 2.7.17-1~18.04ubuntu1.13+esm12
- 2.7.17-1~18.04ubuntu1.13+esm13
- 2.7.17-1~18.04ubuntu1.13+esm14
- 2.7.17-1~18.04ubuntu1.13+esm15
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
python2.7 Ubuntu:Pro:20.04:LTS
- Versions
- 2.7.17~rc1-1
- 2.7.17-1
- 2.7.17-1ubuntu5
- 2.7.17-1ubuntu6
- 2.7.18~rc1-2
- 2.7.18-1~20.04
- 2.7.18-1~20.04.1
- 2.7.18-1~20.04.1+esm1
- 2.7.18-1~20.04.3
- 2.7.18-1~20.04.3+esm1
- 2.7.18-1~20.04.4
- 2.7.18-1~20.04.4+esm1
- 2.7.18-1~20.04.4+esm2
- 2.7.18-1~20.04.4+esm3
- 2.7.18-1~20.04.5
- 2.7.18-1~20.04.5+esm1
- 2.7.18-1~20.04.5+esm2
- 2.7.18-1~20.04.6
- 2.7.18-1~20.04.6+esm1
- 2.7.18-1~20.04.7
- 2.7.18-1~20.04.7+esm3
- 2.7.18-1~20.04.7+esm4
- 2.7.18-1~20.04.7+esm6
- 2.7.18-1~20.04.7+esm7
- 2.7.18-1~20.04.7+esm8
- 2.7.18-1~20.04.7+esm9
- 2.7.18-1~20.04.7+esm10
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
python3.9 Ubuntu:Pro:20.04:LTS
- Versions
- 3.9.0~rc1-1~20.04
- 3.9.0-5~20.04
- 3.9.5-3~20.04.1
- 3.9.5-3ubuntu0~20.04.1
- 3.9.5-3ubuntu0~20.04.1+esm1
- 3.9.5-3ubuntu0~20.04.1+esm2
- 3.9.5-3ubuntu0~20.04.1+esm3
- 3.9.5-3ubuntu0~20.04.1+esm4
- 3.9.5-3ubuntu0~20.04.1+esm5
- 3.9.5-3ubuntu0~20.04.1+esm6
- 3.9.5-3ubuntu0~20.04.1+esm7
- 3.9.5-3ubuntu0~20.04.1+esm8
- 3.9.5-3ubuntu0~20.04.1+esm9
- 3.9.5-3ubuntu0~20.04.1+esm10
- 3.9.5-3ubuntu0~20.04.1+esm11
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
python2.7 Ubuntu:Pro:22.04:LTS
- Versions
- 2.7.18-8build1
- 2.7.18-13
- 2.7.18-13ubuntu1
- 2.7.18-13ubuntu1.1
- 2.7.18-13ubuntu1.1+esm2
- 2.7.18-13ubuntu1.2
- 2.7.18-13ubuntu1.2+esm1
- 2.7.18-13ubuntu1.2+esm2
- 2.7.18-13ubuntu1.2+esm3
- 2.7.18-13ubuntu1.3
- 2.7.18-13ubuntu1.3+esm1
- 2.7.18-13ubuntu1.4
- 2.7.18-13ubuntu1.4+esm1
- 2.7.18-13ubuntu1.5
- 2.7.18-13ubuntu1.5+esm2
- 2.7.18-13ubuntu1.5+esm3
- 2.7.18-13ubuntu1.5+esm5
- 2.7.18-13ubuntu1.5+esm6
- 2.7.18-13ubuntu1.5+esm7
- 2.7.18-13ubuntu1.5+esm8
- 2.7.18-13ubuntu1.5+esm9
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
Original sources
- https://jbp.io/2024/06/27/cve-2024-5535-openssl-memory-safety.html
- https://github.com/python/cpython/pull/23014
- https://mail.python.org/archives/list/[email protected]/thread/PLP2JI3PJY33YG6P5BZYSSNU66HASXBQ/
- https://github.com/python/cpython/commit/39258d3595300bc7b952854c915f63ae2d4b9c3e
- http://www.openwall.com/lists/oss-security/2024/06/28/4
- https://github.com/python/cpython/issues/121227
- https://security.netapp.com/advisory/ntap-20240726-0005/
- https://github.com/python/cpython/commit/a2cdbb6e8188ba9ba8b356b28d91bff60e86fe31
- https://nvd.nist.gov/vuln/detail/CVE-2024-5642