CVEfocus › CVE database › CVE-2026-70367

CVE-2026-70367Stunnel: ssrf bypass in stunnel socks proxy via ipv4-mapped ipv6 loopback and…

CVSS 5.4 MediumEPSS 0.2% (higher than 13% of CVEs)Published 2026-08-04Updated 2026-11-24Assigner: redhat

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.

CWE-918

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-70367
Debian 13stunnel4Fix pendingDEBIAN-CVE-2026-70367
Debian 12stunnel4Fix pendingDEBIAN-CVE-2026-70367
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-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.

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

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.