synced 3 MIN AGO
01 Record

CVE-2024-5642

Buffer overread when using an empty list with SSLContext.set_npn_protocols()

MediumPUBLISHEDCNA: PSF
CNA base score6.5 CVSS v3.xCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L

02 Description

Buffer overread when using an empty list with SSLContext.set_npn_protocols()

03 Exploitation and scoring

Exploitation
Assessed, none found. CISA's assessment recorded neither public exploit code nor evidence of exploitation when it was made.
SSVC decision
  • ExploitationnoneCISA recorded no public exploit code and no evidence of exploitation.
  • AutomatablenoAt least one step from reconnaissance to exploitation cannot be reliably automated.
  • Technical ImpactpartialSuccessful exploitation gives limited control of the vulnerable component.
CISA publishes the decision points, not a final SSVC decision. The decision also depends on mission and well-being impact, which is a property of your deployment rather than of the vulnerability.
EPSS probability
0.74% probability of exploitation activity in the next 30 days.
EPSS percentile
Equal to or higher than the score of 54.3% of scored records. A rank, not a probability.
NVD base score
6.5 (CVSS v3.x), scored by the NVD independently of the CNA.
NVD CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L
NVD analysis status
Deferred. NVD last modified this record on 2026-07-31.
Red Hat severity
Low. Red Hat's rating for its own products, not a CVSS rating.

Exploit-prediction scores from FIRST. Independent scoring and analysis status from the NVD. Vendor severity from Red Hat. Exploitation assessment and catalog membership from CISA.

04 Metadata

Published
2024-06-27 21:05Z2 YR AGO
Last updated
2026-07-31 14:06Z3 MO AGO
Reserved
2024-06-04
Assigning CNA
PSF
Record state
PUBLISHED
Severity
Medium (CVSS 6.5)
CNA CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L
Weaknesses
  • CWE-20Improper Input ValidationClass
Data version
5.2
Document digest
d3752ed3f5e248c29dbbd0295f4311646e9894943d412b3a12a4689a0f0b6cb8

05 Affected products

VendorProductVersionsPlatforms
Python Software FoundationCPython0 to < 3.9.24, 3.10.0a1 to < 3.10.0b1—

06 References

07 Fixed in

AlmaLinux 8

  • python39
    Fixed in 3.9.25-2.module_el8.10.0+4083+53cad1fb
  • python39-Cython
    Fixed

    A version is affected if any line below covers it.

    • Affected before 0.29.21-5.module_el8.6.0+2780+a40f65e1
    • Affected before 0.29.21-5.module_el8.6.0+3248+c431e88c
  • python39-PyMySQL
    Fixed in 0.10.1-2.module_el8.6.0+2780+a40f65e1
  • python39-attrs
    Fixed in 20.3.0-2.module_el8.6.0+2780+a40f65e1
  • python39-cffi
    Fixed

    A version is affected if any line below covers it.

    • Affected before 1.14.3-2.module_el8.6.0+2780+a40f65e1
    • Affected before 1.14.3-2.module_el8.6.0+3248+c431e88c
  • python39-chardet
    Fixed in 3.0.4-19.module_el8.6.0+2780+a40f65e1
  • python39-cryptography
    Fixed in 3.3.1-3.module_el8.10.0+3765+2f9a457d
  • python39-debug
    Fixed in 3.9.25-2.module_el8.10.0+4083+53cad1fb
  • python39-devel
    Fixed in 3.9.25-2.module_el8.10.0+4083+53cad1fb
  • python39-idle
    Fixed in 3.9.25-2.module_el8.10.0+4083+53cad1fb
  • python39-idna
    Fixed in 2.10-4.module_el8.10.0+3849+a48d89aa
  • python39-iniconfig
    Fixed in 1.1.1-2.module_el8.6.0+2780+a40f65e1
  • python39-libs
    Fixed in 3.9.25-2.module_el8.10.0+4083+53cad1fb
  • python39-lxml
    Fixed

    A version is affected if any line below covers it.

    • Affected before 4.6.5-1.module_el8.6.0+2780+a40f65e1
    • Affected before 4.6.5-1.module_el8.6.0+3248+c431e88c
  • python39-mod_wsgi
    Fixed in 4.7.1-7.module_el8.10.0+3989+a618fe15.1
  • python39-more-itertools
    Fixed in 8.5.0-2.module_el8.6.0+2780+a40f65e1
  • python39-numpy
    Fixed

    A version is affected if any line below covers it.

    • Affected before 1.19.4-3.module_el8.6.0+2780+a40f65e1
    • Affected before 1.19.4-3.module_el8.6.0+3248+c431e88c
  • python39-numpy-doc
    Fixed in 1.19.4-3.module_el8.6.0+2780+a40f65e1
  • python39-numpy-f2py
    Fixed

    A version is affected if any line below covers it.

    • Affected before 1.19.4-3.module_el8.6.0+2780+a40f65e1
    • Affected before 1.19.4-3.module_el8.6.0+3248+c431e88c
  • python39-packaging
    Fixed in 20.4-4.module_el8.6.0+2780+a40f65e1
  • python39-pip
    Fixed in 20.2.4-9.module_el8.10.0+3765+2f9a457d
  • python39-pip-wheel
    Fixed in 20.2.4-9.module_el8.10.0+3765+2f9a457d
  • python39-pluggy
    Fixed in 0.13.1-3.module_el8.6.0+2780+a40f65e1
  • python39-ply
    Fixed in 3.11-10.module_el8.6.0+2780+a40f65e1
  • python39-psutil
    Fixed

    A version is affected if any line below covers it.

    • Affected before 5.8.0-4.module_el8.6.0+2780+a40f65e1
    • Affected before 5.8.0-4.module_el8.6.0+3248+c431e88c
  • python39-psycopg2
    Fixed in 2.8.6-3.module_el8.10.0+3765+2f9a457d
  • python39-psycopg2-doc
    Fixed in 2.8.6-3.module_el8.10.0+3765+2f9a457d
  • python39-psycopg2-tests
    Fixed in 2.8.6-3.module_el8.10.0+3765+2f9a457d
  • python39-py
    Fixed in 1.10.0-1.module_el8.6.0+2780+a40f65e1
  • python39-pybind11
    Fixed

    A version is affected if any line below covers it.

    • Affected before 2.7.1-1.module_el8.6.0+2780+a40f65e1
    • Affected before 2.7.1-1.module_el8.6.0+3248+c431e88c
  • python39-pybind11-devel
    Fixed

    A version is affected if any line below covers it.

    • Affected before 2.7.1-1.module_el8.6.0+2780+a40f65e1
    • Affected before 2.7.1-1.module_el8.6.0+3248+c431e88c
  • python39-pycparser
    Fixed in 2.20-3.module_el8.6.0+2780+a40f65e1
  • python39-pyparsing
    Fixed in 2.4.7-5.module_el8.6.0+2780+a40f65e1
  • python39-pysocks
    Fixed in 1.7.1-4.module_el8.6.0+2780+a40f65e1
  • python39-pytest
    Fixed in 6.0.2-2.module_el8.6.0+2780+a40f65e1
  • python39-pyyaml
    Fixed

    A version is affected if any line below covers it.

    • Affected before 5.4.1-1.module_el8.6.0+2780+a40f65e1
    • Affected before 5.4.1-1.module_el8.6.0+3248+c431e88c
  • python39-requests
    Fixed in 2.25.0-3.module_el8.9.0+3634+fb2a896c
  • python39-rpm-macros
    Fixed in 3.9.25-2.module_el8.10.0+4083+53cad1fb
  • python39-scipy
    Fixed in 1.5.4-5.module_el8.9.0+3634+fb2a896c
  • python39-setuptools
    Fixed in 50.3.2-7.module_el8.10.0+4040+9207bbc0

9 further packages in AlmaLinux 8 not shown (first 40 listed).

Source: AlmaLinux, AlmaLinux OS. Copyright (c) 2023 AlmaLinux OS. Licensed under MIT License. Received through OSV.dev. Reformatted by exploit.cc.

AlmaLinux 9

  • python-unversioned-command
    Fixed in 3.9.25-2.el9_7
  • python3
    Fixed in 3.9.25-2.el9_7
  • python3-debug
    Fixed in 3.9.25-2.el9_7
  • python3-devel
    Fixed in 3.9.25-2.el9_7
  • python3-idle
    Fixed in 3.9.25-2.el9_7
  • python3-libs
    Fixed in 3.9.25-2.el9_7
  • python3-test
    Fixed in 3.9.25-2.el9_7
  • python3-tkinter
    Fixed in 3.9.25-2.el9_7

Source: AlmaLinux, AlmaLinux OS. Copyright (c) 2023 AlmaLinux OS. Licensed under MIT License. Received through OSV.dev. Reformatted by exploit.cc.

CloudLinux 8

  • python39
    Fixed in 3.9.25-2.module_el8.10.0+4083+53cad1fb
  • python39-Cython
    Fixed

    A version is affected if any line below covers it.

    • Affected before 0.29.21-5.module_el8.6.0+2780+a40f65e1
    • Affected before 0.29.21-5.module_el8.6.0+3248+c431e88c
  • python39-PyMySQL
    Fixed in 0.10.1-2.module_el8.6.0+2780+a40f65e1
  • python39-attrs
    Fixed in 20.3.0-2.module_el8.6.0+2780+a40f65e1
  • python39-cffi
    Fixed

    A version is affected if any line below covers it.

    • Affected before 1.14.3-2.module_el8.6.0+2780+a40f65e1
    • Affected before 1.14.3-2.module_el8.6.0+3248+c431e88c
  • python39-chardet
    Fixed in 3.0.4-19.module_el8.6.0+2780+a40f65e1
  • python39-cryptography
    Fixed in 3.3.1-3.module_el8.10.0+3765+2f9a457d
  • python39-debug
    Fixed in 3.9.25-2.module_el8.10.0+4083+53cad1fb
  • python39-devel
    Fixed in 3.9.25-2.module_el8.10.0+4083+53cad1fb
  • python39-idle
    Fixed in 3.9.25-2.module_el8.10.0+4083+53cad1fb
  • python39-idna
    Fixed in 2.10-4.module_el8.10.0+3849+a48d89aa
  • python39-iniconfig
    Fixed in 1.1.1-2.module_el8.6.0+2780+a40f65e1
  • python39-libs
    Fixed in 3.9.25-2.module_el8.10.0+4083+53cad1fb
  • python39-lxml
    Fixed

    A version is affected if any line below covers it.

    • Affected before 4.6.5-1.module_el8.6.0+2780+a40f65e1
    • Affected before 4.6.5-1.module_el8.6.0+3248+c431e88c
  • python39-mod_wsgi
    Fixed in 4.7.1-7.module_el8.10.0+3989+a618fe15.1
  • python39-more-itertools
    Fixed in 8.5.0-2.module_el8.6.0+2780+a40f65e1
  • python39-numpy
    Fixed

    A version is affected if any line below covers it.

    • Affected before 1.19.4-3.module_el8.6.0+2780+a40f65e1
    • Affected before 1.19.4-3.module_el8.6.0+3248+c431e88c
  • python39-numpy-doc
    Fixed in 1.19.4-3.module_el8.6.0+2780+a40f65e1
  • python39-numpy-f2py
    Fixed

    A version is affected if any line below covers it.

    • Affected before 1.19.4-3.module_el8.6.0+2780+a40f65e1
    • Affected before 1.19.4-3.module_el8.6.0+3248+c431e88c
  • python39-packaging
    Fixed in 20.4-4.module_el8.6.0+2780+a40f65e1
  • python39-pip
    Fixed in 20.2.4-9.module_el8.10.0+3765+2f9a457d
  • python39-pip-wheel
    Fixed in 20.2.4-9.module_el8.10.0+3765+2f9a457d
  • python39-pluggy
    Fixed in 0.13.1-3.module_el8.6.0+2780+a40f65e1
  • python39-ply
    Fixed in 3.11-10.module_el8.6.0+2780+a40f65e1
  • python39-psutil
    Fixed

    A version is affected if any line below covers it.

    • Affected before 5.8.0-4.module_el8.6.0+2780+a40f65e1
    • Affected before 5.8.0-4.module_el8.6.0+3248+c431e88c
  • python39-psycopg2
    Fixed in 2.8.6-3.module_el8.10.0+3765+2f9a457d
  • python39-psycopg2-doc
    Fixed in 2.8.6-3.module_el8.10.0+3765+2f9a457d
  • python39-psycopg2-tests
    Fixed in 2.8.6-3.module_el8.10.0+3765+2f9a457d
  • python39-py
    Fixed in 1.10.0-1.module_el8.6.0+2780+a40f65e1
  • python39-pybind11
    Fixed

    A version is affected if any line below covers it.

    • Affected before 2.7.1-1.module_el8.6.0+2780+a40f65e1
    • Affected before 2.7.1-1.module_el8.6.0+3248+c431e88c
  • python39-pybind11-devel
    Fixed

    A version is affected if any line below covers it.

    • Affected before 2.7.1-1.module_el8.6.0+2780+a40f65e1
    • Affected before 2.7.1-1.module_el8.6.0+3248+c431e88c
  • python39-pycparser
    Fixed in 2.20-3.module_el8.6.0+2780+a40f65e1
  • python39-pyparsing
    Fixed in 2.4.7-5.module_el8.6.0+2780+a40f65e1
  • python39-pysocks
    Fixed in 1.7.1-4.module_el8.6.0+2780+a40f65e1
  • python39-pytest
    Fixed in 6.0.2-2.module_el8.6.0+2780+a40f65e1
  • python39-pyyaml
    Fixed

    A version is affected if any line below covers it.

    • Affected before 5.4.1-1.module_el8.6.0+2780+a40f65e1
    • Affected before 5.4.1-1.module_el8.6.0+3248+c431e88c
  • python39-requests
    Fixed in 2.25.0-3.module_el8.9.0+3634+fb2a896c
  • python39-rpm-macros
    Fixed in 3.9.25-2.module_el8.10.0+4083+53cad1fb
  • python39-scipy
    Fixed in 1.5.4-5.module_el8.9.0+3634+fb2a896c
  • python39-setuptools
    Fixed in 50.3.2-7.module_el8.10.0+4040+9207bbc0

9 further packages in CloudLinux 8 not shown (first 40 listed).

Derived from AlmaLinux 8. Partial coverage: only packages taken from AlmaLinux 8 are listed.

Source: CloudLinux errata, CloudLinux Inc. Derived from: AlmaLinux, AlmaLinux OS. Copyright (c) 2023 AlmaLinux OS. Licensed under MIT License. Received through OSV.dev. Reformatted by exploit.cc.

CloudLinux 9

  • python-unversioned-command
    Fixed in 3.9.25-2.el9_7
  • python3
    Fixed in 3.9.25-2.el9_7
  • python3-debug
    Fixed in 3.9.25-2.el9_7
  • python3-devel
    Fixed in 3.9.25-2.el9_7
  • python3-idle
    Fixed in 3.9.25-2.el9_7
  • python3-libs
    Fixed in 3.9.25-2.el9_7
  • python3-test
    Fixed in 3.9.25-2.el9_7
  • python3-tkinter
    Fixed in 3.9.25-2.el9_7

Derived from AlmaLinux 9. Partial coverage: only packages taken from AlmaLinux 9 are listed.

Source: CloudLinux errata, CloudLinux Inc. Derived from: AlmaLinux, AlmaLinux OS. Copyright (c) 2023 AlmaLinux OS. Licensed under MIT License. Received through OSV.dev. Reformatted by exploit.cc.

Debian 12

  • pypy3
    Fixed in 7.3.10+dfsg-1

Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.

Debian 13

  • pypy3
    Fixed in 7.3.10+dfsg-1

Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.

Debian 14

  • pypy3
    Fixed in 7.3.10+dfsg-1

Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu Pro 14.04 LTS

  • python2.7
    No fix yet
  • python3.4
    No fix yet
  • python3.5
    No fix yet

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu Pro 16.04 LTS

  • python2.7
    No fix yet
  • python3.5
    No fix yet

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu Pro 18.04 LTS

  • python2.7
    No fix yet

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu Pro 20.04 LTS

  • python2.7
    No fix yet
  • python3.9
    No fix yet

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu Pro 22.04 LTS

  • python2.7
    No fix yet

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

A release or ecosystem missing from this list has no record here. It may be unaffected or not covered by the source. Source notices and licences.