Skip to content

CVE-2026-111458 ssldump Heap Buffer Overflow in FAN/1 X.509 Fingerprint Formatting

MediumCVSS 6.8 EPSS 0.09%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: partial
Technology
UbuntuDebian

Description

The fanx_fingerprint function in ssl/sslxprint.c of ssldump allocates a heap buffer for formatting FAN/1 X.509 certificate fingerprints. The allocation size is computed as strlen(b64) + strlen(hex) + 31, but the format string "fan1:x509:server:passive:%s:sha256:%s" contains 33 fixed characters in addition to the two variable-length fields and a null terminator, requiring strlen(b64) + strlen(hex) + 34 bytes. This miscalculation results in a 3-byte heap-based buffer overflow on every invocation of the function with valid inputs. The overflow occurs because sprintf writes the full formatted string into the undersized heap buffer without bounds checking. An attacker who can supply a crafted pcap file containing a TLS X.509 certificate to a user running ssldump with FAN/1 fingerprinting enabled (for example with the -j -N options) can trigger the overflow. The resulting heap corruption may lead to denial of service through a crash or, in a worst-case scenario, arbitrary code execution in the context of the user running ssldump. The vulnerability is deterministic and requires no special privileges beyond the ability to provide input to the tool.

Upgrade path

8 packages: 1 fixed, 7 with no fix yet.

PackageAffectedFixed inStatus
debian/ssldump(Debian 12) = 1.5-1; = 1.8-1; = 1.9-1; = 1.9-2 +1 more No fix listed No fix yet
debian/ssldump(Debian 13) = 1.9-1; = 1.9-2; All versions No fix listed No fix yet
debian/ssldump(Debian 14) = 1.9-1; = 1.9-2; All versions No fix listed No fix yet
ubuntu/ssldump(Ubuntu 22.04) All versions No fix listed No fix yet
ubuntu/ssldump(Ubuntu 24.04) All versions No fix listed No fix yet
ubuntu/ssldump(Ubuntu 26.04) All versions No fix listed No fix yet
ubuntu/ssldump(Ubuntu 26.10) All versions No fix listed No fix yet
adulau ssldump <= 1.9.0 after 1.9.0 Fixed

Affected products

ProductAffected versionsFixed in
adulau ssldump <= 1.9.0 No fix listed
debian/ssldump(Debian:12) All versions No fix listed
debian/ssldump(Debian:12) = 1.5-1 No fix listed
debian/ssldump(Debian:12) = 1.8-1 No fix listed
debian/ssldump(Debian:12) = 1.9-1 No fix listed
debian/ssldump(Debian:12) = 1.9-2 No fix listed
debian/ssldump(Debian:13) All versions No fix listed
debian/ssldump(Debian:13) = 1.9-1 No fix listed
debian/ssldump(Debian:13) = 1.9-2 No fix listed
debian/ssldump(Debian:14) All versions No fix listed
debian/ssldump(Debian:14) = 1.9-1 No fix listed
debian/ssldump(Debian:14) = 1.9-2 No fix listed
ubuntu/ssldump(Ubuntu:22.04) All versions No fix listed
ubuntu/ssldump(Ubuntu:24.04) All versions No fix listed
ubuntu/ssldump(Ubuntu:26.04) All versions No fix listed
ubuntu/ssldump(Ubuntu:26.10) All versions No fix listed

References