CVE-2026-70368
Received Received - Intake

Stack-Based Out-of-Bounds Read in stunnel

Vulnerability report for CVE-2026-70368, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-08-04

Last updated on: 2026-08-04

Assigner: Red Hat, Inc.

Description

A stack-based out-of-bounds read vulnerability exists in the "s_vlog" function of stunnel, when handling oversized log messages via "vsnprintf". A remote attacker with network access to a stunnel service can send protocol inputs that trigger a log message longer than 1024 bytes, leading to an out-of-bounds stack read and a potential crash. In certain corner cases, the same vulnerability could be used to replace a series of trailing "\n" characters with "\0".

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-08-04
Last Modified
2026-08-04
Generated
2026-08-04
AI Q&A
2026-08-04
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 3 associated CPEs
Vendor Product Version / Range
stunnel stunnel *
stunnel stunnel 5.79
stunnel stunnel 5.72-8.el10

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-125 The product reads data past the end, or before the beginning, of the intended buffer.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This is a stack-based out-of-bounds read vulnerability in stunnel's 's_vlog' function. It occurs when handling oversized log messages longer than 1024 bytes via 'vsnprintf'. A remote attacker can send specially crafted protocol inputs that trigger these long log messages, causing the program to read beyond its allocated memory buffer. In some cases, this could also replace trailing newline characters with null bytes.

Detection Guidance

Monitor stunnel logs for crashes or unusual behavior when handling long protocol inputs. Check for IMAP protocol configurations with server-side negotiation. Use network traffic analysis tools to detect oversized log messages exceeding 1024 bytes.

Impact Analysis

The main impact is a denial-of-service where the stunnel service crashes. An attacker could send malicious inputs that cause the service to become unstable or stop responding. In specific configurations like IMAP protocol negotiation, an unauthenticated attacker might remotely crash the service without needing privileges or user interaction.

Mitigation Strategies

Restrict network access to stunnel services to trusted sources only. Disable server-side IMAP protocol negotiation if configured. Monitor for crashes and apply vendor patches once available.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-70368. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart