CVE-2024-3651

Publication date 23 April 2024

Last updated 11 July 2025


Ubuntu priority

Cvss 3 Severity Score

6.2 · Medium

Score breakdown

A vulnerability was identified in the kjd/idna library, specifically within the `idna.encode()` function, affecting version 3.6. The issue arises from the function's handling of crafted input strings, which can lead to quadratic complexity and consequently, a denial of service condition. This vulnerability is triggered by a crafted input that causes the `idna.encode()` function to process the input with considerable computational load, significantly increasing the processing time in a quadratic manner relative to the input size.

Read the notes from the security team

Status

Package Ubuntu Release Status
python-idna 25.04 plucky
Not affected
24.10 oracular
Not affected
24.04 LTS noble
Fixed 3.6-2ubuntu0.1
23.10 mantic
Fixed 3.3-2ubuntu0.1
22.04 LTS jammy
Fixed 3.3-1ubuntu0.1
20.04 LTS focal
Fixed 2.8-1ubuntu0.1
18.04 LTS bionic
Fixed 2.6-1ubuntu0.1~esm1
16.04 LTS xenial
Fixed 2.0-3ubuntu0.1~esm1
python-pip 25.04 plucky
Not affected
24.10 oracular Ignored end of life, was needs-triage
24.04 LTS noble
Vulnerable
23.10 mantic Ignored end of life, was needs-triage
22.04 LTS jammy
Vulnerable
20.04 LTS focal
Fixed 20.0.2-5ubuntu1.10+esm2
18.04 LTS bionic
Fixed 9.0.1-2.3~ubuntu1.18.04.8+esm4
16.04 LTS xenial
Fixed 8.1.1-2ubuntu0.6+esm8
14.04 LTS trusty
Not affected

Get expanded security coverage with Ubuntu Pro

Reduce your average CVE exposure time from 98 days to 1 day with expanded CVE patching, ten-years security maintenance and optional support for the full stack of open-source applications. Free for personal use.

Get Ubuntu Pro 30-day free trial

Notes


mdeslaur

On focal and earlier, the python-pip package bundles python-idna binaries when built. After updating python-idna, a no-change rebuild of python-pip is required. On jammy and later, python-idna is bundled in the python-pip package and needs to be patched.

Patch details

For informational purposes only. We recommend not to cherry-pick updates. How can I get the fixes?

Package Patch details
python-idna

Severity score breakdown

Parameter Value
Base score 6.2 · Medium
Attack vector Local
Attack complexity Low
Privileges required None
User interaction None
Scope Unchanged
Confidentiality None
Integrity impact None
Availability impact High
Vector CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

References

Related Ubuntu Security Notices (USN)

Other references