CVEfocus › CVE database › CVE-2026-70368

CVE-2026-70368Stunnel: stack-based out-of-bounds read/write in stunnel s_vlog via oversized log message

CVSS 6.5 MediumEPSS 0.4% (higher than 30% of CVEs)Published 2026-08-04Updated 2026-11-24Assigner: redhat

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

CWE-125

What to do

Fixed builds are available from Alpine, Debian: see the table below for the fixed version per release.

Debian, Red Hat have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

2Fixed
5Fix pending
2Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Debian 14stunnelFixed3:5.80-1DEBIAN-CVE-2026-70368
Debian 13stunnel4Fix pendingDEBIAN-CVE-2026-70368
Debian 12stunnel4Fix pendingDEBIAN-CVE-2026-70368
Red Hat Enterprise Linux 10stunnelFix pending
Fix deferred
Red Hat Enterprise Linux 9stunnelFix pending
Fix deferred
Red Hat Enterprise Linux 8stunnelFix pending
Fix deferred
Red Hat Enterprise Linux 7stunnelNot affected
Red Hat Enterprise Linux 6stunnelNot affected
Alpine Linux 3.24stunnelFixed5.82-r0ALPINE-CVE-2026-70368

What the vendor says

As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Workaround: To mitigate this issue, avoid exposing stunnel services to untrusted clients. Restrict access to these services to trusted networks only.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.