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

- Severity: Medium 6.8 (CVSS:4.0, scored by CIRCL) `CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.09%, higher than 0% of CVEs (2026-12-01)
- Published: 2026-10-16T05:24:43.178Z
- Modified: 2026-10-16T20:04:29.760Z
- Weaknesses: CWE-122, CWE-787
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: CIRCL

## 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.

(As written by CVE List.)

## Affected

- adulau ssldump: up to 1.9.0

## References

- <https://github.com/adulau/ssldump/commit/8ad55683cc0186600c085d33be5a5b627db78467> (patch)

## Sources

- CVE List: [CVE-2026-111458](https://www.cve.org/CVERecord?id=CVE-2026-111458), CVE Terms of Use, modified 2026-10-16
- NVD: [CVE-2026-111458](https://nvd.nist.gov/vuln/detail/CVE-2026-111458), Public domain, modified 2026-10-16

---

Page: https://cve.day/CVE-2026-111458 · Whole record: https://cve.day/CVE-2026-111458.json · Rebuilt by cve.day 2026-11-25T22:59:45.020Z
