CVE-2026-70367Stunnel: ssrf bypass in stunnel socks proxy via ipv4-mapped ipv6 loopback and…
A Server-Side Request Forgery (SSRF) bypass vulnerability exists in “stunnel” 5.79 and lower when configured in SOCKS proxy mode. This flaw allows a client to bypass intended localhost restrictions by using IPv4-mapped IPv6 addresses (e.g., “::ffff:127.0.0.1”) or unspecified addresses ("0.0.0.0", "::"), enabling access to loopback-only services on the "stunnel" host that should not be network-reachable.
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-70367 |
| Debian 13 | stunnel4 | Fix pending | DEBIAN-CVE-2026-70367 | |
| Debian 12 | stunnel4 | Fix pending | DEBIAN-CVE-2026-70367 | |
| 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-70367 |
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.25 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, if SOCKS proxying functionality is not required, disable the "protocol = socks" configuration in "stunnel". If SOCKS proxying is necessary, restrict access to the SOCKS listener by binding it to a trusted management network or localhost, and enforce client authentication or network ACL controls. Run "stunnel" in a container or network namespace where no other services are bound to localhost, or add firewall rules to restrict outgoing connections from "stunnel" to localhost.
References
- https://access.redhat.com/security/cve/CVE-2026-70367
- https://bugzilla.redhat.com/show_bug.cgi?id=2462083
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.