Description
Reliance on IP Address for Authentication vulnerability in Erlang/OTP ssl (inet_tls_dist module) allows unauthenticated bypass of the distribution-over-TLS LAN allowlist.

The inet_tls_dist:check_ip/1 function, which enforces a LAN allowlist for Erlang distribution over TLS, calls inet:sockname/1 instead of inet:peername/1 to obtain the peer's IP address. Because inet:sockname/1 returns the local socket address, both the local IP and the supposed peer IP resolve to the same value, causing the subnet mask comparison to always succeed regardless of the actual remote address. Any holder of a CA-signed TLS certificate can therefore bypass the LAN restriction and gain full Erlang distribution access to the node, including rpc:call/4 and code:load_binary/3.

This vulnerability is associated with program file lib/ssl/src/inet_tls_dist.erl.

This issue affects OTP from OTP 26.0 before OTP 29.0.2, OTP 28.5.0.2 and OTP 27.3.4.13, corresponding to ssl from 11.0 before 11.7.2, 11.6.0.2 and 11.2.12.9.
Published: 2026-06-10
Score: 7.5 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The inet_tls_dist:check_ip/1 function attempts to enforce a LAN allowlist for Erlang distribution over TLS, but mistakenly calls inet:sockname/1 instead of inet:peername/1 to obtain the connecting node’s IP address. Because inet:sockname/1 returns the local socket address, the local IP and the presumed peer IP are identical, so the subnet mask comparison always succeeds. The result is an unauthenticated bypass of the LAN restriction for any party presenting a CA‑signed TLS certificate, granting full distribution access—including rpc:call/4 and code:load_binary/3—which effectively enables remote code execution.

Affected Systems

The vulnerability affects Erlang/OTP releases 26.0 through 28.5.0.2 and 27.3.4.13, up to but not including OTP 29.0.2. The corresponding SSL library versions are 11.0 up to before 11.7.2, 11.6.0.2, and 11.2.12.9. All installations of these OTP and SSL versions are susceptible.

Risk and Exploitability

The CVSS score of 7.5 classifies the vulnerability as high severity, and the EPSS score of < 1 % indicates a very low exploitation probability. The vulnerability is not listed in the CISA KEV catalog. Attackers can exploit the flaw over the network by presenting a valid CA‑signed TLS certificate configured for Erlang distribution; no additional privileges are required. The flaw permits unauthenticated bypass of the LAN allowlist, allowing full distribution access, including rpc:call/4 and code:load_binary/3, effectively enabling remote code execution.

Generated by OpenCVE AI on August 4, 2026 at 08:28 UTC.

Remediation

Vendor Workaround

Implement a custom verify_fun SSL option that correctly checks the peer IP address using inet:peername/1 on the socket.


OpenCVE Recommended Actions

  • Upgrade Erlang/OTP to version 29.0.2 or later to receive the corrected network logic.
  • Upgrade the Erlang SSL library to version 11.7.2 or later to include the fix for the check_ip function.
  • Configure the SSL layer with a custom verify_fun that uses inet:peername/1 to validate the connecting node’s IP address, thereby enforcing the LAN allowlist even before the patch is applied.
  • If upgrade is not immediately feasible, deploy the custom verify_fun as a temporary mitigation while maintaining strict control over trusted client certificates.

Generated by OpenCVE AI on August 4, 2026 at 08:28 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 24 Jul 2026 18:30:00 +0000

Type Values Removed Values Added
Description Reliance on IP Address for Authentication vulnerability in Erlang/OTP ssl (inet_tls_dist module) allows unauthenticated bypass of the distribution-over-TLS LAN allowlist. The inet_tls_dist:check_ip/1 function, which enforces a LAN allowlist for Erlang distribution over TLS, calls inet:sockname/1 instead of inet:peername/1 to obtain the peer's IP address. Because inet:sockname/1 returns the local socket address, both the local IP and the supposed peer IP resolve to the same value, causing the subnet mask comparison to always succeed regardless of the actual remote address. Any holder of a CA-signed TLS certificate can therefore bypass the LAN restriction and gain full Erlang distribution access to the node, including rpc:call/4 and code:load_binary/3. This vulnerability is associated with program file lib/ssl/src/inet_tls_dist.erl. This issue affects OTP from OTP 26.0 before 29.0.2, 28.5.0.2 and 27.3.4.13 corresponding to ssl from 11.0 before 11.7.2, 11.6.0.2 and 11.2.12.9. Reliance on IP Address for Authentication vulnerability in Erlang/OTP ssl (inet_tls_dist module) allows unauthenticated bypass of the distribution-over-TLS LAN allowlist. The inet_tls_dist:check_ip/1 function, which enforces a LAN allowlist for Erlang distribution over TLS, calls inet:sockname/1 instead of inet:peername/1 to obtain the peer's IP address. Because inet:sockname/1 returns the local socket address, both the local IP and the supposed peer IP resolve to the same value, causing the subnet mask comparison to always succeed regardless of the actual remote address. Any holder of a CA-signed TLS certificate can therefore bypass the LAN restriction and gain full Erlang distribution access to the node, including rpc:call/4 and code:load_binary/3. This vulnerability is associated with program file lib/ssl/src/inet_tls_dist.erl. This issue affects OTP from OTP 26.0 before OTP 29.0.2, OTP 28.5.0.2 and OTP 27.3.4.13, corresponding to ssl from 11.0 before 11.7.2, 11.6.0.2 and 11.2.12.9.

Thu, 18 Jun 2026 16:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-303
References
Metrics threat_severity

None

threat_severity

Moderate


Mon, 15 Jun 2026 18:30:00 +0000

Type Values Removed Values Added
First Time appeared Erlang erlang\/ssl
CPEs cpe:2.3:a:erlang:erlang\/ssl:*:*:*:*:*:*:*:*
Vendors & Products Erlang erlang\/ssl
Metrics cvssV3_1

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


Wed, 10 Jun 2026 20:45:00 +0000

Type Values Removed Values Added
First Time appeared Erlang otp
Vendors & Products Erlang otp

Wed, 10 Jun 2026 17:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Wed, 10 Jun 2026 16:00:00 +0000

Type Values Removed Values Added
Description Reliance on IP Address for Authentication vulnerability in Erlang/OTP ssl (inet_tls_dist module) allows unauthenticated bypass of the distribution-over-TLS LAN allowlist. The inet_tls_dist:check_ip/1 function, which enforces a LAN allowlist for Erlang distribution over TLS, calls inet:sockname/1 instead of inet:peername/1 to obtain the peer's IP address. Because inet:sockname/1 returns the local socket address, both the local IP and the supposed peer IP resolve to the same value, causing the subnet mask comparison to always succeed regardless of the actual remote address. Any holder of a CA-signed TLS certificate can therefore bypass the LAN restriction and gain full Erlang distribution access to the node, including rpc:call/4 and code:load_binary/3. This vulnerability is associated with program file lib/ssl/src/inet_tls_dist.erl. This issue affects OTP from OTP 26.0 before 29.0.2, 28.5.0.2 and 27.3.4.13 corresponding to ssl from 11.0 before 11.7.2, 11.6.0.2 and 11.2.12.9.
Title Distribution-over-TLS LAN allowlist silently bypassed due to sockname/peername confusion in inet_tls_dist
First Time appeared Erlang
Erlang erlang\/otp
Weaknesses CWE-1025
CWE-863
CPEs cpe:2.3:a:erlang:erlang\/otp:*:*:*:*:*:*:*:*
Vendors & Products Erlang
Erlang erlang\/otp
References
Metrics cvssV4_0

{'score': 7.5, 'vector': 'CVSS:4.0/AV:A/AC:H/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}


Subscriptions

Erlang Erlang\/otp Erlang\/ssl Otp
cve-icon MITRE

Status: PUBLISHED

Assigner: EEF

Published:

Updated: 2026-07-24T14:15:28.298Z

Reserved: 2026-05-25T20:44:10.697Z

Link: CVE-2026-48860

cve-icon Vulnrichment

Updated: 2026-06-10T16:23:27.427Z

cve-icon NVD

Status : Analyzed

Published: 2026-06-10T16:17:12.503

Modified: 2026-06-15T18:24:03.653

Link: CVE-2026-48860

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-06-10T14:35:49Z

Links: CVE-2026-48860 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-04T08:30:05Z

Weaknesses
  • CWE-1025

    Comparison Using Wrong Factors

  • CWE-303

    Incorrect Implementation of Authentication Algorithm

  • CWE-863

    Incorrect Authorization