Ecosyste.ms: Advisories

An open API service providing security vulnerability metadata for many open source software ecosystems.

Security Advisories: GSA_kwCzR0hTQS1qamc3LTJ2NHYteDM4aM4AA670

Internationalized Domain Names in Applications (IDNA) vulnerable to denial of service from specially crafted inputs to idna.encode

Impact

A specially crafted argument to the idna.encode() function could consume significant resources. This may lead to a denial-of-service.

Patches

The function has been refined to reject such strings without the associated resource consumption in version 3.7.

Workarounds

Domain names cannot exceed 253 characters in length, if this length limit is enforced prior to passing the domain to the idna.encode() function it should no longer consume significant resources. This is triggered by arbitrarily large inputs that would not occur in normal usage, but may be passed to the library assuming there is no preliminary input validation by the higher-level application.

References

Permalink: https://github.com/advisories/GHSA-jjg7-2v4v-x38h
JSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS1qamc3LTJ2NHYteDM4aM4AA670
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Moderate
Classification: General
Published: 22 days ago
Updated: 22 days ago


CVSS Score: 6.2
CVSS vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Identifiers: GHSA-jjg7-2v4v-x38h, CVE-2024-3651
References: Repository: https://github.com/kjd/idna
Blast Radius: 34.8

Affected Packages

pypi:idna
Dependent packages: 1,598
Dependent repositories: 408,607
Downloads: 402,753,509 last month
Affected Version Ranges: < 3.7
Fixed in: 3.7
All affected versions:
All unaffected versions: