CVE-2026-70368Stunnel: stack-based out-of-bounds read/write in stunnel s_vlog via oversized log message
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".
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
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.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Debian 14 | stunnel | Fixed | 3:5.80-1 | DEBIAN-CVE-2026-70368 |
| Debian 13 | stunnel4 | Fix pending | DEBIAN-CVE-2026-70368 | |
| Debian 12 | stunnel4 | Fix pending | DEBIAN-CVE-2026-70368 | |
| Red Hat Enterprise Linux 10 | stunnel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | stunnel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | stunnel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | stunnel | Not affected | ||
| Red Hat Enterprise Linux 6 | stunnel | Not affected | ||
| Alpine Linux 3.24 | stunnel | Fixed | 5.82-r0 | ALPINE-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.
- Mobi-Com Polska Sp. z o.o. stunnel: affected: 5.68 to before 5.80; fixed in
5.80 - Red Hat Enterprise Linux 10
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 9
Workaround: To mitigate this issue, avoid exposing stunnel services to untrusted clients. Restrict access to these services to trusted networks only.
References
- https://access.redhat.com/security/cve/CVE-2026-70368
- https://bugzilla.redhat.com/show_bug.cgi?id=2462029
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.