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)
The product performs a calculation that can produce an integer overflow or wraparound when the logic assumes that the resulting value will always be larger than the original value. This occurs when an integer value is incremented to a value that is too large to store in the associated representation. When this occurs, the value may become a very small or negative number.
Link | Tags |
---|---|
https://lists.debian.org/debian-lts-announce/2017/11/msg00035.html | third party advisory mailing list |
https://lists.debian.org/debian-lts-announce/2018/09/msg00031.html | third party advisory mailing list |
https://bugs.python.org/issue30657 | issue tracking patch vendor advisory |
http://www.securitytracker.com/id/1039890 | vdb entry third party advisory |
https://lists.debian.org/debian-lts-announce/2017/11/msg00036.html | third party advisory mailing list |
https://www.debian.org/security/2018/dsa-4307 | third party advisory vendor advisory |
https://lists.debian.org/debian-lts-announce/2018/09/msg00030.html | third party advisory mailing list |
https://security.gentoo.org/glsa/201805-02 | third party advisory vendor advisory |
https://security.netapp.com/advisory/ntap-20230216-0001/ |