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…
CVE-2007-2052 affects 2 listed versions of Python in the Dawnsentry catalogue.
Affected products and versions
The versions in the Dawnsentry catalogue this CVE affects, judged from the vendor's own advisory where there is one, otherwise from the CVE record and NVD, as each version's own page says.
Python
2 of 250 listed versions are affected. No fixed release is named. The newest release, 3.15.2, is not affected.
What it is
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.
AV:N/AC:L/Au:N/C:P/I:N/A:N (NVD)
Published by MITRE on 16 April 2007. Last changed 16 June 2026.
Sources
Check one version you run: look CVE-2007-2052 up, or pick a product and version in the quick lookup.
Updated 1 December 2026.