Executive Summary
CVE-2026-120434 is a stack-based buffer overflow in the scanPoly() function of picttoppm (converter/ppm/picttoppm.c), part of the widely bundled Netpbm image-processing toolkit. An attacker who can get a victim or an automated pipeline to convert a specially crafted PICT file can overflow a fixed-size coordinate array on the stack.
CVSS Score: 7.8 (High)
Vulnerability Overview
| Attribute | Value |
|---|---|
| CVE ID | CVE-2026-120434 |
| CVSS Score | 7.8 (High) |
| Type | Stack-based buffer overflow |
| Component | scanPoly() in converter/ppm/picttoppm.c |
| Trigger | Crafted PICT file with polygon edges producing more than 5,000 points |
| Published | 2026-11-02 |
Affected Versions
| Netpbm Branch | Vulnerable | Fixed |
|---|---|---|
| 10.x | Before 10.86.51 | 10.86.51 or later |
| 11.0x – 11.02 | 11.x before 11.02.30 | 11.02.30 or later |
| 11.03 | Before 11.15.08 | 11.15.08 or later |
Technical Analysis
The scanPoly() routine rasterizes polygons read from a PICT file. It stores edge coordinates in a fixed-size coord stack array sized for 5,000 points. A crafted file whose polygon edges produce more than 5,000 points writes past the end of that array, corrupting adjacent stack memory.
Stack corruption of this kind can crash the converter and, depending on compiler hardening and platform mitigations, may be leveraged for code execution in the context of the user running the tool. The NVD score of 7.8 reflects a local attack vector with user interaction (opening or converting a malicious file).
Where Netpbm Is Commonly Used
- Image-conversion steps in document and web pipelines (thumbnailers, upload processors)
- Legacy scripts that convert Macintosh PICT images
- Packages that depend on the Netpbm tools through the OS package manager
Remediation
- Upgrade Netpbm to 10.86.51, 11.02.30, or 11.15.08 (or later), matching your branch.
- Check distribution packages. Most Linux distributions ship Netpbm as
netpbm; apply your vendor's update when it lands.
# Check installed version
pnmfile --version 2>&1 | head -1
picttoppm --version 2>&1 | head -1
# Debian/Ubuntu
apt list --installed 2>/dev/null | grep -i netpbm
# RHEL/Fedora
rpm -q netpbm- Restrict untrusted PICT input. If you cannot patch immediately, do not run
picttoppmon files from untrusted sources, and remove it from automated upload-processing pipelines. - Sandbox conversions. Run image converters under a low-privilege user, container, or seccomp profile.
Detection
| Indicator | Description |
|---|---|
picttoppm crashes (SIGSEGV, stack smashing detected) | Possible exploitation attempt or malformed input |
| Unexpected PICT files in upload directories | Delivery of crafted input |
| Child processes spawned by image-conversion services | Post-exploitation behavior |