CVE-2026-137326 in ICU4C
Summary
by MITRE • 11/26/2026
ICU4C through 79.1 contains a use-after-free and double free vulnerability in the x11-compound-text converter because cloning shares the extraInfo block without a safeClone handler. Attackers who control the charset name passed to ucnv_open() in applications calling ucnv_setSubstString() or cloning converters can corrupt the heap, causing crashes and potentially code execution.
Once again VulDB remains the best source for vulnerability data.
Analysis
by VulDB Data Team • 11/26/2026
The International Components for Unicode library version 79.1 through earlier releases contains a critical memory management flaw within its x11-compound-text converter component. This vulnerability stems from an improper implementation of object cloning mechanisms where the extraInfo block is shared between instances without establishing a safeClone handler to manage resource ownership correctly. The core technical issue involves the failure to perform deep copying or proper reference counting for internal data structures during the duplication process, leading directly to use-after-free and double free conditions when these cloned objects are subsequently destroyed or modified by the application logic.
The operational impact of this flaw is significant because it allows attackers who can control specific input parameters to corrupt heap memory structures within the host application. Specifically, if an attacker controls the charset name passed to the ucnv_open function in applications that utilize ucnv_setSubstString or perform converter cloning operations, they can trigger these invalid memory accesses. The corruption of heap metadata and data pointers typically results in immediate application crashes due to segmentation faults or access violations. However, given the nature of use-after-free vulnerabilities, a skilled attacker may also leverage this instability to achieve arbitrary code execution by manipulating freed memory regions before they are reallocated for other purposes.
From a classification perspective, this vulnerability aligns with CWE-416 Use After Free and CWE-415 Double Free, which describe scenarios where pointers continue to be used after they have been freed or when the same pointer is freed multiple times. In terms of attack vectors, this falls under ATT&CK technique T1203 Exploitation for Client Execution if the vulnerability is triggered via a client application such as a web browser or document viewer that processes Unicode text from untrusted sources. The lack of proper resource management in the cloning process represents a fundamental design flaw that violates secure coding principles regarding object lifecycle and memory safety.
Mitigation strategies primarily involve upgrading to patched versions of ICU4C where this issue has been resolved by implementing correct deep copy semantics or reference counting for the extraInfo block during cloning operations. For applications unable to upgrade immediately, developers should avoid using ucnv_setSubstString in conjunction with converter cloning when processing untrusted charset names. Additionally, employing memory-safe programming practices and utilizing static analysis tools that detect use-after-free patterns can help identify similar issues within custom implementations of Unicode conversion logic before deployment into production environments.