CVE-2007-2052 json
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 u…
published 2007-04-16 19 y ago modified 2026-06-16 4 mo ago also EUVD-2007-2047
- cvss
- 5.0
- version 2.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 13.6%
- EPSS 13.6% chance of exploitation in 30 days, percentile 96%
- public exploits
- 1
- Exploit-DB
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.
Patch / fix
- python RHEL 5 2.4.3-24.el5_3.6
- tkinter RHEL 5 2.4.3-24.el5_3.6
- python-tools RHEL 5 2.4.3-24.el5_3.6
- rhn-solaris-bootstrap network satellite 5.1 5.1.1-3
- rhn_solaris_bootstrap_5_1_1_3 network satellite 5.1 1-0
- rhn-solaris-bootstrap network satellite 5.0, network satellite 4.2 5.0.2-3
- rhn_solaris_bootstrap_5_0_2_3 network satellite 5.0, network satellite 4.2 1-0
- python RHEL 2.1 1.5.2-43.72.2
red hat advisories RHSA-2009:1176RHSA-2008:0629RHSA-2008:0525RHSA-2008:0264RHSA-2007:1077RHSA-2007:1076
- python SLE Module for Python 2 15 SP1, SLE Module for Desktop Applications 15 SP1, SLE Module for Desktop Applications 15 +2 more 2.7.17-7.32.2
- python-base SLE Module for Python 2 15 SP1, SLE Module for Basesystem 15 SP1, SLE Module for Basesystem 15 2.7.17-7.32.1
suse advisories SUSE-SU-2020:0234-1
- python openSUSE Tumbleweed 2.7.18-8.1
opensuse advisories openSUSE-SU-2024:11202-1
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2007-2052 updated
python off-by-one locale.strxfrm() (possible memory disclosure)
-
Red Hat Desktop version 3 python 2.2.3-6.8, tkinter 2.2.3-6.8, python-tools 2.2.3-6.8fixed: vendor fix RHSA-2007:1076
-
Red Hat Enterprise Linux (v. 5 server) python 2.4.3-24.el5_3.6, tkinter 2.4.3-24.el5_3.6, python-tools 2.4.3-24.el5_3.6fixed: vendor fix RHSA-2009:1176
-
Red Hat Enterprise Linux AS (Advanced Server) version 2.1 python 1.5.2-43.72.2, tkinter 1.5.2-43.72.2, python-tools 1.5.2-43.72.2fixed: vendor fix RHSA-2007:1077
-
Red Hat Enterprise Linux AS version 3 python 2.2.3-6.8, tkinter 2.2.3-6.8, python-tools 2.2.3-6.8 Red Hat Enterprise Linux AS version 4 python 2.3.4-14.4.el4_6.1, tkinter 2.3.4-14.4.el4_6.1, python-tools 2.3.4-14.4.el4_6.1fixed: vendor fix RHSA-2007:1076
-
Red Hat Enterprise Linux Desktop (v. 5 client) python 2.4.3-24.el5_3.6, tkinter 2.4.3-24.el5_3.6, python-tools 2.4.3-24.el5_3.6fixed: vendor fix RHSA-2009:1176
-
Red Hat Enterprise Linux Desktop version 4 python 2.3.4-14.4.el4_6.1, tkinter 2.3.4-14.4.el4_6.1, python-tools 2.3.4-14.4.el4_6.1fixed: vendor fix RHSA-2007:1076
-
Red Hat Enterprise Linux Desktop Workstation (v. 5 client) python 2.4.3-24.el5_3.6, tkinter 2.4.3-24.el5_3.6, python-tools 2.4.3-24.el5_3.6fixed: vendor fix RHSA-2009:1176
-
Red Hat Enterprise Linux ES version 2.1 python 1.5.2-43.72.2, tkinter 1.5.2-43.72.2, python-tools 1.5.2-43.72.2fixed: vendor fix RHSA-2007:1077
show 7 moreshow fewer
-
Red Hat Enterprise Linux ES version 3 python 2.2.3-6.8, tkinter 2.2.3-6.8, python-tools 2.2.3-6.8 Red Hat Enterprise Linux ES version 4 python 2.3.4-14.4.el4_6.1, tkinter 2.3.4-14.4.el4_6.1, python-tools 2.3.4-14.4.el4_6.1fixed: vendor fix RHSA-2007:1076
-
Red Hat Enterprise Linux WS version 2.1 python 1.5.2-43.72.2, tkinter 1.5.2-43.72.2, python-tools 1.5.2-43.72.2fixed: vendor fix RHSA-2007:1077
-
Red Hat Enterprise Linux WS version 3 python 2.2.3-6.8, tkinter 2.2.3-6.8, python-tools 2.2.3-6.8 Red Hat Enterprise Linux WS version 4 python 2.3.4-14.4.el4_6.1, tkinter 2.3.4-14.4.el4_6.1, python-tools 2.3.4-14.4.el4_6.1fixed: vendor fix RHSA-2007:1076
-
Red Hat Linux Advanced Workstation 2.1 python 1.5.2-43.72.2, tkinter 1.5.2-43.72.2, python-tools 1.5.2-43.72.2fixed: vendor fix RHSA-2007:1077
-
Red Hat Satellite 5.0 (RHEL v.4 AS) rhn-solaris-bootstrap 5.0.2-3, rhn_solaris_bootstrap_5_0_2_3 1-0fixed: vendor fix RHSA-2008:0264
-
Red Hat Satellite 5.1 (RHEL v.4 AS) rhn-solaris-bootstrap 5.1.1-3, rhn_solaris_bootstrap_5_1_1_3 1-0fixed: vendor fix RHSA-2008:0629
-
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-0fixed: vendor fix RHSA-2008:0525
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Timeline
- Published
- First public exploit (EDB-30018)
Exploit prediction
13.64% chance of exploitation in the next 30 days, higher than 96% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- EDB-30018 Python 2.5 - 'PyLocale_strxfrm' Remote Information Leak remote, 2007-05-08
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 2.0 | 5.0 | AV:N/AC:L/Au:N/C:P/I:N/A:N |
Classification
- Weakness
-
- CWE-193 Off-by-one Error
References
-
debian.org
/security/2008/dsa-1551
vendor-advisory, third-party-advisory
-
redhat.com
/support/errata/RHSA-2008-0629.html
vendor-advisory, third-party-advisory
-
redhat.com
/support/errata/RHSA-2007-1077.html
vendor-advisory, third-party-advisory
-
redhat.com
/support/errata/RHSA-2007-1076.html
vendor-advisory, third-party-advisory
-
ubuntu.com
/usn/usn-585-1
vendor-advisory, third-party-advisory
-
trustix.org
/errata/2007/0019/
vendor-advisory, third-party-advisory
-
novell.com
/linux/security/advisories/2007_13_sr.html
vendor-advisory, third-party-advisory
-
debian.org
/security/2008/dsa-1620
vendor-advisory, third-party-advisory
-
mandriva.com
/security/advisories?name=MDKSA-2007:099
vendor-advisory, broken-link, third-party-advisory
-
python.org
/download/releases/2.5.1/NEWS.txt
broken-link, vendor-advisory
-
lists.vmware.com
/pipermail/security-announce/2008/000005.html
mailing-list, third-party-advisory
-
secunia.com
/advisories/28050
third-party-advisory, broken-link
-
secunia.com
/advisories/25190
third-party-advisory, broken-link
-
secunia.com
/advisories/25217
third-party-advisory, broken-link
-
secunia.com
/advisories/37471
third-party-advisory
-
bugs.debian.org
/cgi-bin/bugreport.cgi?bug=416934
third-party-advisory
-
vmware.com
/security/advisories/VMSA-2009-0016.html
broken-link, third-party-advisory
-
secunia.com
/advisories/29303
third-party-advisory, broken-link
-
vupen.com
/english/advisories/2007/1465
vdb-entry, broken-link, third-party-advisory
-
secunia.com
/advisories/29032
third-party-advisory, broken-link
-
secunia.com
/advisories/31492
third-party-advisory, broken-link
-
oval.cisecurity.org
/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A8353
vdb-entry, signature, broken-link
-
securityfocus.com
/archive/1/469294/30/6450/threaded
mailing-list, third-party-advisory, vdb-entry
-
securityfocus.com
/archive/1/488457/100/0/threaded
mailing-list, third-party-advisory, vdb-entry
-
securityfocus.com
/archive/1/507985/100/0/threaded
mailing-list, third-party-advisory, vdb-entry
-
vupen.com
/english/advisories/2008/0637
vdb-entry, broken-link, third-party-advisory
-
bugzilla.redhat.com
/bugzilla/show_bug.cgi?id=235093
issue-tracking
-
secunia.com
/advisories/25353
third-party-advisory, broken-link
-
secunia.com
/advisories/25233
third-party-advisory, broken-link
-
issues.rpath.com
/browse/RPL-1358
third-party-advisory
-
secunia.com
/advisories/28027
third-party-advisory, broken-link
-
secunia.com
/advisories/31255
third-party-advisory, broken-link
-
secunia.com
/advisories/25787
third-party-advisory, broken-link
-
securityfocus.com
/bid/23887
vdb-entry, third-party-advisory
-
exchange.xforce.ibmcloud.com
/vulnerabilities/34060
vdb-entry
-
oval.cisecurity.org
/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A11716
vdb-entry, signature, broken-link
-
vupen.com
/english/advisories/2009/3316
vdb-entry, broken-link, third-party-advisory
-
secunia.com
/advisories/29889
third-party-advisory, broken-link
Sources
- CVE List CVE-2007-2052
- NVD CVE-2007-2052
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.