CVE-2007-2052 Memory corruption in n/a

Medium 5.0 Published Updated

An off-by-one error in Python's locale module allows attackers to read sensitive memory via buffer over-reads.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Not stated
Victim action needed
Not needed
Fix
Available

What is CVE-2007-2052?

CVE-2007-2052 is a medium-severity memory corruption vulnerability in Python Python, published on 16 Apr 2007.

Official 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.

Weakness: CWE-193

Which versions are affected by CVE-2007-2052?

It affects 1 product.

Products include Python Python.

How do I fix CVE-2007-2052?

Upgrade to a fixed version.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2007-2052 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2007-2052 exists.

Public exploit code: 1 Exploit-DB entry.

All Python Python vulnerabilities

Sources

Also known as GHSA-7hcx-rxp8-j55g.

Is CVE-2007-2052 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free