CVE-2026-75758: CWE-674 Uncontrolled Recursion in elixir-lang elixir
Description
CVE-2026-75758 is an uncontrolled recursion vulnerability in the Elixir standard library affecting functions inspect/1, List.to_string/1, and List.to_charlist/1. It occurs when a specially crafted list with a printable prefix exceeding 4096 elements but containing invalid elements later causes repeated nested inspections, leading to process stack growth and potential memory exhaustion of the BEAM node. This vulnerability affects specific release candidate and stable versions of Elixir from 1.15.0-rc.0 up to but not including 1.18.5, 1.19.0-rc.0 up to but not including 1.19.6, and 1.20.0-rc.0 up to but not including 1.20.4.
CVSS v4.0
Score 5.9medium
Affected software
elixir-lang
elixir
elixir-lang
elixir
pkg:github/elixircpe:2.3:a:elixir-lang:elixir:*:*:*:*:*:*:*:*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 arises because Inspect.List's charlist classification uses List.ascii_printable?/2 to check only the first 4096 elements of a list. If the list's printable prefix exceeds this limit but contains invalid elements later (such as atoms, out-of-range integers, or improper tails), the conversion to string raises an ArgumentError. The rescue clause in List.to_string/1 then attempts to build an error message by recursively calling inspect/1 on the same list, causing uncontrolled recursion that grows the process stack and eventually exhausts memory. List.to_charlist/1 exhibits the same behavior. Versions affected are from 1.15.0-rc.0 before 1.18.5, 1.19.0-rc.0 before 1.19.6, and 1.20.0-rc.0 before 1.20.4.
Potential Impact
An attacker who can supply a crafted list to the affected functions can cause uncontrolled recursion leading to memory exhaustion of the BEAM node process. This can result in denial of service by crashing the process or exhausting node memory resources. There is no indication of code execution or privilege escalation. The CVSS 4.0 score is 5.9 (medium severity), reflecting local attack vector with partial attack complexity and high impact on availability.
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 data. Users should monitor the official Elixir project advisories for updates and apply any released patches promptly. Until a fix is available, avoid passing untrusted or crafted lists to inspect/1, List.to_string/1, and List.to_charlist/1 to mitigate risk.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- EEF
- Date Reserved
- 2026-08-19T09:00:01.955Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6a91ab5dacd9273b490abfdd
Added to database: 08/28/2026, 15:38:05 UTC
Last enriched: 09/09/2026, 22:37:58 UTC
Last updated: 10/11/2026, 06:48:18 UTC
Views: 57
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.