Advisory

PYSEC-2024-60

Also known as: CVE-2024-3651, GHSA-jjg7-2v4v-x38h

Summary

The record has no summary.

Details

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.

Severity

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

Dates

Published
2024-07-07 18:15 UTC
Modified
2026-06-10 17:01 UTC

Affected packages and fixes

idna

PyPI · All systems

Affected

  • introduced 0.1, fixed 3.7 (ecosystem)

Fixed versions

3.7

Fix

  • Fixed version 3.7
    pip install --upgrade idna==3.7

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: PyPA Advisory Database · CC BY 4.0

Sources & licences