cve.bz

CVE-2026-75758 Unbounded recursion between Inspect.List charlist rendering and List.to_string/1 error path in Elixir

5.9 mediumEPSS 0.2%

Medium (5.9) in elixir-lang elixir. EPSS 0.2% estimated probability of exploitation activity in the next 30 days.

On this page
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 4.0

5.9 medium
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
EPSS
0.2% (unchanged from 0.2% a week ago; 0.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 14th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: partial, assessed 2026-08-28. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-674 Uncontrolled Recursion
Published
Modified
Assigned by
EEF (CNA)
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-75758 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-75758?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-75758?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-75758 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
elixir-lang elixirfrom 1.15.0-rc.0 before 1.18.5
elixir-lang elixirfrom 1.19.0-rc.0 before 1.19.6
elixir-lang elixirfrom 1.20.0-rc.0 before 1.20.4

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian13elixir-langno fix listedDEBIAN-CVE-2026-75758
Debian14elixir-lang1.20.4+dfsg-1DEBIAN-CVE-2026-75758
Ubuntu14.04:LTS, 16.04:LTS, 18.04:LTSelixirno fix listedUBUNTU-CVE-2026-75758
Alpinev3.24elixir1.19.6-r0ALPINE-CVE-2026-75758
Azure Linux3elixir1.16.1-3AZL-98220

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Alpine.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

Red Hat OpenStack Platform 18.0 ships elixir 1.19.5, which is affected by this vulnerability. Red Hat OpenStack Platform 16.2 and 17.1 ship elixir versions 1.9.1 and 1.11.3 respectively, which predate the introduction of the vulnerable code in version 1.15.0 and are therefore not affected.

Red Hat's mitigation

For Red Hat OpenStack Platform 18.0: Update elixir to version 1.19.6 or later. Applications that do not process untrusted input through the inspect/1, List.to_string/1, or List.to_charlist/1 functions are not vulnerable.

ProductPackageStateAdvisory
Red Hat OpenStack Platform 16.2elixirUnder investigation
Red Hat OpenStack Platform 17.1elixirUnder investigation
Red Hat OpenStack Platform 18.0elixirNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-75758.

Attack patterns (CAPEC)

  • CAPEC-230 Serialized Data with Nested Payloads Likelihood: Medium · Severity: High
  • CAPEC-231 Oversized Serialized Data Payloads Likelihood: Medium · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON