Skip to content
OpenAdvisories
Unscored Public exploit CVE-2007-2052 EUVD-2007-2047GHSA-7hcx-rxp8-j55g

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 Apr 16, 2007 · Updated Aug 7, 2024 · Assigned by mitre

Description

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 4.0 python2.4 2.4.4-3+etch1 DSA-1551-1
Debian 4.0 python2.5 2.5-5+etch1 DSA-1620-1
ReleasePackageFixed inAdvisory
RHEL 5 python +3 2.4.3-24.el5_3.6 RHSA-2009:1176
RHEL 4 python +4 2.3.4-14.4.el4_6.1 RHSA-2007:1076
RHEL 3 python +3 2.2.3-6.8 RHSA-2007:1076
RHEL 2 python +4 1.5.2-43.72.2 RHSA-2007:1077
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Red Hat Network Satellite 5 rhn-solaris-bootstrap 5.0.2-3 RHSA-2008:0629, RHSA-2008:0264
Red Hat Network Satellite 5 rhn_solaris_bootstrap_5_0_2_3 +1 1-0 RHSA-2008:0629, RHSA-2008:0264
Red Hat Network Satellite 4 rhn-solaris-bootstrap 5.0.2-3 RHSA-2008:0525
Red Hat Network Satellite 4 rhn_solaris_bootstrap_5_0_2_3 1-0 RHSA-2008:0525
ReleasePackageFixed inAdvisory
SLES 15 SP1 python 2.7.17-7.32.2 SUSE-SU-2020:0234-1
SLES 15 SP1 python-base 2.7.17-7.32.1 SUSE-SU-2020:0234-1
SLES 15 python 2.7.17-7.32.2 SUSE-SU-2020:0234-1
SLES 15 python-base 2.7.17-7.32.1 SUSE-SU-2020:0234-1
SLES 2 python 2.7.17-7.32.2 SUSE-SU-2020:0234-1
SLES 2 python-base 2.7.17-7.32.1 SUSE-SU-2020:0234-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed python 2.7.18-8.1 openSUSE-SU-2024:11202-1

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

Exploit-DB 1

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Advisories 10

References