Off-by-one error in the PyLocale_strxfrm function in Modules/_localemodule.c for Python…
Priority LOW 38CWE-193Published · Updated
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- — Not recorded in CVSS 2.0
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- Partial · None · None
- Fix status
- Fixed
Attack profile from CVSS 2.0 · NVD. Fix status from CNA and Red Hat.
Summary
Off-by-one error in the PyLocale_strxfrm function in Modules/_localemodule.c for Python 2.4 and 2.5 causes an incorrect buffer size to be used for the strxfrm function, which allows context-dependent attackers to read portions of memory via unknown manipulations that trigger a buffer over-read due to missing null termination.
Why it matters now
EPSS 0.13637 96th percentileScored 2026-11-07
Fix Fixed Red Hat: 6 advisories
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | — | all versions | — | No fix listed | CNA |
- — Vendor— Affected all versions Fixed in — No fix listed CNA
CPE configurations NVD · 2
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:python:python:2.4.0:*:*:*:*:*:*:* | 2.4.0 | Vulnerable | python-pillow |
| cpe:2.3:a:python:python:2.5.0:*:*:*:*:*:*:* | 2.5.0 | Vulnerable | python-pillow |
- cpe:2.3:a:python:python:2.4.0:*:*:*:*:*:*:* Versions 2.4.0 Vulnerable ·python-pillow
- cpe:2.3:a:python:python:2.5.0:*:*:*:*:*:*:* Versions 2.5.0 Vulnerable ·python-pillow
Remediation
Red Hat 6 advisories
- RHSA-2009:1176 Released 2009-07-27 · Red Hat rating Moderatepython security update
- Red Hat Enterprise Linux (v. 5 server) python-2.4.3-24.el5_3.6, python-2.4.3-24.el5_3.6.i386, python-2.4.3-24.el5_3.6.ia64 +13
- Red Hat Enterprise Linux Desktop (v. 5 client) python-2.4.3-24.el5_3.6, python-2.4.3-24.el5_3.6.i386, python-tools-2.4.3-24.el5_3.6 +3
- Red Hat Enterprise Linux Desktop Workstation (v. 5 client) python-2.4.3-24.el5_3.6, python-devel-2.4.3-24.el5_3.6, python-devel-2.4.3-24.el5_3.6.i386
- RHSA-2008:0629 Released 2008-08-13 · Red Hat rating ModerateRed Hat Network Satellite Server Solaris client security update
- Red Hat Satellite 5.1 (RHEL v.4 AS) rhn-solaris-bootstrap-5.1.1-3, rhn_solaris_bootstrap_5_1_1_3-1-0
- RHSA-2008:0525 Released 2008-06-30 · Red Hat rating ModerateRed Hat Network Satellite Server Solaris client security update
- Red Hat Satellite v 4.2 (RHEL v.3 AS) rhn-solaris-bootstrap-5.0.2-3, rhn_solaris_bootstrap_5_0_2_3-1-0
- Red Hat Satellite v 4.2 (RHEL v.4 AS) rhn-solaris-bootstrap-5.0.2-3, rhn_solaris_bootstrap_5_0_2_3-1-0
Show 3 more Red Hat advisories
- RHSA-2008:0264 Released 2008-05-20 · Red Hat rating ModerateRed Hat Network Satellite Server Solaris client security update
- Red Hat Satellite 5.0 (RHEL v.4 AS) rhn-solaris-bootstrap-5.0.2-3, rhn_solaris_bootstrap_5_0_2_3-1-0
- RHSA-2007:1076 Released 2007-12-10 · Red Hat rating Moderatepython security update
- Red Hat Desktop version 3 python-2.2.3-6.8, python-2.2.3-6.8.i386, python-devel-2.2.3-6.8 +5
- Red Hat Enterprise Linux AS version 3 python-2.2.3-6.8, python-2.2.3-6.8.i386, python-2.2.3-6.8.ia64 +13
- Red Hat Enterprise Linux AS version 4 python-2.3.4-14.4.el4_6.1, python-2.3.4-14.4.el4_6.1.i386, python-2.3.4-14.4.el4_6.1.ia64 +17
- Red Hat Enterprise Linux Desktop version 4 python-2.3.4-14.4.el4_6.1, python-2.3.4-14.4.el4_6.1.i386, python-devel-2.3.4-14.4.el4_6.1 +7
- Red Hat Enterprise Linux ES version 3 python-2.2.3-6.8, python-2.2.3-6.8.i386, python-2.2.3-6.8.ia64 +9
- Red Hat Enterprise Linux ES version 4 python-2.3.4-14.4.el4_6.1, python-2.3.4-14.4.el4_6.1.i386, python-2.3.4-14.4.el4_6.1.ia64 +12
- Red Hat Enterprise Linux WS version 3 python-2.2.3-6.8, python-2.2.3-6.8.i386, python-2.2.3-6.8.ia64 +9
- Red Hat Enterprise Linux WS version 4 python-2.3.4-14.4.el4_6.1, python-2.3.4-14.4.el4_6.1.i386, python-2.3.4-14.4.el4_6.1.ia64 +12
- RHSA-2007:1077 Released 2007-12-10 · Red Hat rating Moderatepython security update
- Red Hat Enterprise Linux AS (Advanced Server) version 2.1 python-1.5.2-43.72.2, python-1.5.2-43.72.2.i386, python-1.5.2-43.72.2.ia64 +8
- Red Hat Enterprise Linux ES version 2.1 python-1.5.2-43.72.2, python-1.5.2-43.72.2.i386, python-devel-1.5.2-43.72.2.i386 +3
- Red Hat Enterprise Linux WS version 2.1 python-1.5.2-43.72.2, python-1.5.2-43.72.2.i386, python-devel-1.5.2-43.72.2.i386 +3
- Red Hat Linux Advanced Workstation 2.1 python-1.5.2-43.72.2, python-1.5.2-43.72.2.ia64, python-devel-1.5.2-43.72.2.ia64 +3
Vendor assessments
Red Hat
Red Hat rating: Low. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Desktop version 3 | Fixed | RHSA-2007:1076 |
| Red Hat Enterprise Linux (v. 5 server) | Fixed | RHSA-2009:1176 |
| Red Hat Enterprise Linux AS (Advanced Server) version 2.1 | Fixed | RHSA-2007:1077 |
| Red Hat Enterprise Linux AS version 3 | Fixed | RHSA-2007:1076 |
| Red Hat Enterprise Linux AS version 4 | Fixed | RHSA-2007:1076 |
| Red Hat Enterprise Linux Desktop (v. 5 client) | Fixed | RHSA-2009:1176 |
| Red Hat Enterprise Linux Desktop Workstation (v. 5 client) | Fixed | RHSA-2009:1176 |
| Red Hat Enterprise Linux Desktop version 4 | Fixed | RHSA-2007:1076 |
| Red Hat Enterprise Linux ES version 2.1 | Fixed | RHSA-2007:1077 |
| Red Hat Enterprise Linux ES version 3 | Fixed | RHSA-2007:1076 |
| Red Hat Enterprise Linux ES version 4 | Fixed | RHSA-2007:1076 |
| Red Hat Enterprise Linux WS version 2.1 | Fixed | RHSA-2007:1077 |
| Red Hat Enterprise Linux WS version 3 | Fixed | RHSA-2007:1076 |
| Red Hat Enterprise Linux WS version 4 | Fixed | RHSA-2007:1076 |
| Red Hat Linux Advanced Workstation 2.1 | Fixed | RHSA-2007:1077 |
| Red Hat Satellite 5.0 (RHEL v.4 AS) | Fixed | RHSA-2008:0264 |
| Red Hat Satellite 5.1 (RHEL v.4 AS) | Fixed | RHSA-2008:0629 |
| Red Hat Satellite v 4.2 (RHEL v.3 AS) | Fixed | RHSA-2008:0525 |
| Red Hat Satellite v 4.2 (RHEL v.4 AS) | Fixed | RHSA-2008:0525 |
Timeline
- 2026-10-02 Threatist record created from CVE-2007-2052
- 2026-10-03 Alias added: GHSA-7hcx-rxp8-j55g
References
Advisory 17
- [Security-announce] 20080221 VMSA-2008-0003 Moderate: Updated aacraid driver and samba and python service console updates
- http://www.python.org/download/releases/2.5.1/NEWS.txt
- http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=416934
- DSA-1551
- http://www.vmware.com/security/advisories/VMSA-2009-0016.html
- ADV-2007-1465
- RHSA-2008:0629
- RHSA-2007:1077
- RHSA-2007:1076
- ADV-2008-0637
- https://issues.rpath.com/browse/RPL-1358
- USN-585-1
- 2007-0019
- SUSE-SR:2007:013
- DSA-1620
- ADV-2009-3316
- MDKSA-2007:099
More python-pillow Python vulnerabilities
- TI-2016-01993 The DES and Triple DES ciphers, as used in the TLS, SSH, and IPSec protocols and other… CVSS 3.1HIGH 7.5
- TI-2022-24108 An XML External Entity (XXE) issue was discovered in Python through 3.9.1. CVSS 3.1CRITICAL 9.8
- TI-2022-17508 The Keccak XKCP SHA-3 reference implementation before fdc6fef has an integer overflow and… CVSS 3.1CRITICAL 9.8
- TI-2021-02254 Python 3.x through 3.9.1 has a buffer overflow in PyCArg_repr in _ctypes/callproc.c… CVSS 3.1CRITICAL 9.8
- TI-2007-04413 Directory traversal vulnerability in the (1) extract and (2) extractall functions in the… CVSS 3.1CRITICAL 9.8
- TI-2014-00217 OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly… CVSS 3.1HIGH 7.4
Sources
- CVE-2007-2052 · CVE Program
- CVE-2007-2052 · NVD
- FIRST EPSS
- GHSA-7hcx-rxp8-j55g · GitHub Advisory Database · CC BY 4.0
- CVE-2007-2052 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences