CVE-2026-59696: CWE-1284 Improper Validation of Specified Quantity in Input in Erlang OTP
Description
CVE-2026-59696 is a medium severity vulnerability in Erlang/OTP's stdlib where improper validation of the port component in a URI allows a remote attacker to degrade service availability. The vulnerability arises because the function uri_string:get_port/1 converts a very long numeric port string to an integer without length bounds, causing excessive CPU consumption. This affects all applications parsing attacker-supplied URIs using uri_string:parse/1. The issue impacts OTP versions from 21.0 up to but not including 27.3.4.17, 28.0 up to 28.5.0.6, and 29.0 up to 29.0.6, as well as corresponding stdlib versions. No exploits are known in the wild, and no explicit patch links are provided in the data.
CVSS v4.0
Score 6.9medium
Affected software
Erlang
OTP
Erlang
OTP
Erlang
OTP
pkg:github/stdlibcpe: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.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in Erlang/OTP stdlib involves improper validation of the port substring in URIs parsed by uri_string:get_port/1. This function passes the port substring to binary_to_integer/1 without limiting input length, allowing syntactically valid but extremely long numeric ports (up to approximately 1.26 million digits) to be processed. This results in high CPU usage due to arbitrary-precision arithmetic, degrading the availability of the affected process. The vulnerability is reachable through all authority-parsing paths in uri_string:parse/1, which is the documented URI parsing interface, exposing any application that parses attacker-controlled URIs. Affected versions include OTP 21.0 before 27.3.4.17, OTP 28.0 before 28.5.0.6, OTP 29.0 before 29.0.6, and corresponding stdlib versions 3.5 before 6.2.2.5, 7.0 before 7.3.0.2, and 8.0 before 8.0.4.
Potential Impact
An attacker can supply a URI with an extremely long numeric port component, causing the vulnerable function to perform expensive arbitrary-precision integer conversion. This leads to significant CPU consumption and delays, degrading the availability of the Erlang process handling the URI parsing. There is no indication of privilege escalation, data disclosure, or code execution. The impact is limited to denial of service via resource exhaustion.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is applied, applications should avoid parsing untrusted URIs or implement input validation to limit the length of the port component before passing it to uri_string:get_port/1. Monitoring and rate-limiting URI parsing requests may help reduce exposure.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- EEF
- Date Reserved
- 2026-07-06T14:05:47.003Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6a96e6ecacd9273b49d71679
Added to database: 09/01/2026, 14:53:32 UTC
Last enriched: 09/15/2026, 01:22:12 UTC
Last updated: 10/15/2026, 06:48:17 UTC
Views: 79
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.