CVE-2007-2052
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…
- 5.0MediumCVSS base score
- 13.6%Exploitation in 30 daysEPSS · top 3.5% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- 1Public exploitsMetasploit, Nuclei and Exploit-DB
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.
Public exploit
An exploit or proof of concept is public: anyone can try it against an unpatched system. The public collections list an Exploit-DB entry for it.
Show the exploits1
Exploit-DB1 entry
- Python 2.5 - 'PyLocale_strxfrm' Remote Information Leak (Exploit-DB entry) (opens in a new tab)
EDB-ID 30018remote, linuxpublished 8 May 2007Verified
Modules, templates and exploits as listed by the Metasploit Framework (BSD-3-Clause), ProjectDiscovery's Nuclei templates (MIT) and the Exploit Database (GPLv2), read once a day. Where the data comes from
Timeline
ID reserved
By mitre
Published
- 17 years later
· 17 years later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| NVDNVD · Modified | 2.0 | Medium5.0 | AV:N/AC:L/Au:N/C:P/I:N/A:N |
- EPSS (exploitation in 30 days)
- 13.6% · top 3.5% of all CVEs (9 Nov 2026)
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 5.0.
Affected products
n/a
- affected n/a
References
38
- [Security-announce] 20080221 VMSA-2008-0003 Moderate: Updated aacraid driver and samba and python service console updates (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- 28050 (opens in a new tab)third-party-advisoryx_refsource_SECUNIAx_transferred
- 25190 (opens in a new tab)third-party-advisoryx_refsource_SECUNIAx_transferred
- 25217 (opens in a new tab)third-party-advisoryx_refsource_SECUNIAx_transferred
- 37471 (opens in a new tab)third-party-advisoryx_refsource_SECUNIAx_transferred
- http://www.python.org/download/releases/2.5.1/NEWS.txt (opens in a new tab)x_refsource_CONFIRMx_transferred
- http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=416934 (opens in a new tab)x_refsource_CONFIRMx_transferred
- DSA-1551 (opens in a new tab)vendor-advisoryx_refsource_DEBIANx_transferred
- http://www.vmware.com/security/advisories/VMSA-2009-0016.html (opens in a new tab)x_refsource_CONFIRMx_transferred
- 29303 (opens in a new tab)third-party-advisoryx_refsource_SECUNIAx_transferred
- ADV-2007-1465 (opens in a new tab)vdb-entryx_refsource_VUPENx_transferred
- 29032 (opens in a new tab)third-party-advisoryx_refsource_SECUNIAx_transferred
- 31492 (opens in a new tab)third-party-advisoryx_refsource_SECUNIAx_transferred
- oval:org.mitre.oval:def:8353 (opens in a new tab)vdb-entrysignaturex_refsource_OVALx_transferred
- 20070521 FLEA-2007-0019-1: python (opens in a new tab)mailing-listx_refsource_BUGTRAQx_transferred
- RHSA-2008:0629 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
- RHSA-2007:1077 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
- 20080221 VMSA-2008-0003 Moderate: Updated aacraid driver and samba and python service console updates (opens in a new tab)mailing-listx_refsource_BUGTRAQx_transferred
- RHSA-2007:1076 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
- 20091120 VMSA-2009-0016 VMware vCenter and ESX update release and vMA patch release address multiple security issue in third party components (opens in a new tab)mailing-listx_refsource_BUGTRAQx_transferred
- ADV-2008-0637 (opens in a new tab)vdb-entryx_refsource_VUPENx_transferred
- https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=235093 (opens in a new tab)x_refsource_CONFIRMx_transferred
- 25353 (opens in a new tab)third-party-advisoryx_refsource_SECUNIAx_transferred
- 25233 (opens in a new tab)third-party-advisoryx_refsource_SECUNIAx_transferred
- https://issues.rpath.com/browse/RPL-1358 (opens in a new tab)x_refsource_CONFIRMx_transferred
- USN-585-1 (opens in a new tab)vendor-advisoryx_refsource_UBUNTUx_transferred
- 2007-0019 (opens in a new tab)vendor-advisoryx_refsource_TRUSTIXx_transferred
- 28027 (opens in a new tab)third-party-advisoryx_refsource_SECUNIAx_transferred
- SUSE-SR:2007:013 (opens in a new tab)vendor-advisoryx_refsource_SUSEx_transferred
- 31255 (opens in a new tab)third-party-advisoryx_refsource_SECUNIAx_transferred
- DSA-1620 (opens in a new tab)vendor-advisoryx_refsource_DEBIANx_transferred
- 25787 (opens in a new tab)third-party-advisoryx_refsource_SECUNIAx_transferred
- 23887 (opens in a new tab)vdb-entryx_refsource_BIDx_transferred
- python-localemodule-information-disclosure(34060) (opens in a new tab)vdb-entryx_refsource_XFx_transferred
- oval:org.mitre.oval:def:11716 (opens in a new tab)vdb-entrysignaturex_refsource_OVALx_transferred
- ADV-2009-3316 (opens in a new tab)vdb-entryx_refsource_VUPENx_transferred
- MDKSA-2007:099 (opens in a new tab)vendor-advisoryx_refsource_MANDRIVAx_transferred
- 29889 (opens in a new tab)third-party-advisoryx_refsource_SECUNIAx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2007-2047 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2007-2052)Record last updated .