home / blog
2026-11-30 · high
CVE-2026-120435: Heap overflow in Netpbm enables code execution
Heap buffer overflow in Netpbm xpmtoppm enables code execution through malicious XPM files. Critical CVSS 7.8.

CVE-2026-120435 is a critical vulnerability in Netpbm consisting of a heap buffer overflow in the xpmtoppm function. The issue is caused by an unvalidated "characters-per-pixel" value in the XPM header, which allows an attacker to supply an XPM file with a value greater than 3 to overrun fixed 3-byte colorName hash entries, potentially causing crashes or code execution.
The severity of this vulnerability is classified as high (CVSS 7.8) and affects Netpbm versions before 10.86.51, 11.x before 11.02.30, and 11.03 before 11.15.08. Signals are consistent between official sources and GitHub, where a proof of concept (PoC) and standalone exploit are already available, indicating that the vulnerability is actively exploitable.
In defense, it is crucial to immediately apply the patch by updating Netpbm to the correct version, avoid opening XPM files from untrusted sources, and implement access controls for image files. Security teams should monitor for the presence of this vulnerability in their infrastructures and, if necessary, consider isolating systems that process XPM files until the patch is applied.
At a glance
- What
- Heap buffer overflow in xpmtoppm caused by unvalidated characters-per-pixel value in XPM header
- Severity
- High (CVSS 7.8)
- Affected versions
- Netpbm before 10.86.51, 11.x before 11.02.30, and 11.03 before 11.15.08
- Fix
- Update to Netpbm version 10.86.51 or later
- Status
- Confirmed with PoC available on GitHub
- Action
- Apply patch, avoid opening untrusted XPM files
Sources: NVD, CVE-2026-120435