CVE-2024-12224
MEDIUM 5.1CVSS 4.0`idna` accepts Punycode labels that do not produce any non-ASCII when decoded
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.
- Published
- 30 May 2025
- Last modified
- 10 Sep 2026
- Assigned by
- security@mozilla.org
- NVD status
- Analyzed
- Weakness
- CWE-1289CWE-352CWE-697
- Also known as
- GHSA-h97m-ww89-6jmqRUSTSEC-2024-0421
- Sources
- NVDJSONOSV GHSA-h97m-ww89-6jmqJSONOSV RUSTSEC-2024-0421JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security@mozilla.org (Secondary) | CVSS 4.0 | MEDIUM 5.1 | 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | servo | idnacpe:2.3:a:servo:idna:*:*:*:*:*:rust:*:* |
< 1.0.0 | 1.0.0 |
| OSV | crates.io | idna | < 1.0.0 | 1.0.0 |
| OSV | crates.io | idna | >= 0.0.0-0, < 1.0.0 | 1.0.0 |
References
- https://bugzilla.mozilla.org/show_bug.cgi?id=1887898 · Exploit, Issue Tracking, WEB
- https://rustsec.org/advisories/RUSTSEC-2024-0421.html · Third Party Advisory, WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2024-12224 · ADVISORY
- https://github.com/servo/rust-url · PACKAGE
- https://crates.io/crates/idna · PACKAGE
History
- 25 Nov 2026 20:58 UTC · NVD: first stored (published 30 May 2025)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 9 Dec 2024)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 9 Dec 2024)