Python 3.x through 3.9.1 has a buffer overflow in PyCArg_repr in _ctypes/callproc.c, which may lead to remote code execution in certain Python applications that accept floating-point numbers as untrusted input, as demonstrated by a 1e300 argument to c_double.from_param. This occurs because sprintf is used unsafely.
https://www.oracle.com/security-alerts/cpuoct2021.html
https://www.oracle.com/security-alerts/cpujul2022.html
https://www.oracle.com/security-alerts/cpujan2022.html
https://www.oracle.com//security-alerts/cpujul2021.html
https://security.netapp.com/advisory/ntap-20210226-0003/
https://security.gentoo.org/glsa/202101-18
https://python-security.readthedocs.io/vuln/ctypes-buffer-overflow-pycarg_repr.html
https://news.ycombinator.com/item?id=26185005
https://lists.debian.org/debian-lts-announce/2023/05/msg00024.html
https://lists.debian.org/debian-lts-announce/2022/02/msg00013.html
https://lists.debian.org/debian-lts-announce/2021/04/msg00005.html