PT-2024-17492 · Sqlx+5 · Sqlx+5

Published

2024-01-01

·

Updated

2026-03-19

·

CVE-2024-12224

CVSS v2.0

10

High

VectorAV:N/AC:L/Au:N/C:C/I:C/A:C
Name of the Vulnerable Software and Affected Versions idna versions 0.5.0 and earlier url versions prior to 2.5.4
Description The issue is related to improper validation of unsafe equivalence in punycode by the idna crate from Servo rust-url. This 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. In applications using idna, this may lead to privilege escalation when host name comparison is part of a privilege check. The issue resulted from idna 0.5.0 and earlier implementing the UTS 46 specification literally on this point and the specification having this bug.
Recommendations Upgrade to idna 1.0.3 or later, if depending on idna directly. Upgrade to url 2.5.4 or later, if depending on idna via url. When upgrading, please take a moment to read about alternative Unicode back ends for idna. If you are using Rust earlier than 1.81 in combination with SQLx 0.8.2 or earlier, please also read an issue about combining them with url 2.5.4 and idna 1.0.3.

Exploit

Fix

CSRF

Weakness Enumeration

Related Identifiers

BDU:2025-13518
CVE-2024-12224
GHSA-H97M-WW89-6JMQ
OPENSUSE-SU-2025:15201-1
OPENSUSE-SU-2025:15202-1
OPENSUSE-SU-2025:15294-1
OPENSUSE-SU-2025:15353-1
OPENSUSE-SU-2025:15550-1
OPENSUSE-SU-2025:15551-1
OPENSUSE-SU-2025:15588-1
OPENSUSE-SU-2025:15656-1
OPENSUSE-SU-2026:20060-1
OPENSUSE-SU-2026:20396-1
RUSTSEC-2024-0421
SUSE-RU-2025:02203-1
SUSE-RU-2025:02204-1
SUSE-SU-2025:02586-1
SUSE-SU-2025:02587-1
SUSE-SU-2025:02768-1
SUSE-SU-2025:02809-1
SUSE-SU-2025:02810-1
SUSE-SU-2025:02811-1
SUSE-SU-2025:03298-1
SUSE-SU-2025:03306-1
SUSE-SU-2025:03307-1
SUSE-SU-2025:03445-1
SUSE-SU-2025:20491-1
SUSE-SU-2025:20716-1
SUSE-SU-2025:20783-1
SUSE-SU-2025:20858-1
SUSE-SU-2025:3783-1
SUSE-SU-2025:3784-1
SUSE-SU-2025:3785-1
SUSE-SU-2025:3786-1
SUSE-SU-2025:4411-1
SUSE-SU-2025_02586-1
SUSE-SU-2025_02768-1
SUSE-SU-2025_03298-1
SUSE-SU-2025_03306-1
SUSE-SU-2025_03307-1
SUSE-SU-2025_03445-1
SUSE-SU-2026:0243-1
SUSE-SU-2026:0620-1
SUSE-SU-2026:20096-1
SUSE-SU-2026:20755-1
SUSE-SU-2026:20910-1

Affected Products

Debian
Rust
Sqlx
Suse
Idna
Url