Advisory

UBUNTU-CVE-2021-3177

Also known as: CVE-2021-3177

Summary

The record has no summary.

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.

Severity

Critical Basis: CVSS v3 score 9.8, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Dates

Published
2021-01-19 06:15 UTC
Modified
2026-04-22 12:53 UTC

Affected packages and fixes

python2.7

Debian packages (deb) · Ubuntu 16.04

Affected

  • introduced 0, fixed 2.7.12-1ubuntu0~16.04.18 (ecosystem)

Fixed versions

2.7.12-1ubuntu0~16.04.18

Fix

  • Fixed version 2.7.12-1ubuntu0~16.04.18
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

python3.5

Debian packages (deb) · Ubuntu 16.04

Affected

  • introduced 0, fixed 3.5.2-2ubuntu0~16.04.13 (ecosystem)

Fixed versions

3.5.2-2ubuntu0~16.04.13

Fix

  • Fixed version 3.5.2-2ubuntu0~16.04.13
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

python2.7

Debian packages (deb) · Ubuntu 18.04

Affected

  • introduced 0, fixed 2.7.17-1~18.04ubuntu1.6 (ecosystem)

Fixed versions

2.7.17-1~18.04ubuntu1.6

Fix

  • Fixed version 2.7.17-1~18.04ubuntu1.6
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

python3.6

Debian packages (deb) · Ubuntu 18.04

Affected

  • introduced 0, fixed 3.6.9-1~18.04ubuntu1.4 (ecosystem)

Fixed versions

3.6.9-1~18.04ubuntu1.4

Fix

  • Fixed version 3.6.9-1~18.04ubuntu1.4
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

python3.7

Debian packages (deb) · Ubuntu 18.04

Affected

  • introduced 0, fixed 3.7.5-2~18.04.4 (ecosystem)

Fixed versions

3.7.5-2~18.04.4

Fix

  • Fixed version 3.7.5-2~18.04.4
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

python3.8

Debian packages (deb) · Ubuntu 18.04

Affected

  • introduced 0, fixed 3.8.0-3~18.04.1 (ecosystem)

Fixed versions

3.8.0-3~18.04.1

Fix

  • Fixed version 3.8.0-3~18.04.1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

python2.7

Debian packages (deb) · Ubuntu 20.04

Affected

  • introduced 0, fixed 2.7.18-1~20.04.1 (ecosystem)

Fixed versions

2.7.18-1~20.04.1

Fix

  • Fixed version 2.7.18-1~20.04.1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

python3.8

Debian packages (deb) · Ubuntu 20.04

Affected

  • introduced 0, fixed 3.8.5-1~20.04.2 (ecosystem)

Fixed versions

3.8.5-1~20.04.2

Fix

  • Fixed version 3.8.5-1~20.04.2
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

python3.9

Debian packages (deb) · Ubuntu 20.04

Affected

  • introduced 0, fixed 3.9.5-3~20.04.1 (ecosystem)

Fixed versions

3.9.5-3~20.04.1

Fix

  • Fixed version 3.9.5-3~20.04.1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Ubuntu Security Notices · CC BY-SA 4.0

Sources & licences