Search

Find a vulnerability

Search criteria

    Related vulnerabilities

    UBUNTU-CVE-2021-3177 (CVE-2021-3177)

    Vulnerability from osv_ubuntu – Published: 2021-01-19 06:15 – Updated: 2026-04-22 07:39 – Source website
    VLAI
    Details

    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.

    Upstream
    Impacted products
    Ecosystem Package Version
    Ubuntu:Pro:14.04:LTS python2.7
    pkg:deb/ubuntu/python2.7@2.7.6-8ubuntu0.6+esm10?arch=source&distro=trusty/esm
    Affected: < 2.7.6-8ubuntu0.6+esm10 (ecosystem)
    2.7.5-8ubuntu32.7.5-8ubuntu42.7.6-22.7.6-2ubuntu12.7.6-32.7.6-3ubuntu12.7.6-42.7.6-4ubuntu12.7.6-52.7.6-7 and 12 more (see JSON)
    Ubuntu:Pro:14.04:LTS python3.4
    pkg:deb/ubuntu/python3.4@3.4.3-1ubuntu1~14.04.7+esm10?arch=source&distro=trusty/esm
    Affected: < 3.4.3-1ubuntu1~14.04.7+esm10 (ecosystem)
    3.4~b1-0ubuntu33.4~b1-4ubuntu43.4~b1-4ubuntu63.4~b1-5ubuntu23.4~b2-13.4~b3-1ubuntu13.4~rc1-1build13.4~rc2-13.4~rc3-0ubuntu13.4.0-1 and 13 more (see JSON)
    Ubuntu:Pro:14.04:LTS python3.5
    pkg:deb/ubuntu/python3.5@3.5.2-2ubuntu0~16.04.4~14.04.1+esm1?arch=source&distro=trusty/esm
    Affected: < 3.5.2-2ubuntu0~16.04.4~14.04.1+esm1 (ecosystem)
    3.5.2-2ubuntu0~16.04.4~14.04.1
    Ubuntu:16.04:LTS python2.7
    pkg:deb/ubuntu/python2.7@2.7.12-1ubuntu0~16.04.18?arch=source&distro=xenial
    Affected: < 2.7.12-1ubuntu0~16.04.18 (ecosystem)
    2.7.10-4ubuntu12.7.10-4ubuntu22.7.11-22.7.11-32.7.11-42.7.11-62.7.11-72.7.11-7ubuntu12.7.12-1~16.042.7.12-1ubuntu0~16.04.1 and 10 more (see JSON)
    Ubuntu:16.04:LTS python3.5
    pkg:deb/ubuntu/python3.5@3.5.2-2ubuntu0~16.04.13?arch=source&distro=xenial
    Affected: < 3.5.2-2ubuntu0~16.04.13 (ecosystem)
    3.5.0-33.5.0-3ubuntu13.5.1~rc1-2ubuntu13.5.1-13.5.1-23.5.1-33.5.1-53.5.1-6ubuntu13.5.1-6ubuntu23.5.1-9ubuntu1 and 13 more (see JSON)
    Ubuntu:18.04:LTS python2.7
    pkg:deb/ubuntu/python2.7@2.7.17-1~18.04ubuntu1.6?arch=source&distro=bionic
    Affected: < 2.7.17-1~18.04ubuntu1.6 (ecosystem)
    2.7.14-2ubuntu22.7.14-42.7.14-62.7.14-72.7.14-82.7.15~rc1-12.7.15~rc1-1ubuntu0.12.7.15-4ubuntu4~18.042.7.15-4ubuntu4~18.04.12.7.15-4ubuntu4~18.04.2 and 6 more (see JSON)
    Ubuntu:18.04:LTS python3.6
    pkg:deb/ubuntu/python3.6@3.6.9-1~18.04ubuntu1.4?arch=source&distro=bionic
    Affected: < 3.6.9-1~18.04ubuntu1.4 (ecosystem)
    3.6.3-1ubuntu13.6.4~rc1-13.6.4~rc1-23.6.4-13.6.4-23.6.4-3build13.6.4-43.6.5~rc1-13.6.5-33.6.6-1~18.04 and 8 more (see JSON)
    Ubuntu:18.04:LTS python3.7
    pkg:deb/ubuntu/python3.7@3.7.5-2~18.04.4?arch=source&distro=bionic
    Affected: < 3.7.5-2~18.04.4 (ecosystem)
    3.7.0~a2-13.7.0~a3-13.7.0~a3-23.7.0~a3-33.7.0~a4-13.7.0~b1-13.7.0~b1-1build13.7.0~b2-13.7.0~b3-13.7.0-1~18.04 and 3 more (see JSON)
    Ubuntu:18.04:LTS python3.8
    pkg:deb/ubuntu/python3.8@3.8.0-3~18.04.1?arch=source&distro=bionic
    Affected: < 3.8.0-3~18.04.1 (ecosystem)
    3.8.0-3~18.04
    Ubuntu:20.04:LTS python2.7
    pkg:deb/ubuntu/python2.7@2.7.18-1~20.04.1?arch=source&distro=focal
    Affected: < 2.7.18-1~20.04.1 (ecosystem)
    2.7.17~rc1-12.7.17-12.7.17-1ubuntu52.7.17-1ubuntu62.7.18~rc1-22.7.18-1~20.04
    Ubuntu:20.04:LTS python3.8
    pkg:deb/ubuntu/python3.8@3.8.5-1~20.04.2?arch=source&distro=focal
    Affected: < 3.8.5-1~20.04.2 (ecosystem)
    3.8.0-13.8.0-23.8.0-33.8.0-43.8.0-53.8.1-2ubuntu33.8.2~rc1-1ubuntu13.8.2-13.8.2-1ubuntu13.8.2-1ubuntu1.1 and 2 more (see JSON)
    Ubuntu:20.04:LTS python3.9
    pkg:deb/ubuntu/python3.9@3.9.5-3~20.04.1?arch=source&distro=focal
    Affected: < 3.9.5-3~20.04.1 (ecosystem)
    3.9.0~rc1-1~20.043.9.0-5~20.04

    {
      "affected": [
        {
          "ecosystem_specific": {
            "availability": "Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro",
            "binaries": [
              {
                "binary_name": "idle-python2.7",
                "binary_version": "2.7.6-8ubuntu0.6+esm10"
              },
              {
                "binary_name": "libpython2.7",
                "binary_version": "2.7.6-8ubuntu0.6+esm10"
              },
              {
                "binary_name": "libpython2.7-minimal",
                "binary_version": "2.7.6-8ubuntu0.6+esm10"
              },
              {
                "binary_name": "libpython2.7-stdlib",
                "binary_version": "2.7.6-8ubuntu0.6+esm10"
              },
              {
                "binary_name": "libpython2.7-testsuite",
                "binary_version": "2.7.6-8ubuntu0.6+esm10"
              },
              {
                "binary_name": "python2.7",
                "binary_version": "2.7.6-8ubuntu0.6+esm10"
              },
              {
                "binary_name": "python2.7-examples",
                "binary_version": "2.7.6-8ubuntu0.6+esm10"
              },
              {
                "binary_name": "python2.7-minimal",
                "binary_version": "2.7.6-8ubuntu0.6+esm10"
              }
            ]
          },
          "package": {
            "ecosystem": "Ubuntu:Pro:14.04:LTS",
            "name": "python2.7",
            "purl": "pkg:deb/ubuntu/python2.7@2.7.6-8ubuntu0.6+esm10?arch=source\u0026distro=trusty/esm"
          },
          "ranges": [
            {
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "2.7.6-8ubuntu0.6+esm10"
                }
              ],
              "type": "ECOSYSTEM"
            }
          ],
          "versions": [
            "2.7.5-8ubuntu3",
            "2.7.5-8ubuntu4",
            "2.7.6-2",
            "2.7.6-2ubuntu1",
            "2.7.6-3",
            "2.7.6-3ubuntu1",
            "2.7.6-4",
            "2.7.6-4ubuntu1",
            "2.7.6-5",
            "2.7.6-7",
            "2.7.6-8",
            "2.7.6-8ubuntu0.2",
            "2.7.6-8ubuntu0.3",
            "2.7.6-8ubuntu0.4",
            "2.7.6-8ubuntu0.5",
            "2.7.6-8ubuntu0.6+esm2",
            "2.7.6-8ubuntu0.6+esm3",
            "2.7.6-8ubuntu0.6+esm5",
            "2.7.6-8ubuntu0.6+esm6",
            "2.7.6-8ubuntu0.6+esm7",
            "2.7.6-8ubuntu0.6+esm8",
            "2.7.6-8ubuntu0.6+esm9"
          ]
        },
        {
          "ecosystem_specific": {
            "availability": "Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro",
            "binaries": [
              {
                "binary_name": "idle-python3.4",
                "binary_version": "3.4.3-1ubuntu1~14.04.7+esm10"
              },
              {
                "binary_name": "libpython3.4",
                "binary_version": "3.4.3-1ubuntu1~14.04.7+esm10"
              },
              {
                "binary_name": "libpython3.4-minimal",
                "binary_version": "3.4.3-1ubuntu1~14.04.7+esm10"
              },
              {
                "binary_name": "libpython3.4-stdlib",
                "binary_version": "3.4.3-1ubuntu1~14.04.7+esm10"
              },
              {
                "binary_name": "libpython3.4-testsuite",
                "binary_version": "3.4.3-1ubuntu1~14.04.7+esm10"
              },
              {
                "binary_name": "python3.4",
                "binary_version": "3.4.3-1ubuntu1~14.04.7+esm10"
              },
              {
                "binary_name": "python3.4-examples",
                "binary_version": "3.4.3-1ubuntu1~14.04.7+esm10"
              },
              {
                "binary_name": "python3.4-minimal",
                "binary_version": "3.4.3-1ubuntu1~14.04.7+esm10"
              },
              {
                "binary_name": "python3.4-venv",
                "binary_version": "3.4.3-1ubuntu1~14.04.7+esm10"
              }
            ]
          },
          "package": {
            "ecosystem": "Ubuntu:Pro:14.04:LTS",
            "name": "python3.4",
            "purl": "pkg:deb/ubuntu/python3.4@3.4.3-1ubuntu1~14.04.7+esm10?arch=source\u0026distro=trusty/esm"
          },
          "ranges": [
            {
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "3.4.3-1ubuntu1~14.04.7+esm10"
                }
              ],
              "type": "ECOSYSTEM"
            }
          ],
          "versions": [
            "3.4~b1-0ubuntu3",
            "3.4~b1-4ubuntu4",
            "3.4~b1-4ubuntu6",
            "3.4~b1-5ubuntu2",
            "3.4~b2-1",
            "3.4~b3-1ubuntu1",
            "3.4~rc1-1build1",
            "3.4~rc2-1",
            "3.4~rc3-0ubuntu1",
            "3.4.0-1",
            "3.4.0-2ubuntu1",
            "3.4.0-2ubuntu1.1",
            "3.4.3-1ubuntu1~14.04.1",
            "3.4.3-1ubuntu1~14.04.3",
            "3.4.3-1ubuntu1~14.04.4",
            "3.4.3-1ubuntu1~14.04.5",
            "3.4.3-1ubuntu1~14.04.6",
            "3.4.3-1ubuntu1~14.04.7",
            "3.4.3-1ubuntu1~14.04.7+esm2",
            "3.4.3-1ubuntu1~14.04.7+esm4",
            "3.4.3-1ubuntu1~14.04.7+esm6",
            "3.4.3-1ubuntu1~14.04.7+esm7",
            "3.4.3-1ubuntu1~14.04.7+esm8"
          ]
        },
        {
          "ecosystem_specific": {
            "availability": "Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro",
            "binaries": [
              {
                "binary_name": "idle-python3.5",
                "binary_version": "3.5.2-2ubuntu0~16.04.4~14.04.1+esm1"
              },
              {
                "binary_name": "libpython3.5",
                "binary_version": "3.5.2-2ubuntu0~16.04.4~14.04.1+esm1"
              },
              {
                "binary_name": "libpython3.5-minimal",
                "binary_version": "3.5.2-2ubuntu0~16.04.4~14.04.1+esm1"
              },
              {
                "binary_name": "libpython3.5-stdlib",
                "binary_version": "3.5.2-2ubuntu0~16.04.4~14.04.1+esm1"
              },
              {
                "binary_name": "libpython3.5-testsuite",
                "binary_version": "3.5.2-2ubuntu0~16.04.4~14.04.1+esm1"
              },
              {
                "binary_name": "python3.5",
                "binary_version": "3.5.2-2ubuntu0~16.04.4~14.04.1+esm1"
              },
              {
                "binary_name": "python3.5-examples",
                "binary_version": "3.5.2-2ubuntu0~16.04.4~14.04.1+esm1"
              },
              {
                "binary_name": "python3.5-minimal",
                "binary_version": "3.5.2-2ubuntu0~16.04.4~14.04.1+esm1"
              },
              {
                "binary_name": "python3.5-venv",
                "binary_version": "3.5.2-2ubuntu0~16.04.4~14.04.1+esm1"
              }
            ]
          },
          "package": {
            "ecosystem": "Ubuntu:Pro:14.04:LTS",
            "name": "python3.5",
            "purl": "pkg:deb/ubuntu/python3.5@3.5.2-2ubuntu0~16.04.4~14.04.1+esm1?arch=source\u0026distro=trusty/esm"
          },
          "ranges": [
            {
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "3.5.2-2ubuntu0~16.04.4~14.04.1+esm1"
                }
              ],
              "type": "ECOSYSTEM"
            }
          ],
          "versions": [
            "3.5.2-2ubuntu0~16.04.4~14.04.1"
          ]
        },
        {
          "ecosystem_specific": {
            "availability": "No subscription required",
            "binaries": [
              {
                "binary_name": "idle-python2.7",
                "binary_version": "2.7.12-1ubuntu0~16.04.18"
              },
              {
                "binary_name": "libpython2.7",
                "binary_version": "2.7.12-1ubuntu0~16.04.18"
              },
              {
                "binary_name": "libpython2.7-minimal",
                "binary_version": "2.7.12-1ubuntu0~16.04.18"
              },
              {
                "binary_name": "libpython2.7-stdlib",
                "binary_version": "2.7.12-1ubuntu0~16.04.18"
              },
              {
                "binary_name": "libpython2.7-testsuite",
                "binary_version": "2.7.12-1ubuntu0~16.04.18"
              },
              {
                "binary_name": "python2.7",
                "binary_version": "2.7.12-1ubuntu0~16.04.18"
              },
              {
                "binary_name": "python2.7-examples",
                "binary_version": "2.7.12-1ubuntu0~16.04.18"
              },
              {
                "binary_name": "python2.7-minimal",
                "binary_version": "2.7.12-1ubuntu0~16.04.18"
              }
            ]
          },
          "package": {
            "ecosystem": "Ubuntu:16.04:LTS",
            "name": "python2.7",
            "purl": "pkg:deb/ubuntu/python2.7@2.7.12-1ubuntu0~16.04.18?arch=source\u0026distro=xenial"
          },
          "ranges": [
            {
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "2.7.12-1ubuntu0~16.04.18"
                }
              ],
              "type": "ECOSYSTEM"
            }
          ],
          "versions": [
            "2.7.10-4ubuntu1",
            "2.7.10-4ubuntu2",
            "2.7.11-2",
            "2.7.11-3",
            "2.7.11-4",
            "2.7.11-6",
            "2.7.11-7",
            "2.7.11-7ubuntu1",
            "2.7.12-1~16.04",
            "2.7.12-1ubuntu0~16.04.1",
            "2.7.12-1ubuntu0~16.04.2",
            "2.7.12-1ubuntu0~16.04.3",
            "2.7.12-1ubuntu0~16.04.4",
            "2.7.12-1ubuntu0~16.04.8",
            "2.7.12-1ubuntu0~16.04.9",
            "2.7.12-1ubuntu0~16.04.11",
            "2.7.12-1ubuntu0~16.04.12",
            "2.7.12-1ubuntu0~16.04.13",
            "2.7.12-1ubuntu0~16.04.14",
            "2.7.12-1ubuntu0~16.04.16"
          ]
        },
        {
          "ecosystem_specific": {
            "availability": "No subscription required",
            "binaries": [
              {
                "binary_name": "idle-python3.5",
                "binary_version": "3.5.2-2ubuntu0~16.04.13"
              },
              {
                "binary_name": "libpython3.5",
                "binary_version": "3.5.2-2ubuntu0~16.04.13"
              },
              {
                "binary_name": "libpython3.5-minimal",
                "binary_version": "3.5.2-2ubuntu0~16.04.13"
              },
              {
                "binary_name": "libpython3.5-stdlib",
                "binary_version": "3.5.2-2ubuntu0~16.04.13"
              },
              {
                "binary_name": "libpython3.5-testsuite",
                "binary_version": "3.5.2-2ubuntu0~16.04.13"
              },
              {
                "binary_name": "python3.5",
                "binary_version": "3.5.2-2ubuntu0~16.04.13"
              },
              {
                "binary_name": "python3.5-examples",
                "binary_version": "3.5.2-2ubuntu0~16.04.13"
              },
              {
                "binary_name": "python3.5-minimal",
                "binary_version": "3.5.2-2ubuntu0~16.04.13"
              },
              {
                "binary_name": "python3.5-venv",
                "binary_version": "3.5.2-2ubuntu0~16.04.13"
              }
            ]
          },
          "package": {
            "ecosystem": "Ubuntu:16.04:LTS",
            "name": "python3.5",
            "purl": "pkg:deb/ubuntu/python3.5@3.5.2-2ubuntu0~16.04.13?arch=source\u0026distro=xenial"
          },
          "ranges": [
            {
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "3.5.2-2ubuntu0~16.04.13"
                }
              ],
              "type": "ECOSYSTEM"
            }
          ],
          "versions": [
            "3.5.0-3",
            "3.5.0-3ubuntu1",
            "3.5.1~rc1-2ubuntu1",
            "3.5.1-1",
            "3.5.1-2",
            "3.5.1-3",
            "3.5.1-5",
            "3.5.1-6ubuntu1",
            "3.5.1-6ubuntu2",
            "3.5.1-9ubuntu1",
            "3.5.1-10",
            "3.5.2-2~16.01",
            "3.5.2-2~16.04",
            "3.5.2-2ubuntu0~16.04.1",
            "3.5.2-2ubuntu0~16.04.2",
            "3.5.2-2ubuntu0~16.04.3",
            "3.5.2-2ubuntu0~16.04.4",
            "3.5.2-2ubuntu0~16.04.5",
            "3.5.2-2ubuntu0~16.04.8",
            "3.5.2-2ubuntu0~16.04.9",
            "3.5.2-2ubuntu0~16.04.10",
            "3.5.2-2ubuntu0~16.04.11",
            "3.5.2-2ubuntu0~16.04.12"
          ]
        },
        {
          "ecosystem_specific": {
            "availability": "No subscription required",
            "binaries": [
              {
                "binary_name": "idle-python2.7",
                "binary_version": "2.7.17-1~18.04ubuntu1.6"
              },
              {
                "binary_name": "libpython2.7",
                "binary_version": "2.7.17-1~18.04ubuntu1.6"
              },
              {
                "binary_name": "libpython2.7-minimal",
                "binary_version": "2.7.17-1~18.04ubuntu1.6"
              },
              {
                "binary_name": "libpython2.7-stdlib",
                "binary_version": "2.7.17-1~18.04ubuntu1.6"
              },
              {
                "binary_name": "libpython2.7-testsuite",
                "binary_version": "2.7.17-1~18.04ubuntu1.6"
              },
              {
                "binary_name": "python2.7",
                "binary_version": "2.7.17-1~18.04ubuntu1.6"
              },
              {
                "binary_name": "python2.7-examples",
                "binary_version": "2.7.17-1~18.04ubuntu1.6"
              },
              {
                "binary_name": "python2.7-minimal",
                "binary_version": "2.7.17-1~18.04ubuntu1.6"
              }
            ]
          },
          "package": {
            "ecosystem": "Ubuntu:18.04:LTS",
            "name": "python2.7",
            "purl": "pkg:deb/ubuntu/python2.7@2.7.17-1~18.04ubuntu1.6?arch=source\u0026distro=bionic"
          },
          "ranges": [
            {
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "2.7.17-1~18.04ubuntu1.6"
                }
              ],
              "type": "ECOSYSTEM"
            }
          ],
          "versions": [
            "2.7.14-2ubuntu2",
            "2.7.14-4",
            "2.7.14-6",
            "2.7.14-7",
            "2.7.14-8",
            "2.7.15~rc1-1",
            "2.7.15~rc1-1ubuntu0.1",
            "2.7.15-4ubuntu4~18.04",
            "2.7.15-4ubuntu4~18.04.1",
            "2.7.15-4ubuntu4~18.04.2",
            "2.7.17-1~18.04",
            "2.7.17-1~18.04ubuntu1",
            "2.7.17-1~18.04ubuntu1.1",
            "2.7.17-1~18.04ubuntu1.2",
            "2.7.17-1~18.04ubuntu1.3",
            "2.7.17-1~18.04ubuntu1.5"
          ]
        },
        {
          "ecosystem_specific": {
            "availability": "No subscription required",
            "binaries": [
              {
                "binary_name": "idle-python3.6",
                "binary_version": "3.6.9-1~18.04ubuntu1.4"
              },
              {
                "binary_name": "libpython3.6",
                "binary_version": "3.6.9-1~18.04ubuntu1.4"
              },
              {
                "binary_name": "libpython3.6-minimal",
                "binary_version": "3.6.9-1~18.04ubuntu1.4"
              },
              {
                "binary_name": "libpython3.6-stdlib",
                "binary_version": "3.6.9-1~18.04ubuntu1.4"
              },
              {
                "binary_name": "libpython3.6-testsuite",
                "binary_version": "3.6.9-1~18.04ubuntu1.4"
              },
              {
                "binary_name": "python3.6",
                "binary_version": "3.6.9-1~18.04ubuntu1.4"
              },
              {
                "binary_name": "python3.6-examples",
                "binary_version": "3.6.9-1~18.04ubuntu1.4"
              },
              {
                "binary_name": "python3.6-minimal",
                "binary_version": "3.6.9-1~18.04ubuntu1.4"
              },
              {
                "binary_name": "python3.6-venv",
                "binary_version": "3.6.9-1~18.04ubuntu1.4"
              }
            ]
          },
          "package": {
            "ecosystem": "Ubuntu:18.04:LTS",
            "name": "python3.6",
            "purl": "pkg:deb/ubuntu/python3.6@3.6.9-1~18.04ubuntu1.4?arch=source\u0026distro=bionic"
          },
          "ranges": [
            {
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "3.6.9-1~18.04ubuntu1.4"
                }
              ],
              "type": "ECOSYSTEM"
            }
          ],
          "versions": [
            "3.6.3-1ubuntu1",
            "3.6.4~rc1-1",
            "3.6.4~rc1-2",
            "3.6.4-1",
            "3.6.4-2",
            "3.6.4-3build1",
            "3.6.4-4",
            "3.6.5~rc1-1",
            "3.6.5-3",
            "3.6.6-1~18.04",
            "3.6.7-1~18.04",
            "3.6.8-1~18.04.1",
            "3.6.8-1~18.04.2",
            "3.6.8-1~18.04.3",
            "3.6.9-1~18.04",
            "3.6.9-1~18.04ubuntu1",
            "3.6.9-1~18.04ubuntu1.1",
            "3.6.9-1~18.04ubuntu1.3"
          ]
        },
        {
          "ecosystem_specific": {
            "availability": "No subscription required",
            "binaries": [
              {
                "binary_name": "idle-python3.7",
                "binary_version": "3.7.5-2~18.04.4"
              },
              {
                "binary_name": "libpython3.7",
                "binary_version": "3.7.5-2~18.04.4"
              },
              {
                "binary_name": "libpython3.7-minimal",
                "binary_version": "3.7.5-2~18.04.4"
              },
              {
                "binary_name": "libpython3.7-stdlib",
                "binary_version": "3.7.5-2~18.04.4"
              },
              {
                "binary_name": "libpython3.7-testsuite",
                "binary_version": "3.7.5-2~18.04.4"
              },
              {
                "binary_name": "python3.7",
                "binary_version": "3.7.5-2~18.04.4"
              },
              {
                "binary_name": "python3.7-examples",
                "binary_version": "3.7.5-2~18.04.4"
              },
              {
                "binary_name": "python3.7-minimal",
                "binary_version": "3.7.5-2~18.04.4"
              },
              {
                "binary_name": "python3.7-venv",
                "binary_version": "3.7.5-2~18.04.4"
              }
            ]
          },
          "package": {
            "ecosystem": "Ubuntu:18.04:LTS",
            "name": "python3.7",
            "purl": "pkg:deb/ubuntu/python3.7@3.7.5-2~18.04.4?arch=source\u0026distro=bionic"
          },
          "ranges": [
            {
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "3.7.5-2~18.04.4"
                }
              ],
              "type": "ECOSYSTEM"
            }
          ],
          "versions": [
            "3.7.0~a2-1",
            "3.7.0~a3-1",
            "3.7.0~a3-2",
            "3.7.0~a3-3",
            "3.7.0~a4-1",
            "3.7.0~b1-1",
            "3.7.0~b1-1build1",
            "3.7.0~b2-1",
            "3.7.0~b3-1",
            "3.7.0-1~18.04",
            "3.7.1-1~18.04",
            "3.7.3-2~18.04.1",
            "3.7.5-2~18.04"
          ]
        },
        {
          "ecosystem_specific": {
            "availability": "No subscription required",
            "binaries": [
              {
                "binary_name": "idle-python3.8",
                "binary_version": "3.8.0-3~18.04.1"
              },
              {
                "binary_name": "libpython3.8",
                "binary_version": "3.8.0-3~18.04.1"
              },
              {
                "binary_name": "libpython3.8-minimal",
                "binary_version": "3.8.0-3~18.04.1"
              },
              {
                "binary_name": "libpython3.8-stdlib",
                "binary_version": "3.8.0-3~18.04.1"
              },
              {
                "binary_name": "libpython3.8-testsuite",
                "binary_version": "3.8.0-3~18.04.1"
              },
              {
                "binary_name": "python3.8",
                "binary_version": "3.8.0-3~18.04.1"
              },
              {
                "binary_name": "python3.8-examples",
                "binary_version": "3.8.0-3~18.04.1"
              },
              {
                "binary_name": "python3.8-minimal",
                "binary_version": "3.8.0-3~18.04.1"
              },
              {
                "binary_name": "python3.8-venv",
                "binary_version": "3.8.0-3~18.04.1"
              }
            ]
          },
          "package": {
            "ecosystem": "Ubuntu:18.04:LTS",
            "name": "python3.8",
            "purl": "pkg:deb/ubuntu/python3.8@3.8.0-3~18.04.1?arch=source\u0026distro=bionic"
          },
          "ranges": [
            {
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "3.8.0-3~18.04.1"
                }
              ],
              "type": "ECOSYSTEM"
            }
          ],
          "versions": [
            "3.8.0-3~18.04"
          ]
        },
        {
          "ecosystem_specific": {
            "availability": "No subscription required",
            "binaries": [
              {
                "binary_name": "idle-python2.7",
                "binary_version": "2.7.18-1~20.04.1"
              },
              {
                "binary_name": "libpython2.7",
                "binary_version": "2.7.18-1~20.04.1"
              },
              {
                "binary_name": "libpython2.7-minimal",
                "binary_version": "2.7.18-1~20.04.1"
              },
              {
                "binary_name": "libpython2.7-stdlib",
                "binary_version": "2.7.18-1~20.04.1"
              },
              {
                "binary_name": "libpython2.7-testsuite",
                "binary_version": "2.7.18-1~20.04.1"
              },
              {
                "binary_name": "python2.7",
                "binary_version": "2.7.18-1~20.04.1"
              },
              {
                "binary_name": "python2.7-examples",
                "binary_version": "2.7.18-1~20.04.1"
              },
              {
                "binary_name": "python2.7-minimal",
                "binary_version": "2.7.18-1~20.04.1"
              }
            ]
          },
          "package": {
            "ecosystem": "Ubuntu:20.04:LTS",
            "name": "python2.7",
            "purl": "pkg:deb/ubuntu/python2.7@2.7.18-1~20.04.1?arch=source\u0026distro=focal"
          },
          "ranges": [
            {
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "2.7.18-1~20.04.1"
                }
              ],
              "type": "ECOSYSTEM"
            }
          ],
          "versions": [
            "2.7.17~rc1-1",
            "2.7.17-1",
            "2.7.17-1ubuntu5",
            "2.7.17-1ubuntu6",
            "2.7.18~rc1-2",
            "2.7.18-1~20.04"
          ]
        },
        {
          "ecosystem_specific": {
            "availability": "No subscription required",
            "binaries": [
              {
                "binary_name": "idle-python3.8",
                "binary_version": "3.8.5-1~20.04.2"
              },
              {
                "binary_name": "libpython3.8",
                "binary_version": "3.8.5-1~20.04.2"
              },
              {
                "binary_name": "libpython3.8-minimal",
                "binary_version": "3.8.5-1~20.04.2"
              },
              {
                "binary_name": "libpython3.8-stdlib",
                "binary_version": "3.8.5-1~20.04.2"
              },
              {
                "binary_name": "libpython3.8-testsuite",
                "binary_version": "3.8.5-1~20.04.2"
              },
              {
                "binary_name": "python3.8",
                "binary_version": "3.8.5-1~20.04.2"
              },
              {
                "binary_name": "python3.8-examples",
                "binary_version": "3.8.5-1~20.04.2"
              },
              {
                "binary_name": "python3.8-minimal",
                "binary_version": "3.8.5-1~20.04.2"
              },
              {
                "binary_name": "python3.8-venv",
                "binary_version": "3.8.5-1~20.04.2"
              }
            ]
          },
          "package": {
            "ecosystem": "Ubuntu:20.04:LTS",
            "name": "python3.8",
            "purl": "pkg:deb/ubuntu/python3.8@3.8.5-1~20.04.2?arch=source\u0026distro=focal"
          },
          "ranges": [
            {
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "3.8.5-1~20.04.2"
                }
              ],
              "type": "ECOSYSTEM"
            }
          ],
          "versions": [
            "3.8.0-1",
            "3.8.0-2",
            "3.8.0-3",
            "3.8.0-4",
            "3.8.0-5",
            "3.8.1-2ubuntu3",
            "3.8.2~rc1-1ubuntu1",
            "3.8.2-1",
            "3.8.2-1ubuntu1",
            "3.8.2-1ubuntu1.1",
            "3.8.2-1ubuntu1.2",
            "3.8.5-1~20.04"
          ]
        },
        {
          "ecosystem_specific": {
            "availability": "No subscription required",
            "binaries": [
              {
                "binary_name": "idle-python3.9",
                "binary_version": "3.9.5-3~20.04.1"
              },
              {
                "binary_name": "libpython3.9",
                "binary_version": "3.9.5-3~20.04.1"
              },
              {
                "binary_name": "libpython3.9-minimal",
                "binary_version": "3.9.5-3~20.04.1"
              },
              {
                "binary_name": "libpython3.9-stdlib",
                "binary_version": "3.9.5-3~20.04.1"
              },
              {
                "binary_name": "libpython3.9-testsuite",
                "binary_version": "3.9.5-3~20.04.1"
              },
              {
                "binary_name": "python3.9",
                "binary_version": "3.9.5-3~20.04.1"
              },
              {
                "binary_name": "python3.9-examples",
                "binary_version": "3.9.5-3~20.04.1"
              },
              {
                "binary_name": "python3.9-full",
                "binary_version": "3.9.5-3~20.04.1"
              },
              {
                "binary_name": "python3.9-minimal",
                "binary_version": "3.9.5-3~20.04.1"
              },
              {
                "binary_name": "python3.9-venv",
                "binary_version": "3.9.5-3~20.04.1"
              }
            ]
          },
          "package": {
            "ecosystem": "Ubuntu:20.04:LTS",
            "name": "python3.9",
            "purl": "pkg:deb/ubuntu/python3.9@3.9.5-3~20.04.1?arch=source\u0026distro=focal"
          },
          "ranges": [
            {
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "3.9.5-3~20.04.1"
                }
              ],
              "type": "ECOSYSTEM"
            }
          ],
          "versions": [
            "3.9.0~rc1-1~20.04",
            "3.9.0-5~20.04"
          ]
        }
      ],
      "aliases": [],
      "details": "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.",
      "id": "UBUNTU-CVE-2021-3177",
      "modified": "2026-04-22T07:39:45Z",
      "published": "2021-01-19T06:15:00Z",
      "references": [
        {
          "type": "REPORT",
          "url": "https://ubuntu.com/security/CVE-2021-3177"
        },
        {
          "type": "REPORT",
          "url": "https://bugs.python.org/issue42938"
        },
        {
          "type": "REPORT",
          "url": "https://github.com/python/cpython/pull/24239"
        },
        {
          "type": "REPORT",
          "url": "https://python-security.readthedocs.io/vuln/ctypes-buffer-overflow-pycarg_repr.html"
        },
        {
          "type": "ADVISORY",
          "url": "https://ubuntu.com/security/notices/USN-4754-1"
        },
        {
          "type": "ADVISORY",
          "url": "https://ubuntu.com/security/notices/USN-4754-2"
        },
        {
          "type": "ADVISORY",
          "url": "https://ubuntu.com/security/notices/USN-4754-4"
        },
        {
          "type": "ADVISORY",
          "url": "https://ubuntu.com/security/notices/USN-4754-3"
        },
        {
          "type": "ADVISORY",
          "url": "https://ubuntu.com/security/notices/USN-4754-5"
        },
        {
          "type": "REPORT",
          "url": "https://www.cve.org/CVERecord?id=CVE-2021-3177"
        },
        {
          "type": "ADVISORY",
          "url": "https://ubuntu.com/security/notices/USN-6891-1"
        }
      ],
      "related": [
        "USN-4754-1",
        "USN-4754-2 (regression in python2.7)",
        "USN-4754-4",
        "USN-4754-3",
        "USN-4754-5",
        "USN-6891-1"
      ],
      "schema_version": "1.7.0",
      "severity": [
        {
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
          "type": "CVSS_V3"
        },
        {
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
          "type": "CVSS_V3"
        },
        {
          "score": "medium",
          "type": "Ubuntu"
        }
      ],
      "upstream": [
        "CVE-2021-3177"
      ]
    }