Skip to content
Fencer Vulns
medium 5.0

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.8
    fixed: 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.6
    fixed: 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.2
    fixed: 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.1
    fixed: 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.6
    fixed: 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.1
    fixed: 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.6
    fixed: 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.2
    fixed: vendor fix RHSA-2007:1077
show 7 more
  • 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.1
    fixed: 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.2
    fixed: 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.1
    fixed: 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.2
    fixed: 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-0
    fixed: 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-0
    fixed: 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-0
    fixed: 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

  1. Published
  2. 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

References

Sources

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.