CVE-2007-2052

CVE-2007-2052 is a medium-severity vulnerability in Python with a CVSS 2.0 base score of 5.0. Its EPSS exploit-prediction score of 12% places it in the 96th percentile, indicating an elevated likelihood of exploitation. The underlying weakness is classified as CWE-193.

Key facts

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.

Frequently asked questions

What is 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 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.
How severe is CVE-2007-2052?
CVE-2007-2052 has a CVSS 2.0 base score of 5.0, rated medium severity.
Is CVE-2007-2052 being actively exploited?
It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 12% (96th percentile), an estimate of the probability of exploitation in the next 30 days.
What products are affected by CVE-2007-2052?
CVE-2007-2052 primarily affects Python. In total, 2 product configurations (CPEs) are listed as vulnerable; see the affected-products list for the exact versions.
How do I fix CVE-2007-2052?
Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround.
When was CVE-2007-2052 published?
CVE-2007-2052 was published on 2007-04-16 and last updated on 2026-06-16.

References

Affected products (2)

More vulnerabilities in Python

All CVEs affecting Python →

Other CWE-193 (Off-by-one Error) vulnerabilities

Browse all CWE-193 (Off-by-one Error) vulnerabilities →