PYSEC-2024-60
At a glance
- Published
- Updated
- CVE
- CVE-2024-3651
- Aliases
- GHSA-jjg7-2v4v-x38h
- CVSS_V3
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Description
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.
Affected packages
| Package | Versions |
|---|---|
| PyPI · idna | introduced 0, fixed 1d365e17e10d72d0b7876316fc7b9ca0eebdd38d ; introduced 0.1, fixed 3.7 |
References
- https://huntr.com/bounties/93d78d07-d791-4b39-a845-cbfabc44aadb EVIDENCE
- https://huntr.com/bounties/93d78d07-d791-4b39-a845-cbfabc44aadb FIX
- https://github.com/kjd/idna/commit/1d365e17e10d72d0b7876316fc7b9ca0eebdd38d FIX
- https://github.com/advisories/GHSA-jjg7-2v4v-x38h ADVISORY
Sources
| Source | Licence |
|---|---|
| OSV.dev | CC-BY 4.0 — PyPA Advisory Database |