Vulnerabilities · 2008 · Python
CVE-2008-3142
Python vulnerability
Multiple buffer overflows in Python 2.5.2 and earlier on 32bit platforms allow context-dependent attackers to cause a denial of service (crash) or have unspecified other impact via a long string that leads to incorrect memory allocation during Unicode string processing, related to the unicode_resize function and the PyMem_RESIZE macro.
Affected products
Python, Ubuntu Linux, Debian Linux. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Python runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- bugs.gentoo.org/show_bug.cgi?id=232137 · Third Party Advisory
- bugs.python.org/file10825/issue2620-gps02-patch.txt · Exploit
- bugs.python.org/issue2620 · Third Party Advisory
- lists.apple.com/archives/security-announce/2009/Feb/msg00000.html · Third Party Advisory
- lists.opensuse.org/opensuse-security-announce/2008-08/msg00006.html · Third Party Advisory
- security.gentoo.org/glsa/glsa-200807-16.xml · Third Party Advisory
- slackware.com/security/viewer.php?l=slackware-security&y=2008&m=slackware-security.525289 · Third Party Advisory
- support.apple.com/kb/HT3438 · Third Party Advisory
- nvd.nist.gov/vuln/detail/CVE-2008-3142
- cve.org/CVERecord?id=CVE-2008-3142
More vulnerabilities in Python products
CVE-2026-21441CVE-2025-66471CVE-2025-66418CVE-2025-50182CVE-2025-50181CVE-2025-48379CVE-2025-47273CVE-2025-13837All 231
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.