Advisory

DEBIAN-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-08-27 23:04 UTC

Affected packages and fixes

python2.7

Debian packages (deb) · Debian 11

Affected

  • introduced 0, fixed 2.7.18-2 (ecosystem)

Fixed versions

2.7.18-2

Fix

  • Fixed version 2.7.18-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) · Debian 11

Affected

  • introduced 0, fixed 3.9.1-3 (ecosystem)

Fixed versions

3.9.1-3

Fix

  • Fixed version 3.9.1-3
    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: Debian Security Tracker (converted by OSV.dev)

Debian Security Tracker, converted to OSV by OSV.dev.

Sources & licences