CVE-2024-12224

idna accepts Punycode labels that do not produce any non-ASCII when decoded

Published May 30, 2025 CVSS 4.0 · 5.1 Medium EPSS < 1% KEV · Not listed
Description
Improper Validation of Unsafe Equivalence in punycode by the idna crate from Servo rust-url allows an attacker to create a punycode hostname that one part of a system might treat as distinct while another part of that system would treat as equivalent to another hostname.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2024-3478 Improper Validation of Unsafe Equivalence in punycode by the idna crate from Servo rust-url allows an attacker to create a punycode hostname that one part of a system might treat as distinct while another part of that system would treat as equivalent to another hostname.
Github GHSA Github GHSA GHSA-h97m-ww89-6jmq `idna` accepts Punycode labels that do not produce any non-ASCII when decoded
History
Type Values Removed Values Added
Metrics epss

{'score': 0.00019}

epss

{'score': 0.00022}

Type Values Removed Values Added
First Time appeared Servo
Servo idna
Weaknesses CWE-352
CPEs cpe:2.3:a:servo:idna:*:*:*:*:*:rust:*:*
Vendors & Products Servo
Servo idna
Metrics cvssV3_1

{'score': 4.2, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N'}

cvssV3_1

{'score': 8.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H'}

Type Values Removed Values Added
References
Metrics threat_severity

None

cvssV3_1

{'score': 4.2, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N'}

threat_severity

Moderate

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description Improper Validation of Unsafe Equivalence in punycode by the idna crate from Servo rust-url allows an attacker to create a punycode hostname that one part of a system might treat as distinct while another part of that system would treat as equivalent to another hostname.
Title idna accepts Punycode labels that do not produce any non-ASCII when decoded
Weaknesses CWE-1289
References
Metrics cvssV4_0

{'score': 5.1, 'vector': 'CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:N/VI:N/VA:N/SC:H/SI:L/SA:N'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
mozilla
Published
Updated
May 30, 2025, 12:46 PM
Reserved
Dec 5, 2024, 2:50 AM
Status
Analyzed
Published
May 30, 2025, 2:15 AM
Modified
Jun 17, 2026, 6:59 AM
Severity
Moderate
Public date
May 30, 2025, 1:16 AM