Summary
Python is an interpreted, interactive, object-oriented programming language, which includes modules, classes, exceptions, very high level dynamic data types and dynamic typing. Python supports interfaces to many system calls and libraries, as well as to various windowing systems.
Security Fix(es):
* python: Invalid value for OpenSSL API may cause Buffer over-read when NPN is used (CVE-2024-5642)
* cpython: Python HTMLParser quadratic complexity (CVE-2025-6069)
* cpython: python: Python zipfile End of Central Directory (EOCD) Locator record offset not checked (CVE-2025-8291)
* python: Quadratic complexity in os.path.expandvars() with user-controlled template (CVE-2025-6075)
For more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.
Fixed packages 8
| Release | Package | Fixed in |
|---|---|---|
| AlmaLinux · 9 | python-unversioned-command | 3.9.25-2.el9_7 |
| AlmaLinux · 9 | python3 | 3.9.25-2.el9_7 |
| AlmaLinux · 9 | python3-debug | 3.9.25-2.el9_7 |
| AlmaLinux · 9 | python3-devel | 3.9.25-2.el9_7 |
| AlmaLinux · 9 | python3-idle | 3.9.25-2.el9_7 |
| AlmaLinux · 9 | python3-libs | 3.9.25-2.el9_7 |
| AlmaLinux · 9 | python3-test | 3.9.25-2.el9_7 |
| AlmaLinux · 9 | python3-tkinter | 3.9.25-2.el9_7 |
Vulnerabilities 4
-
Medium 6.5
Buffer overread when using an empty list with SSLContext.set_npn_protocols()
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 vu…
-
Medium 4.3
HTMLParser quadratic complexity when processing malformed inputs
The html.parser.HTMLParser class had worse-case quadratic complexity when processing certain crafted malformed inputs potentially leading to amplified denial-of-service.
-
Medium 4.3
ZIP64 End of Central Directory (EOCD) Locator record offset not checked
The 'zipfile' module would not check the validity of the ZIP64 End of Central Directory (EOCD) Locator record offset value would not be used to locate the ZIP64 EOCD record, instead the ZIP64 EOCD record would be assumed to be the previous record in the ZIP a…
-
Low 1.8
Quadratic complexity in os.path.expandvars() with user-controlled template
If the value passed to os.path.expandvars() is user-controlled a performance degradation is possible when expanding environment variables.
References
-
report
https://access.redhat.com/security/cve/CVE-2024-5642
-
report
https://access.redhat.com/security/cve/CVE-2025-6069
-
report
https://access.redhat.com/security/cve/CVE-2025-6075
-
report
https://access.redhat.com/security/cve/CVE-2025-8291
-
report
https://bugzilla.redhat.com/2294682
-
report
https://bugzilla.redhat.com/2373234
-
report
https://bugzilla.redhat.com/2402342
-
report
https://bugzilla.redhat.com/2408891
-
advisory
https://errata.almalinux.org/9/ALSA-2025-23342.html