Skip to main content
Vulnerability Database/CVE-2026-111458

CVE-2026-111458: ssldump Buffer Overflow Vulnerability

CVE-2026-111458 is a heap-based buffer overflow in ssldump's fanx_fingerprint function that triggers when processing X.509 certificates. Attackers can exploit this via crafted pcap files to cause crashes or execute code. This article covers technical details, affected versions, impact analysis, and mitigation strategies.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-111458 Overview

CVE-2026-111458 is a heap-based buffer overflow [CWE-122] in the fanx_fingerprint function of ssl/sslxprint.c in ssldump. The function allocates a heap buffer sized strlen(b64) + strlen(hex) + 31 bytes to format a FAN/1 X.509 certificate fingerprint. The format string fan1:x509:server:passive:%s:sha256:%s contains 33 fixed characters plus a null terminator, requiring 34 additional bytes. The resulting 3-byte overflow occurs on every invocation with valid inputs, triggered by processing a pcap file containing a TLS X.509 certificate when FAN/1 fingerprinting is enabled.

Critical Impact

An attacker who supplies a crafted pcap file to a user running ssldump with the -j -N options can trigger deterministic heap corruption, leading to denial of service or potential arbitrary code execution in the user context.

Affected Products

  • ssldump utility (adulau/ssldump fork)
  • Builds including the fanx_fingerprint function in ssl/sslxprint.c
  • Any downstream distribution packaging the vulnerable ssldump source prior to commit 8ad55683

Discovery Timeline

  • 2026-10-16 - CVE-2026-111458 published to NVD
  • 2026-10-16 - Last updated in NVD database

Technical Details for CVE-2026-111458

Vulnerability Analysis

The fanx_fingerprint function constructs a fingerprint string by concatenating a fixed prefix with two variable-length fields: a base64url-encoded value (b64) and a SHA-256 hex digest (hex). The function allocates its destination buffer using calloc(strlen(b64) + strlen(hex) + 31, 1), then writes the formatted output with sprintf using the format string "fan1:x509:server:passive:%s:sha256:%s".

The fixed portion of the format string contains 33 bytes, and sprintf appends a null terminator, requiring 34 bytes beyond the combined length of the variable fields. The 31-byte constant used in the allocation is therefore 3 bytes short. Because sprintf performs no bounds checking, the final 3 bytes of the formatted string, including the null terminator, are written past the end of the heap buffer on every call.

Root Cause

The root cause is an incorrect size constant in the allocation expression. The developer underestimated the fixed-character count of the format string by 3 bytes and used unbounded sprintf to write the output. The use of a hand-computed buffer size instead of a length-aware primitive such as snprintf(NULL, 0, ...) makes the miscalculation silent and deterministic.

Attack Vector

Exploitation requires a local user to run ssldump with FAN/1 fingerprinting enabled (for example ssldump -j -N -r attacker.pcap) against an attacker-supplied pcap containing a valid TLS X.509 certificate. No elevated privileges are needed beyond providing input to the tool. User interaction is required because the victim must invoke ssldump on the crafted capture. The overflow corrupts adjacent heap metadata or data, which may crash the process or, under favorable allocator state, enable arbitrary code execution in the invoking user's context.

c
   return hex;
 }
 static char *fanx_fingerprint(const char *features) {
+  static const char format[] = "fan1:x509:server:passive:%s:sha256:%s";
   char *b64 = fanx_base64url(features), *hex = fanx_sha256_hex(features), *fp;
+  int fp_len;
   if(!b64 || !hex) {
     free(b64);
     free(hex);
     return NULL;
   }
-  fp = calloc(strlen(b64) + strlen(hex) + 31, 1);
-  if(fp) sprintf(fp, "fan1:x509:server:passive:%s:sha256:%s", b64, hex);
+  fp_len = snprintf(NULL, 0, format, b64, hex);
+  fp = fp_len < 0 ? NULL : calloc((size_t)fp_len + 1, 1);
+  if(fp) snprintf(fp, (size_t)fp_len + 1, format, b64, hex);
   free(b64);
   free(hex);
   return fp;

Source: GitHub Commit for ssldump. The patch replaces the hand-computed size with snprintf-based length probing and uses bounded snprintf to write the output.

Detection Methods for CVE-2026-111458

Indicators of Compromise

  • Unexpected ssldump process crashes or SIGABRT events on hosts that parse pcap files, especially when -j or -N flags are present in the command line.
  • Heap corruption messages from glibc such as malloc(): corrupted top size or free(): invalid pointer associated with the ssldump binary.
  • Pcap files received from untrusted sources that contain TLS handshakes with X.509 server certificates and are processed by analysts.

Detection Strategies

  • Monitor process execution telemetry for invocations of ssldump with the -j and -N flags combined with -r reading from user-writable directories.
  • Hunt for ssldump child process exits with non-zero signal codes correlated with recent pcap file writes.
  • Inspect build pipelines for ssldump binaries compiled from source trees lacking commit 8ad55683cc0186600c085d33be5a5b627db78467.

Monitoring Recommendations

  • Enable core dump collection on analyst workstations and forensic hosts to capture crash evidence from ssldump.
  • Forward shell history and EDR process telemetry to a central data lake to correlate pcap handling with crashes.
  • Alert on ssldump executions that originate from email attachment directories, download folders, or shared network paths.

How to Mitigate CVE-2026-111458

Immediate Actions Required

  • Rebuild and redeploy ssldump from source that includes commit 8ad55683cc0186600c085d33be5a5b627db78467 or later.
  • Avoid passing untrusted pcap files to ssldump with FAN/1 fingerprinting enabled (-j -N) until the patched binary is in place.
  • Audit analyst workflows and scripts that invoke ssldump on externally sourced captures and restrict them to patched hosts.

Patch Information

The fix is published in the adulau/ssldump repository at GitHub Commit for ssldump. The patch replaces the undersized calloc/sprintf pair with a two-pass snprintf that computes the exact required length and writes within bounds. The commit also adds a CTest-based regression test (fan1_x509) that exercises the fingerprint path against a sample pcap to prevent reintroduction.

Workarounds

  • Omit the -j and -N flags when invoking ssldump, which disables the FAN/1 fingerprinting code path containing the overflow.
  • Run ssldump inside a restricted sandbox or container with no network access and a non-privileged user when analyzing untrusted captures.
  • Pre-filter pcap files to strip TLS X.509 certificate records before passing them to vulnerable ssldump builds.
bash
# Build the patched ssldump from source
git clone https://github.com/adulau/ssldump.git
cd ssldump
git checkout 8ad55683cc0186600c085d33be5a5b627db78467
mkdir build && cd build
cmake -DBUILD_TESTING=ON ..
cmake --build .
ctest -R fan1_x509 --output-on-failure
sudo cmake --install .

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.