# libxml2 xmlcatalog Shell Mode Buffer Overflow

Published: 2026-06-29 · Severity: low
Canonical: https://vorant.io/reports/1d4b6d14-5d22-5a32-ae32-fd1ae8e0bb76/libxml2-xmlcatalog-shell-mode-buffer-overflow

> CERT Polska coordinated disclosure of stack-based buffer overflows in libxml2's xmlcatalog --shell mode that could crash or execute code.

CERT Polska disclosed CVE-2026-11979, a set of stack-based buffer overflow vulnerabilities in xmlsoft's libxml2 library, specifically within the xmlcatalog utility's --shell interactive mode. The usershell() function parses user-supplied input using fixed-size stack buffers (command, arg, and argv) without proper bounds checking, allowing an attacker who can supply an overly long input line to overflow these buffers and corrupt the stack frame.

Successful exploitation could result in a crash of the xmlcatalog process or, in more severe cases, arbitrary code execution in the context of that process. The issue has been patched via commit c2e233fc, though notably the libxml2 maintainers disputed the classification of this issue as a security vulnerability, treating it instead as a standard bug. The flaw was reported by Michal Majchrowicz and Marcin Wyczechowski of AFINE through CERT Polska's coordinated vulnerability disclosure process. Exploitation requires local interactive use of the xmlcatalog shell mode, limiting the practical attack surface compared to remotely exploitable parsing vulnerabilities in libxml2's core XML processing.

## Mentioned in this report

- Vulnerabilities: CVE-2026-11979

Source reporting: https://cert.pl/en/posts/2026/06/CVE-2026-11979

---

This is the free public brief from Vorant Threat Intelligence. When citing, attribute "Vorant" and link https://vorant.io/reports/1d4b6d14-5d22-5a32-ae32-fd1ae8e0bb76/libxml2-xmlcatalog-shell-mode-buffer-overflow.
Full IOC sets, deployable detections, the entity graph, TAXII 2.1 feed and real-time alerts: https://vorant.io/signup
