# CVE-2024-12224: idna accepts Punycode labels that do not produce any non-ASCII when decoded

- Severity: Medium 5.1 (CVSS:4.0, scored by mozilla) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.23%, higher than 15% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-12-09T12:00:00.000Z
- Modified: 2026-09-10T03:50:21.562Z
- Also known as: GHSA-h97m-ww89-6jmq, RUSTSEC-2024-0421
- Weaknesses: CWE-352, CWE-697, CWE-1289
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: mozilla

## 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.

(As written by CVE List.)

## Affected

- idna: before 1.0.0
- idna (crates.io): before 1.0.0; from 0.0.0-0 before 1.0.0
- servo idna: before 1.0.0

## Every score

- mozilla: CVSS:4.0 5.1 Medium `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`
- GitHub: CVSS:4.0 Medium `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: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`

## References

- <https://bugzilla.mozilla.org/show_bug.cgi?id=1887898> (exploit, issue-tracking, web)
- <https://rustsec.org/advisories/RUSTSEC-2024-0421.html> (advisory, third-party-advisory, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-12224> (advisory)
- <https://github.com/servo/rust-url> (package)
- <https://crates.io/crates/idna> (package)

## Sources

- CVE List: [CVE-2024-12224](https://www.cve.org/CVERecord?id=CVE-2024-12224), CVE Terms of Use, modified 2025-05-30
- GitHub Advisory Database: [GHSA-h97m-ww89-6jmq](https://github.com/advisories/GHSA-h97m-ww89-6jmq), CC-BY-4.0, modified 2026-09-10
- RustSec Advisory Database: [RUSTSEC-2024-0421](https://rustsec.org/advisories/RUSTSEC-2024-0421.html), CC0-1.0, modified 2025-10-28
- NVD: [CVE-2024-12224](https://nvd.nist.gov/vuln/detail/CVE-2024-12224), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-12224 · Whole record: https://cve.day/CVE-2024-12224.json · Rebuilt by cve.day 2026-11-25T22:58:52.706Z
