cve.bz

CVE-2026-96596 Infinite Loop

5.9 mediumEPSS 0.2%Fix available

Medium (5.9). EPSS 0.2% estimated probability of exploitation activity in the next 30 days. Fixed in hex_core 0.20.1.

On this page
Loop with Unreachable Exit Condition ('Infinite Loop') vulnerability in Erlang OTP stdlib (erl_tar module), hexpm hex_core (hex_erl_tar module), hexpm hex (mix_hex_erl_tar module) and erlang rebar3 (r3_hex_erl_tar module) allows an attacker who supplies a tar archive to cause a denial of service via a crafted GNU sparse member. When erl_tar:extract/1,2 writes a member to disk, erl_tar:stream_to_file_loop/3 reads it in chunks of 65536 bytes by default. For a GNU sparse member whose sparse map ends before its real size, erl_tar:do_sparse_read/3 matches its trailing-hole clause before its zero-length clause. After the chunk is used up, the trailing-hole clause reads zero bytes, does not advance the position, and recurses forever. A 2048-byte archive keeps the extracting process and one scheduler busy until the process is killed. The {max_size, N} option prevents this only when N is below the real size of the member. Extraction with the memory option is not affected. hex_core ships its own copy of erl_tar as hex_erl_tar, and Hex and rebar3 ship hex_core with prefixed module names (mix_hex_erl_tar and r3_hex_erl_tar). These copies contain the same code and do not call stdlib's erl_tar, so they are affected on any OTP version. OTP 28 is not affected, but an application running on OTP 28 is affected if it extracts archives through an affected version of hex_core, Hex or rebar3. This issue affects OTP from OTP 29.0 before OTP 29.1.2, corresponding to rebar3 from 3.27.1 before 3.28.0, and stdlib from 8.0 before 8.1.1, and hex from 2.4.2 before 2.5.3; hex_core: from 0.14.0 before 0.20.1.

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; 12th percentile. Scored 2026-11-17. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2026-10-16. 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-835 Loop with Unreachable Exit Condition (Infinite Loop)
Published
Modified
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-96596 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-96596?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-96596?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-96596 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
erlang rebar3from 3.27.1 before 3.28.0
hexpm hex_corefrom 0.14.0 before 0.20.1
Erlang OTPfrom 29.0 before 29.1.2
Erlang OTPfrom 8.0 before 8.1.1
hexpm hexfrom 2.4.2 before 2.5.3

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
EEF-CVE-2026-96596Hexhex_core>=0.14.0 <0.20.10.20.1
EEF-CVE-2026-96596no fix published
EEF-CVE-2026-96596v0.20.0, v0.19.0, v0.18.0, v0.17.0, v0.16.1 and 4 moreno fix published
EEF-CVE-2026-96596no fix published
EEF-CVE-2026-96596v2.5.2, v2.5.1, v2.5.0, v2.4.2no fix published

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian14erlang1:29.1.2+dfsg-1DEBIAN-CVE-2026-96596
Debian14erlang-hex2.5.3-2DEBIAN-CVE-2026-96596
Ubuntu22.04:LTS, Pro:14.04:LTS, Pro:16.04:LTS and 2 moreerlangno fix listedUBUNTU-CVE-2026-96596
Ubuntu24.04:LTS, 26.04:LTS, 26.10erlang, erlang-hexno fix listedUBUNTU-CVE-2026-96596
Azure Linux3erlangno fix listedAZL-108207

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., 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.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This vulnerability is rated as Moderate impact because exploitation requires an application or user to extract an untrusted archive, and the resulting impact is confined to a denial of service through CPU exhaustion without affecting data confidentiality or integrity. In Red Hat environments, Erlang is typically deployed within container images or specific development toolchains rather than ubiquitous base system daemons. Systems that only handle trusted archives or do not perform disk extraction using the affected Erlang modules are not exposed to this risk.

ProductPackageStateAdvisory
Red Hat Hardened Imageserlang27Not 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-96596.

References

Check your stackJSON