CVE-2025-66866
NixOS vulnerability analysis and mitigation

Overview

CVE-2025-66866 is a denial-of-service vulnerability in GNU BinUtils 2.26, specifically in the d_abi_tags function within libiberty/cp-demangle.c. An attacker can trigger a segmentation fault (SIGSEGV) by supplying a crafted PE file to the cxxfilt utility, causing the process to crash. The vulnerability was published on December 29, 2025, and affects BinUtils version 2.26. It carries a CVSS v3.1 base score of 7.5 (High) (Feedly, GitHub PoC).

Technical details

The root cause is improper input validation (CWE-20) in the C++ symbol demangling logic within cp-demangle.c. When cxxfilt processes a maliciously crafted mangled symbol name from a PE file, the call chain cplus_demangle → d_demangle → d_demangle_callback → cplus_demangle_mangled_name → d_encoding → d_bare_function_type → d_parmlist → cplus_demangle_type → d_pointer_to_member_type → d_class_enum_type → d_name → d_unqualified_name → d_abi_tags reaches line 1311 of cp-demangle.c, where a READ memory access to an invalid high-value address causes a SIGSEGV. The crash is reproducible by piping a crafted binary payload (poc6) into cxxfilt compiled with AddressSanitizer, as demonstrated in the public PoC (GitHub PoC).

Impact

Successful exploitation results in a crash of the cxxfilt (or any BinUtils tool invoking the demangler) process, causing a denial of service. There is no evidence of confidentiality or integrity impact — the vulnerability is limited to availability. In automated build pipelines or CI/CD environments that process untrusted binary files using BinUtils tools, an attacker supplying a malicious PE file could disrupt build or analysis workflows (Feedly, GitHub PoC).

Exploitability

A public proof-of-concept exploit (poc6) is available on GitHub, demonstrating reliable crash reproduction (GitHub PoC). The vulnerability is also indexed on Sploitus and has a Nessus detection plugin (ID 280128) (Tenable). The EPSS score is approximately 0.018% (0.000180), indicating a very low probability of exploitation in the wild. There is no evidence of active in-the-wild exploitation, threat actor attribution, or inclusion in the CISA KEV catalog at this time (Feedly).

Exploitation steps

  1. Obtain the PoC payload: Download the crafted binary file poc6 from the public repository at https://github.com/caozhzh/CRGF-Vul/raw/refs/heads/main/pocs/poc6.
  2. Set up a vulnerable environment: Install or compile GNU BinUtils 2.26 (e.g., using the Docker image silkeh/clang:12 with clang 12.0.1 on Debian 11 64-bit, compiled with CFLAGS="-g -Wno-error -fsanitize=address").
  3. Trigger the crash: Pipe the crafted payload into the cxxfilt binary: cat poc6 | binutils/cxxfilt.
  4. Observe the denial of service: The process crashes with an AddressSanitizer SIGSEGV at d_abi_tags in cp-demangle.c:1311, caused by a READ memory access to an invalid high-value address, terminating the demangler process (GitHub PoC).

Indicators of compromise

  • Process: Unexpected termination or crash of cxxfilt or other BinUtils tools (e.g., objdump, nm) when processing PE files; presence of core dump files associated with BinUtils processes.
  • Logs: AddressSanitizer output containing SEGV on unknown address and stack trace referencing d_abi_tags in cp-demangle.c:1311; system logs showing abnormal process exits (signal 11/SIGSEGV) from BinUtils binaries.
  • File System: Presence of the file poc6 or similarly crafted PE files with unusual or malformed symbol table entries in directories processed by build or analysis tools (GitHub PoC).

Mitigation and workarounds

No official patch from GNU BinUtils maintainers has been publicly announced for this specific CVE at the time of writing. Users should upgrade to a more recent version of BinUtils beyond 2.26, as this is a very old release (2016) and many subsequent versions include demangler hardening. As a workaround, avoid processing untrusted or externally supplied PE files with BinUtils 2.26 tools, particularly cxxfilt. Organizations using automated pipelines that invoke BinUtils on untrusted input should sandbox or isolate these processes (Feedly, Tenable).

Community reactions

The vulnerability received limited industry attention, consistent with its narrow scope (a single old BinUtils version, DoS-only impact). It was noted in automated CVE tracking feeds including VulDB, Vulners, and INCIBE-CERT, and a Nessus detection plugin was published by Tenable (Tenable). No significant vendor statements, researcher commentary, or media coverage beyond routine CVE aggregation has been observed (Feedly).

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Debian

Affected

bookworm

binutils

Affected

sid

binutils

Affected

trixie

binutils

Affected

Ubuntu

Unknown

bionic (esm-infra)

binutils

Unknown

devel

binutils

Unknown

focal (esm-infra)

binutils

Unknown

jammy

binutils

Unknown

noble

binutils

Unknown

resolute

binutils

Unknown

trusty (esm-infra-legacy)

binutils

Unknown

xenial (esm-infra-legacy)

binutils

Unknown

RHEL / CentOS

Affected

OpenShift

openshift/ose-rhel-coreos-8

Affected

RHEL 8

binutils.src

Affected

RHEL 9

binutils.src

Affected

RHEL 10

binutils.src

Affected

SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-86738CRITICAL9.3
  • NixOS logoNixOS
  • snipe-it
NoYesSep 08, 2026
CVE-2026-86734HIGH7.1
  • NixOS logoNixOS
  • snipe-it
NoYesSep 08, 2026
CVE-2026-86735MEDIUM5.9
  • NixOS logoNixOS
  • snipe-it
NoYesSep 08, 2026
CVE-2026-86737MEDIUM5.3
  • NixOS logoNixOS
  • snipe-it
NoYesSep 08, 2026
CVE-2026-86736MEDIUM5.3
  • NixOS logoNixOS
  • snipe-it
NoYesSep 08, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management