Vulnerabilities · 2007 · Python
CVE-2007-2052
Python vulnerability
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.
Affected products
Python. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Python runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- www.python.org/download/releases/2.5.1/NEWS.txt · Vendor Advisory
- bugs.debian.org/cgi-bin/bugreport.cgi?bug=416934 · Third Party Advisory
- lists.vmware.com/pipermail/security-announce/2008/000005.html · Third Party Advisory
- secunia.com/advisories/37471 · Third Party Advisory
- www.debian.org/security/2008/dsa-1551 · Third Party Advisory
- www.debian.org/security/2008/dsa-1620 · Third Party Advisory
- www.mandriva.com/security/advisories?name=MDKSA-2007:099 · Third Party Advisory
- www.novell.com/linux/security/advisories/2007_13_sr.html · Third Party Advisory
- nvd.nist.gov/vuln/detail/CVE-2007-2052
- cve.org/CVERecord?id=CVE-2007-2052
More vulnerabilities in Python products
CVE-2026-21441CVE-2025-66471CVE-2025-66418CVE-2025-50182CVE-2025-50181CVE-2025-48379CVE-2025-47273CVE-2025-13837All 231
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.