CVE-2026-59696
published medium CVSS 4.0 · 6.9uri_string does not bound the port component of a URI before integer conversion
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Erlang | — | stdlibOTP · 3.5 and later (affected · otp); changes: unaffected at 6.2.2.5, unaffected at 7.3.0.2, unaffected at 8.0.4 · Other versions: unaffected | Version-specific | Not stated | EEF |
| Erlang | — | otpOTP · 21.0 and later (affected · otp); changes: unaffected at 27.3.4.17, unaffected at 28.5.0.6, unaffected at 29.0.6 · Other versions: unaffected | Version-specific | Not stated | EEF |
| Erlang | — | erlang/otpOTP · 29a9dd0e17a97a3e6e46f0d08c6ba8f31db33f5e and later (affected · git); changes: unaffected at aba0fe8c2d700bf4ac94607cf7f00e53bbe4042d, unaffected at e3be1cfe9f6cedd0cd20d9905e05601dfb31c8aa · Other versions: unaffected | Version-specific | Not stated | EEF |
| Debian | trixie | erlang | Advisory build | 1:27.3.4.1+dfsg-1+deb13u4 | DSA-6580-1 |
Description
Improper Validation of Specified Quantity in Input vulnerability in Erlang/OTP stdlib allows a remote attacker to degrade availability by supplying a URI whose port component is a very long run of digits. uri_string:get_port/1 passes the port substring to binary_to_integer/1 with no length bound, catching only error:badarg, so a syntactically valid port of up to roughly 1.26 million digits converts successfully and costs the calling process hundreds of milliseconds of arbitrary-precision arithmetic. The conversion is reached from every authority-parsing path in uri_string:parse/1, including the host, registered-name, and IPv4 and IPv6 forms. parse/1 is the documented interface for parsing URIs, so any application that parses an attacker-supplied URI is exposed without further configuration. The conversion function is documented to accept integers of any size, so bounding the input is the caller's responsibility. This issue affects OTP from OTP 21.0 before OTP 27.3.4.17, OTP 28.5.0.6, and OTP 29.0.6, corresponding to stdlib from 3.5 before 6.2.2.5, 7.3.0.2, and 8.0.4.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 6.9 / 10
- Severity
- medium
- Provider
- EEF · cna
- Vector string
- CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Erlang | OTP | 3.5 and later (affected · otp); changes: unaffected at 6.2.2.5, unaffected at 7.3.0.2, unaffected at 8.0.4Default: unaffected | EEF · cna |
| Erlang | OTP | 21.0 and later (affected · otp); changes: unaffected at 27.3.4.17, unaffected at 28.5.0.6, unaffected at 29.0.6Default: unaffected | EEF · cna |
| Erlang | OTP | 29a9dd0e17a97a3e6e46f0d08c6ba8f31db33f5e and later (affected · git); changes: unaffected at aba0fe8c2d700bf4ac94607cf7f00e53bbe4042d, unaffected at e3be1cfe9f6cedd0cd20d9905e05601dfb31c8aaDefault: unaffected | EEF · cna |
Weaknesses
1- CWE-1284 CWE-1284 Improper Validation of Specified Quantity in Input
References
7- EEF CNA record for CVE-2026-59696 https://cna.erlef.org/cves/CVE-2026-59696.html
- Introducing commit 29a9dd0 in erlang/otp https://github.com/erlang/otp/commit/29a9dd0e17a97a3e6e46f0d08c6ba8f31db33f5e
- Fix commit aba0fe8 in erlang/otp https://github.com/erlang/otp/commit/aba0fe8c2d700bf4ac94607cf7f00e53bbe4042d
- Fix commit e3be1cf in erlang/otp https://github.com/erlang/otp/commit/e3be1cfe9f6cedd0cd20d9905e05601dfb31c8aa
- https://github.com/erlang/otp/security/advisories/GHSA-8qw4-2chm-mvj2
- OSV record EEF-CVE-2026-59696 https://osv.dev/vulnerability/EEF-CVE-2026-59696
- Erlang/OTP version ordering https://www.erlang.org/doc/system/versions.html#order-of-versions
Provider assertions
2EEF · cna
uri_string does not bound the port component of a URI before integer conversion
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 5895daf0df2426d23ca369efc4a4d5386b78d04df895eec33d00fb1c062cbac9
- Ingested
- 20 Nov 2026, 06:18:48 UTC
- Source record
- Official CVE record