Skip to content
This page tracks the Ubuntu fix status. The vulnerability itself is described on the main CVE page. View CVE-2021-3177 →
Unrated

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

UBUNTU-CVE-2021-3177 First seen on SecPulse

Affected packages

PackageAffected → Fixed
Ubuntu:Pro:14.04:LTSpython2.7
< 2.7.6-8ubuntu0.6+esm10→ 2.7.6-8ubuntu0.6+esm10
Ubuntu:Pro:14.04:LTSpython3.4
< 3.4.3-1ubuntu1~14.04.7+esm10→ 3.4.3-1ubuntu1~14.04.7+esm10
Ubuntu:Pro:14.04:LTSpython3.5
< 3.5.2-2ubuntu0~16.04.4~14.04.1+esm1→ 3.5.2-2ubuntu0~16.04.4~14.04.1+esm1
Ubuntu:16.04:LTSpython2.7
< 2.7.12-1ubuntu0~16.04.18→ 2.7.12-1ubuntu0~16.04.18
Ubuntu:16.04:LTSpython3.5
< 3.5.2-2ubuntu0~16.04.13→ 3.5.2-2ubuntu0~16.04.13
Ubuntu:18.04:LTSpython2.7
< 2.7.17-1~18.04ubuntu1.6→ 2.7.17-1~18.04ubuntu1.6
Ubuntu:18.04:LTSpython3.6
< 3.6.9-1~18.04ubuntu1.4→ 3.6.9-1~18.04ubuntu1.4
Ubuntu:18.04:LTSpython3.7
< 3.7.5-2~18.04.4→ 3.7.5-2~18.04.4
Ubuntu:18.04:LTSpython3.8
< 3.8.0-3~18.04.1→ 3.8.0-3~18.04.1
Ubuntu:20.04:LTSpython2.7
< 2.7.18-1~20.04.1→ 2.7.18-1~20.04.1
Ubuntu:20.04:LTSpython3.8
< 3.8.5-1~20.04.2→ 3.8.5-1~20.04.2
Ubuntu:20.04:LTSpython3.9
< 3.9.5-3~20.04.1→ 3.9.5-3~20.04.1
Original description The description as published by the source.

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.

Source: OSV.dev (Open Source Vulnerabilities) OSV

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details