Technical impact
An infinite‑loop flaw (CWE-835) exists in Erlang/OTP’s erl_tar module, and in the bundled tar extractors shipped with hex_core, Hex, and rebar3. The loop is triggered by a GNU sparse member whose sparse map ends before its real size. During extraction, erl_tar:stream_to_file_loop/3 reads the file in 65 536‑byte chunks; the trailing‑hole clause attempts to read zero bytes without advancing the file position, causing the function to recurse forever, locking a scheduler slot and keeping the extraction process busy until it is killed. The {max_size,N} option only blocks the loop when N is below the real size of the member, and using the {memory,true} option bypasses the vulnerable code path. The vulnerability affects OTP releases from 29.0 up to, but not including, 29.1.2 (stdlib 8.0–8.1.1), rebar3 3.27.1–3.27.9, Hex 2.4.2–2.5.2, and hex_core 0.14.0–0.20.0; OTP 28 itself is not affected by stdlib, but applications running on OTP 28 that use older hex_core, Hex, or rebar3 tar extractors remain vulnerable.
Affected Systems
The flaw affects Erlang/OTP releases from 29.0 up to, but not including, 29.1.2, corresponding to stdlib from 8.0 up to 8.1.1. Affected are also rebar3 versions 3.27.1 through 3.27.9, Hex packages 2.4.2 through 2.5.2, and hex_core versions 0.14.0 through 0.20.0. OTP 28 is not affected by the standard library itself, but applications running on OTP 28 that use the bundled hex_core, Hex, or rebar3 tar extractors remain vulnerable.
Risk and Exploitability
The CVSS score of 5.9 indicates medium severity. No KEV entry and a very low EPSS score of <1% suggest that exploitation is unlikely at present, but the attack is straightforward: an attacker who can supply a crafted tar archive to the vulnerable function can trigger the infinite loop with minimal effort and no special privileges. The resulting denial of Service can starve a scheduler slot, cause the extraction process to hang, and potentially render the application or host unusable until the process is killed.