Advisory

UBUNTU-CVE-2021-29921

Also known as: CVE-2021-29921

Summary

The record has no summary.

Details

In Python before 3,9,5, the ipaddress library mishandles leading zero characters in the octets of an IP address string. This (in some situations) allows attackers to bypass access control that is based on IP addresses.

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-05-06 13:15 UTC
Modified
2026-04-22 12:51 UTC

Affected packages and fixes

python3.8

Debian packages (deb) · Ubuntu 20.04

Affected

  • introduced 0, fixed 3.8.10-0ubuntu1~20.04.1 (ecosystem)

Fixed versions

3.8.10-0ubuntu1~20.04.1

Fix

  • Fixed version 3.8.10-0ubuntu1~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.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