CVE Database›CVE-2024-12224

CVE-2024-12224

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

Loading…

Severity

Moderate

Red Hat Product Security

5.9

CVSS 3.1

Review impact separately from score.

Published · May 30, 2025

Updated · October 22, 2026

Description

A flaw was found in idna crate. This vulnerability allows hostname spoofing and potential privilege escalation via specially crafted Punycode labels that render as ASCII or empty labels, leading to incorrect equality comparisons during hostname validation.

Statement

This issue was rated as moderate because certain hostnames can be interpreted incorrectly by idna, potentially allowing an attacker to bypass hostname checks. Exploitation requires specific conditions, such as a client accepting unusual domain names and an attacker controlling a matching DNS entry. While it could expose sensitive information or allow limited privilege escalation, it does not affect system availability, and the risk is considered moderate.

CVSS score applicability

The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

Mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

CVSS / CWE

CVSS 3.1 · 5.9
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:L/A:N

CWE-1289 · Improper Validation of Unsafe Equivalence in Input