CVE-2026-48860: CWE-1025 Comparison Using Wrong Factors in Erlang OTP
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.
AI Analysis
Technical Summary
The vulnerability arises because the inet_tls_dist:check_ip/1 function uses inet:sockname/1 to obtain the IP address for LAN allowlist enforcement instead of inet:peername/1. Since inet:sockname/1 returns the local socket address, the comparison against the subnet mask always succeeds, effectively bypassing the LAN allowlist. This allows an attacker with a CA-signed TLS certificate to bypass network restrictions and gain full Erlang distribution access, including remote procedure calls and code loading. The affected code is in lib/ssl/src/inet_tls_dist.erl. Versions affected include OTP from 26.0 up to but not including 29.0.2, OTP 28.5.0.2, OTP 27.3.4.13, and ssl from 11.0 up to but not including 11.7.2, 11.6.0.2, and 11.2.12.9.
Potential Impact
An attacker possessing a CA-signed TLS certificate can bypass the LAN allowlist restriction for Erlang distribution over TLS, gaining unauthorized full access to the node's Erlang distribution capabilities. This includes the ability to perform remote procedure calls (rpc:call/4) and load arbitrary code (code:load_binary/3), potentially leading to full compromise of the affected Erlang node.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. No official fix or patch links are provided in the available data. Until a patch is available, restrict access to trusted networks and carefully control issuance and use of CA-signed TLS certificates to limit potential exploitation.
CVE-2026-48860: CWE-1025 Comparison Using Wrong Factors in Erlang OTP
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.
CVSS v4.0
Score 7.5high
Affected software
pkg:github/erlang/otpcpe:2.3:a:erlang:erlang\/otp:*:*:*:*:*:*:*:*Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability arises because the inet_tls_dist:check_ip/1 function uses inet:sockname/1 to obtain the IP address for LAN allowlist enforcement instead of inet:peername/1. Since inet:sockname/1 returns the local socket address, the comparison against the subnet mask always succeeds, effectively bypassing the LAN allowlist. This allows an attacker with a CA-signed TLS certificate to bypass network restrictions and gain full Erlang distribution access, including remote procedure calls and code loading. The affected code is in lib/ssl/src/inet_tls_dist.erl. Versions affected include OTP from 26.0 up to but not including 29.0.2, OTP 28.5.0.2, OTP 27.3.4.13, and ssl from 11.0 up to but not including 11.7.2, 11.6.0.2, and 11.2.12.9.
Potential Impact
An attacker possessing a CA-signed TLS certificate can bypass the LAN allowlist restriction for Erlang distribution over TLS, gaining unauthorized full access to the node's Erlang distribution capabilities. This includes the ability to perform remote procedure calls (rpc:call/4) and load arbitrary code (code:load_binary/3), potentially leading to full compromise of the affected Erlang node.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. No official fix or patch links are provided in the available data. Until a patch is available, restrict access to trusted networks and carefully control issuance and use of CA-signed TLS certificates to limit potential exploitation.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- EEF
- Date Reserved
- 2026-05-25T20:44:10.697Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a298ad7c9170919df367449
Added to database: 06/10/2026, 16:03:35 UTC
Last enriched: 07/24/2026, 21:36:08 UTC
Last updated: 07/31/2026, 19:22:59 UTC
Views: 110
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.