CVE-2024-12224 Details
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.
A vulnerability exists in the `idna` crate used by `servo/rust-url` versions 2.5.0 prior to 2.5.2. The issue stems from improper validation of Punycode hostnames, allowing an attacker to craft a hostname that one part of a system may view as distinct while another part treats it as equivalent to a different hostname. This flaw can lead to privilege escalation in applications that rely on hostname comparisons for security decisions.
Users should upgrade to `idna` version 1.0.3 or later, or to `url` version 2.5.4 or later, if `idna` is used as a dependency through the `url` crate. This vulnerability has been fixed in `idna` version 1.0.2 and `url` version 2.5.1.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed May 30, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://bugzilla.mozilla.org/show_bug.cgi?id=1887898 | CISA-ADP | ExploitIssue Tracking |
| https://bugzilla.mozilla.org/show_bug.cgi?id=1887898 | [email protected] | ExploitIssue Tracking |
| https://rustsec.org/advisories/RUSTSEC-2024-0421.html | [email protected] | Third Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-352 | Cross-Site Request Forgery (CSRF) | [email protected] |
| CWE-1289 | Improper Validation of Unsafe Equivalence in Input | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| servo idna | < 1.0.0 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 25, 2025 | Initial Analysis | [email protected] |
| May 30, 2025 | CVE Modified | CISA-ADP |
| May 30, 2025 | New CVE Received | [email protected] |