CVE-2007-2052
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.
At a glance
- Exploitability
- Can be exploited over the network without logging in. Limited direct impact.
- Exploit odds
- 13.6% chance of exploitation in the next 30 days (EPSS). Higher than most.
- Fix
- A patch, advisory or fixed version is referenced. Upgrade or apply it.
Timeline
- PublishedDisclosed publicly on CVE.org and NVD
- Last updatedMost recent change to the record
Why it ranks here
- Exploited in the wild: no, CISA does not list it.
- Exploit odds: 13.6% in the next 30 days (EPSS).
- Severity: 5.0 MEDIUM (CVSS).
- Fix: a patch or advisory is linked.
Details
- Published
- Last modified
- Exploit probability
- 13.6% · EPSS, next 30 days
- Weakness
- CWE-193
- Record status
- Modified
Affected
- Python 2.4.0
- Python 2.5.0
Attack profile CVSS 2.0 · 5.0
- Attack vector
- Network
- Complexity
- Low
- Authentication
- None
- Confidentiality
- Partial
- Integrity
- None
- Availability
- None
Raw vector
AV:N/AC:L/Au:N/C:P/I:N/A:N
Is it in your code?
Hand this to your coding agent. It searches your project for the affected products and checks versions. Nothing leaves your machine.
Read https://cve-list.com/agent/cve/CVE-2007-2052.md and follow it. Check whether this project is affected by CVE-2007-2052. Read only. Don't change anything and don't upload my code. Tell me yes, no or not sure, with the file as proof.
Fix and advisories
- http://www.python.org/download/releases/2.5.1/NEWS.txt
- http://www.python.org/download/releases/2.5.1/NEWS.txt
References
- http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=416934
- http://lists.vmware.com/pipermail/security-announce/2008/000005.html
- http://secunia.com/advisories/25190
- http://secunia.com/advisories/25217
- http://secunia.com/advisories/25233
- http://secunia.com/advisories/25353
- http://secunia.com/advisories/25787
- http://secunia.com/advisories/28027
- http://secunia.com/advisories/28050
- http://secunia.com/advisories/29032
- http://secunia.com/advisories/29303
- http://secunia.com/advisories/29889
- http://secunia.com/advisories/31255
- http://secunia.com/advisories/31492
- http://secunia.com/advisories/37471
- http://www.debian.org/security/2008/dsa-1551
- http://www.debian.org/security/2008/dsa-1620
- http://www.mandriva.com/security/advisories?name=MDKSA-2007:099
- http://www.novell.com/linux/security/advisories/2007_13_sr.html
- http://www.python.org/download/releases/2.5.1/NEWS.txt
- http://www.redhat.com/support/errata/RHSA-2007-1076.html
- http://www.redhat.com/support/errata/RHSA-2007-1077.html
- http://www.redhat.com/support/errata/RHSA-2008-0629.html
- http://www.securityfocus.com/archive/1/469294/30/6450/threaded
- http://www.securityfocus.com/archive/1/488457/100/0/threaded