CPython (aka Python) up to 2.7.13 is vulnerable to an integer overflow in the PyString_DecodeEscape function in stringobject.c, resulting in heap-based buffer overflow (and possible arbitrary code execution)
Fix
Patch, vendor advisory and mitigation references on NVD 2
- https://bugs.python.org/issue30657 Issue Tracking, Patch, Vendor Advisory
- https://bugs.python.org/issue30657 Issue Tracking, Patch, Vendor Advisory
Every line above is quoted from NVD, CISA, Microsoft, the vendor's own advisory or DISA; nothing is generated.
Change history 1
- First seenCVSS 9.8 · python, debianNVD modified 2026-10-08 21:17
Affected (CPE criteria) 4
cpe:2.3:a:python:python:*:*:*:*:*:*:*:*cpe:2.3:o:debian:debian_linux:7.0:*:*:*:*:*:*:*cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:*cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*
References 18
- http://www.securitytracker.com/id/1039890 Third Party Advisory, VDB Entry
- https://bugs.python.org/issue30657 Issue Tracking, Patch, Vendor Advisory
- https://lists.debian.org/debian-lts-announce/2017/11/msg00035.html Mailing List, Third Party Advisory
- https://lists.debian.org/debian-lts-announce/2017/11/msg00036.html Mailing List, Third Party Advisory
- https://lists.debian.org/debian-lts-announce/2018/09/msg00030.html Mailing List, Third Party Advisory
- https://lists.debian.org/debian-lts-announce/2018/09/msg00031.html Mailing List, Third Party Advisory
- https://security.gentoo.org/glsa/201805-02 Third Party Advisory
- https://security.netapp.com/advisory/ntap-20230216-0001/
- https://www.debian.org/security/2018/dsa-4307 Third Party Advisory
- http://www.securitytracker.com/id/1039890 Third Party Advisory, VDB Entry
- https://bugs.python.org/issue30657 Issue Tracking, Patch, Vendor Advisory
- https://lists.debian.org/debian-lts-announce/2017/11/msg00035.html Mailing List, Third Party Advisory
- https://lists.debian.org/debian-lts-announce/2017/11/msg00036.html Mailing List, Third Party Advisory
- https://lists.debian.org/debian-lts-announce/2018/09/msg00030.html Mailing List, Third Party Advisory
- https://lists.debian.org/debian-lts-announce/2018/09/msg00031.html Mailing List, Third Party Advisory
- https://security.gentoo.org/glsa/201805-02 Third Party Advisory
- https://security.netapp.com/advisory/ntap-20230216-0001/
- https://www.debian.org/security/2018/dsa-4307 Third Party Advisory