Description
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.
Published: 2026-08-04
Score: 5.4 Medium
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability in stunnel 5.79 and earlier enables a Server‑Side Request Forgery attack when the DNS mapping for a client request includes an IPv4‑mapped IPv6 address such as "::ffff:127.0.0.1" or an unspecified address like "0.0.0.0" or "::". These special addresses cause stunnel, running in SOCKS proxy mode, to make a connection to the local host instead of the intended remote target, thereby exposing loopback‑only services to an external client. The flaw does not allow arbitrary code execution, but it can lead to information disclosure or service interaction that should be limited to internal use, representing a medium‑severity risk.

Affected Systems

The affected software is the stunnel program (Open‑Source SSL/TLS tunneling daemon). Versions up to and including 5.79 are vulnerable when configured to provide a SOCKS proxy. No specific vendor‑product names are listed beyond the stunnel package itself, and the vulnerability is present whenever stunnel is operational in this mode.

Risk and Exploitability

The CVSS score of 5.4 indicates medium severity. The EPSS score is not available, and the vulnerability is not listed in the CISA KEV catalog, suggesting no publicly known exploits yet. The likely attack vector is remote: an attacker who can reach the stunnel SOCKS endpoint can craft a request using the special addresses to force the daemon to connect to localhost. Lack of authentication or network segmentation around the stunnel service increases the risk, while proper firewall limits and isolation mitigate the attacker’s ability to reach the vulnerable endpoint.

Generated by OpenCVE AI on August 4, 2026 at 19:14 UTC.

Remediation

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


OpenCVE Recommended Actions

  • Upgrade stunnel to a version newer than 5.79 that contains the SSRF fix. If a newer release is not yet available, consider upgrading your operating system or packaging source.
  • Disable or remove the SOCKS proxy functionality if it is not required for your environment. Avoid exposing the stunnel SOCKS proxy to untrusted networks.
  • Configure firewall rules or network segmentation to block traffic that targets the stunnel port from untrusted hosts, or to drop packets whose destination address is ::ffff:127.0.0.1, 0.0.0.0, or ::.

Generated by OpenCVE AI on August 4, 2026 at 19:14 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 04 Aug 2026 15:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Tue, 04 Aug 2026 14:15:00 +0000

Type Values Removed Values Added
First Time appeared Stunnel
Stunnel stunnel
Vendors & Products Stunnel
Stunnel stunnel

Tue, 04 Aug 2026 14:00:00 +0000

Type Values Removed Values Added
Title stunnel: SSRF bypass in stunnel SOCKS proxy via IPv4-mapped IPv6 loopback and unspecified addresses allows access to loopback-only services Stunnel: ssrf bypass in stunnel socks proxy via ipv4-mapped ipv6 loopback and unspecified addresses allows access to loopback-only services
First Time appeared Redhat
Redhat enterprise Linux
CPEs cpe:/o:redhat:enterprise_linux:10
cpe:/o:redhat:enterprise_linux:6
cpe:/o:redhat:enterprise_linux:7
cpe:/o:redhat:enterprise_linux:8
cpe:/o:redhat:enterprise_linux:9
Vendors & Products Redhat
Redhat enterprise Linux
References

Tue, 04 Aug 2026 12:15:00 +0000

Type Values Removed Values Added
Description 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.
Title stunnel: SSRF bypass in stunnel SOCKS proxy via IPv4-mapped IPv6 loopback and unspecified addresses allows access to loopback-only services
Weaknesses CWE-918
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.4, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N'}

threat_severity

Moderate


Subscriptions

Redhat Enterprise Linux
Stunnel Stunnel
cve-icon MITRE

Status: PUBLISHED

Assigner: redhat

Published:

Updated: 2026-08-04T14:50:38.160Z

Reserved: 2026-08-04T07:03:23.572Z

Link: CVE-2026-70367

cve-icon Vulnrichment

Updated: 2026-08-04T14:49:53.911Z

cve-icon NVD

No data.

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-08-04T10:29:57Z

Links: CVE-2026-70367 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-04T19:15:03Z

Weaknesses
  • CWE-918

    Server-Side Request Forgery (SSRF)