CVE-2026-75758
Unbounded recursion between Inspect.List charlist rendering and List.to_string/1 error path in Elixir
Check your servers for CVE-2026-75758
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-75758 affects elixir, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
Uncontrolled Recursion vulnerability in the Elixir standard library allows an attacker who controls a list passed to inspect/1, List.to_string/1, or List.to_charlist/1 to exhaust a BEAM node's memory.
Inspect.List's charlist branch in lib/elixir/lib/inspect.ex classifies a list as a charlist using List.ascii_printable?/2, which examines only the first :printable_limit (4096 by default) elements, and then calls IO.chardata_to_string/1 on the whole term. A list whose printable prefix exceeds that limit but which contains a later element that is not a code point (an atom, an out-of-range integer, or an improper tail) is therefore mis-classified, and the conversion raises ArgumentError. That conversion runs inside List.to_string/1, whose rescue clause builds its message by interpolating inspect(list), which re-enters the same branch and raises again. The nested inspection is an argument to raise, so the recursion is not in tail position and every level is retained: the process stack grows monotonically while each cycle re-walks the list, until the process is killed by max_heap_size or, by default, the node runs out of memory. List.to_charlist/1 has the same rescue shape.
Below the printable limit the inner inspect/1 sees the invalid element within its counter and renders the list in ordinary bracket form, so a single ArgumentError is raised and no recursion occurs.
This issue affects elixir: from 1.15.0-rc.0 before 1.18.5, from 1.19.0-rc.0 before 1.19.6, and from 1.20.0-rc.0 before 1.20.4.
Severity (CVSS)
CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
- Attack vector
- local: the attacker needs local access, or a user has to open a prepared file
- Attack complexity
- low: an attack works without special conditions
- Attack requirements
- present: an attack works only when the target is in a certain state or configuration
- Privileges required
- none: the attacker does not need an account
- User interaction
- none: nobody has to click or open anything
- Impact on the vulnerable system
- confidentiality none, integrity none, availability high: what an attacker can read, change or stop in the vulnerable component
- Impact on other systems
- confidentiality none, integrity none, availability none: what an attacker can read, change or stop beyond it
Exploitation
EPSS 0.23%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 15.2% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 28 Aug 2026):
- Exploitation
- poc: a proof of concept is public
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Weakness
- CWE-674 Uncontrolled Recursion
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
|
elixir
package
elixir |
affected from 1.15.0-rc.0, before 1.18.5 affected from 1.19.0-rc.0, before 1.19.6 affected from 1.20.0-rc.0, before 1.20.4
Other versions: unaffected
|
|
elixir
package
elixir-lang/elixir |
affected 9718f2b90ce086ff8614d5782f4ec528495c98dd and later (unaffected from 0bba5887577b1e328da825bd018815fdc519685a, unaffected from 1eff1acffd49bdcc0d7f57ca74c1603328eed68a, unaffected from 5230d73968f1b4969d2a2646786fa6c71475f5cc, unaffected from a983c8c043b1fbf1d95df78a29149222dac2988c)
Other versions: unaffected
|
Is my server affected?
Find the installed version of elixir and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i elixir
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2026-75758 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2026-75758RHEL, Rocky, Alma, Fedora
rpm -q elixir
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2026-75758Alpine
apk list --installed | grep -i elixirWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-75758
trivy image --scanners vuln IMAGE | grep CVE-2026-75758
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Patches and release notes
- Fix commit 0bba588 in elixir-lang/elixir github.com · patch
- Fix commit 1eff1ac in elixir-lang/elixir github.com · patch
- Fix commit 5230d73 in elixir-lang/elixir github.com · patch
- Fix commit a983c8c in elixir-lang/elixir github.com · patch
Exploits and proof of concept
- https://github.com/elixir-lang/elixir/security/advisories/GHSA-jf5q-v438-665c github.com · vendor advisory, related, exploit
Other references
- EEF CNA record for CVE-2026-75758 cna.erlef.org · related
- OSV record EEF-CVE-2026-75758 osv.dev · related
- Introducing commit 9718f2b in elixir-lang/elixir github.com · related
Source: the record CVE-2026-75758 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse