CVE-2026-74766

Description

A flaw was found in Net::IDN::Punycode. A heap use-after-free vulnerability exists in the decode_punycode function when processing a specially crafted punycode label. This occurs because the output buffer is reallocated without updating the insertion pointer, leading to reads and writes to freed memory. An attacker can exploit this to potentially achieve arbitrary code execution or cause a denial of service.

Statement

This flaw is rated as Important because processing malformed domain labels in Perl environments utilizing the XS extension can lead to heap-based memory corruption, enabling service termination or potential arbitrary code execution. In Red Hat Enterprise Linux, this Perl library provides internationalized domain name handling, exposing network-facing services and scripts that parse external domain strings to memory corruption during buffer reallocation. Exploitation requires an application to ingest and decode attacker-controlled domain names, limiting broader systemic compromise to the privileges of the executing process.

Understanding the Weakness (CWE)

Confidentiality

Technical Impact: Read Memory

If the expired pointer is used in a read operation, an attacker might be able to control data read in by the application.

Availability

Technical Impact: DoS: Crash, Exit, or Restart

If the expired pointer references a memory location that is not accessible to the product, or points to a location that is "malformed" (such as NULL) or larger than expected by a read or write operation, then a crash may occur.

Integrity,Confidentiality,Availability

Technical Impact: Execute Unauthorized Code or Commands

If the expired pointer is used in a function call, or points to unexpected data in a write operation, then code execution may be possible.

Frequently Asked Questions

Want to get errata notifications? Sign up here.