PYSEC-2024-60

See a problem?
Import Source
https://github.com/pypa/advisory-database/blob/main/vulns/idna/PYSEC-2024-60.yaml
JSON Data
https://api.test.osv.dev/v1/vulns/PYSEC-2024-60
Aliases
Published
2024-07-07T18:15:00Z
Modified
2024-09-11T06:13:10.004325Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
[none]
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.

References

Affected packages

PyPI / idna

Package

Affected ranges

Type
GIT
Repo
https://github.com/kjd/idna
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Type
ECOSYSTEM
Events
Introduced
0.1
Fixed
3.7

Affected versions

0.*

0.1
0.2
0.3
0.4
0.5
0.6
0.7
0.8
0.9

1.*

1.0
1.1

2.*

2.0
2.1
2.2
2.3
2.4
2.5
2.6
2.7
2.8
2.9
2.10

3.*

3.0
3.1
3.2
3.3
3.4
3.5
3.6