CVE-2026-96596
erl_tar:extract/2 loops forever on a GNU sparse member with a trailing hole
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 stdlib from 8.0 before 8.1.1, and rebar3 from 3.27.1 before 3.28.0, and hex from 2.4.2 before 2.5.3; hex_core: from 0.14.0 before 0.20.1.
Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.
Severity and exploitation evidence
EPSS: 0.213% · score date 2026-11-19. EPSS is an estimated probability over the next 30 days, not proof of exploitation.
CISA KEV: not included in the checked catalog; exploitation may still occur. Last checked: 2026-11-19T17:28:52.703Z. Public exploit availability is not used to set this status.
CVSS 4.0 · 5.9 · published by EEFCVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Assessment source · checked 2026-11-19T12:59:28.646Z
CVSS 4.0 · 5.9 · published by Ubuntu SecurityCVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Assessment source · checked 2026-11-19T16:52:44.646Z
Verification by field
| Field | Status | Checked at (UTC) | Source |
|---|---|---|---|
| kev | verified | 2026-11-19T17:28:52.703Z | CISA KEV |
| cvss | verified | 2026-11-19T12:59:28.646Z | CVE Program |
| epss | verified | 2026-11-19T16:04:57.117Z | FIRST EPSS |
| patches | unknown | unknown | unknown |
| affected | verified | 2026-11-19T12:59:28.646Z | CVE Program |
| lifecycle | verified | 2026-11-19T12:59:28.646Z | CVE Program |
Affected versions and configuration
Erlang OTP; modules: erl_tar; default status: unaffected: 29.0 to < 29.1.2 [affected; scheme: otp] Erlang OTP; modules: erl_tar; default status: unaffected: 8.0 to < 8.1.1 [affected; scheme: otp] Erlang OTP; modules: erl_tar; default status: unaffected: fbf2c7194f6fce4b7b66dc0bcaa4f6b4b85e088f to < 3086307f311b78b38644a7787a3aca6a3f95a9d5 [affected; scheme: git] erlang rebar3; modules: r3_hex_erl_tar, r3_hex_tarball; default status: unaffected: 3.27.1 to < 3.28.0 [affected; scheme: semver] erlang rebar3; modules: r3_hex_erl_tar, r3_hex_tarball; default status: unaffected: 23dbdb5d1f87f56902aef296c88a20049cd0c6e4 to < 310e2ec8c7dd3df05d67af2b7fae23f30fc523c4 [affected; scheme: git] hexpm hex_core; modules: hex_erl_tar, hex_tarball; default status: unaffected: 0.14.0 to < 0.20.1 [affected; scheme: semver] hexpm hex_core; modules: hex_erl_tar, hex_tarball; default status: unaffected: 13bb9fbba418a406af614790b8d5cd458259ee70 to < a2ece683e6e88a3ec95ad20b09aca426e08b372e [affected; scheme: git] hexpm hex; modules: mix_hex_erl_tar, mix_hex_tarball; default status: unaffected: 2.4.2 to < 2.5.3 [affected; scheme: semver] hexpm hex; modules: mix_hex_erl_tar, mix_hex_tarball; default status: unaffected: 5543a1919c709d8eb2b317f62aad76ca1eed375c to < * [affected; scheme: git]; changes: [{"at":"8e1067131a13949eff30623f31648a945ffd5418","status":"unaffected"},{"at":"7847c23d09ab52113614c3718e1e7d368743da5d","status":"unaffected"}]
Defaults, conditional configuration, package status and version schemes are retained below. A version range alone is not an exposure verdict.
Ubuntu Security · ubuntu-package · full conditions
[
{
"name": "erlang",
"debian": "https://tracker.debian.org/pkg/erlang",
"source": "https://ubuntu.com/security/cve?package=erlang",
"ubuntu": "https://packages.ubuntu.com/search?suite=all§ion=all&arch=any&searchon=sourcenames&keywords=erlang",
"statuses": [
{
"pocket": "security",
"status": "needs-triage",
"component": null,
"description": "",
"release_codename": "trusty"
},
{
"pocket": "security",
"status": "needs-triage",
"component": null,
"description": "",
"release_codename": "xenial"
},
{
"pocket": "security",
"status": "needs-triage",
"component": null,
"description": "",
"release_codename": "bionic"
},
{
"pocket": "security",
"status": "needs-triage",
"component": null,
"description": "",
"release_codename": "focal"
},
{
"pocket": "security",
"status": "needs-triage",
"component": null,
"description": "",
"release_codename": "jammy"
},
{
"pocket": "security",
"status": "needs-triage",
"component": null,
"description": "",
"release_codename": "noble"
},
{
"pocket": "security",
"status": "needs-triage",
"component": null,
"description": "",
"release_codename": "resolute"
},
{
"pocket": "security",
"status": "needs-triage",
"component": null,
"description": "",
"release_codename": "upstream"
},
{
"pocket": "security",
"status": "needs-triage",
"component": null,
"description": "",
"release_codename": "stonking"
}
]
}
]Archived source JSONCVE Program · cve-json · full conditions
{
"affected": [
{
"cpes": [
"cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*"
],
"vendor": "Erlang",
"modules": [
"erl_tar"
],
"product": "OTP",
"versions": [
{
"status": "affected",
"version": "29.0",
"lessThan": "29.1.2",
"versionType": "otp"
}
],
"packageURL": "pkg:software-id/erlang.org/otp",
"packageName": "otp",
"programFiles": [
"lib/stdlib/src/erl_tar.erl"
],
"defaultStatus": "unaffected",
"programRoutines": [
{
"name": "erl_tar:do_sparse_read/3"
},
{
"name": "erl_tar:stream_to_file_loop/3"
},
{
"name": "erl_tar:extract/1"
},
{
"name": "erl_tar:extract/2"
}
]
},
{
"cpes": [
"cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*"
],
"repo": "https://github.com/erlang/otp",
"vendor": "Erlang",
"modules": [
"erl_tar"
],
"product": "OTP",
"versions": [
{
"status": "affected",
"version": "8.0",
"lessThan": "8.1.1",
"versionType": "otp"
}
],
"packageURL": "pkg:otp/stdlib?repository_url=https:%2F%2Fgithub.com%2Ferlang%2Fotp&vcs_url=git%2Bhttps:%2F%2Fgithub.com%2Ferlang%2Fotp.git",
"packageName": "stdlib",
"programFiles": [
"src/erl_tar.erl"
],
"defaultStatus": "unaffected",
"programRoutines": [
{
"name": "erl_tar:do_sparse_read/3"
},
{
"name": "erl_tar:stream_to_file_loop/3"
},
{
"name": "erl_tar:extract/1"
},
{
"name": "erl_tar:extract/2"
}
]
},
{
"cpes": [
"cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*"
],
"repo": "https://github.com/erlang/otp",
"vendor": "Erlang",
"modules": [
"erl_tar"
],
"product": "OTP",
"versions": [
{
"status": "affected",
"version": "fbf2c7194f6fce4b7b66dc0bcaa4f6b4b85e088f",
"lessThan": "3086307f311b78b38644a7787a3aca6a3f95a9d5",
"versionType": "git"
}
],
"packageURL": "pkg:github/erlang/otp",
"packageName": "erlang/otp",
"programFiles": [
"lib/stdlib/src/erl_tar.erl"
],
"collectionURL": "https://github.com",
"defaultStatus": "unaffected",
"programRoutines": [
{
"name": "erl_tar:do_sparse_read/3"
},
{
"name": "erl_tar:stream_to_file_loop/3"
},
{
"name": "erl_tar:extract/1"
},
{
"name": "erl_tar:extract/2"
}
]
},
{
"cpes": [
"cpe:2.3:a:erlang:rebar3:*:*:*:*:*:*:*:*"
],
"repo": "https://github.com/erlang/rebar3",
"vendor": "erlang",
"modules": [
"r3_hex_erl_tar",
"r3_hex_tarball"
],
"product": "rebar3",
"versions": [
{
"status": "affected",
"version": "3.27.1",
"lessThan": "3.28.0",
"versionType": "semver"
}
],
"packageURL": "pkg:otp/rebar3?repository_url=https:%2F%2Fgithub.com%2Ferlang%2Frebar3&vcs_url=git%2Bhttps:%2F%2Fgithub.com%2Ferlang%2Frebar3.git",
"packageName": "rebar3",
"programFiles": [
"apps/rebar/src/vendored/r3_hex_erl_tar.erl",
"apps/rebar/src/vendored/r3_hex_tarball.erl"
],
"defaultStatus": "unaffected",
"programRoutines": [
{
"name": "r3_hex_erl_tar:do_sparse_read/3"
},
{
"name": "r3_hex_erl_tar:stream_to_file_loop/3"
},
{
"name": "r3_hex_erl_tar:extract/1"
},
{
"name": "r3_hex_erl_tar:extract/2"
},
{
"name": "r3_hex_tarball:unpack/2"
},
{
"name": "r3_hex_tarball:unpack/3"
},
{
"name": "r3_hex_tarball:unpack_docs/2"
},
{
"name": "r3_hex_tarball:unpack_docs/3"
}
]
},
{
"cpes": [
"cpe:2.3:a:erlang:rebar3:*:*:*:*:*:*:*:*"
],
"repo": "https://github.com/erlang/rebar3",
"vendor": "erlang",
"modules": [
"r3_hex_erl_tar",
"r3_hex_tarball"
],
"product": "rebar3",
"versions": [
{
"status": "affected",
"version": "23dbdb5d1f87f56902aef296c88a20049cd0c6e4",
"lessThan": "310e2ec8c7dd3df05d67af2b7fae23f30fc523c4",
"versionType": "git"
}
],
"packageURL": "pkg:github/erlang/rebar3",
"packageName": "erlang/rebar3",
"programFiles": [
"apps/rebar/src/vendored/r3_hex_erl_tar.erl",
"apps/rebar/src/vendored/r3_hex_tarball.erl"
],
"collectionURL": "https://github.com",
"defaultStatus": "unaffected",
"programRoutines": [
{
"name": "r3_hex_erl_tar:do_sparse_read/3"
},
{
"name": "r3_hex_erl_tar:stream_to_file_loop/3"
},
{
"name": "r3_hex_erl_tar:extract/1"
},
{
"name": "r3_hex_erl_tar:extract/2"
},
{
"name": "r3_hex_tarball:unpack/2"
},
{
"name": "r3_hex_tarball:unpack/3"
},
{
"name": "r3_hex_tarball:unpack_docs/2"
},
{
"name": "r3_hex_tarball:unpack_docs/3"
}
]
},
{
"cpes": [
"cpe:2.3:a:hexpm:hex_core:*:*:*:*:*:*:*:*"
],
"repo": "https://github.com/hexpm/hex_core",
"vendor": "hexpm",
"modules": [
"hex_erl_tar",
"hex_tarball"
],
"product": "hex_core",
"versions": [
{
"status": "affected",
"version": "0.14.0",
"lessThan": "0.20.1",
"versionType": "semver"
}
],
"packageURL": "pkg:hex/hex_core",
"packageName": "hex_core",
"programFiles": [
"src/hex_erl_tar.erl",
"src/hex_tarball.erl"
],
"collectionURL": "https://repo.hex.pm",
"defaultStatus": "unaffected",
"programRoutines": [
{
"name": "hex_erl_tar:do_sparse_read/3"
},
{
"name": "hex_erl_tar:stream_to_file_loop/3"
},
{
"name": "hex_erl_tar:extract/1"
},
{
"name": "hex_erl_tar:extract/2"
},
{
"name": "hex_tarball:unpack/2"
},
{
"name": "hex_tarball:unpack/3"
},
{
"name": "hex_tarball:unpack_docs/2"
},
{
"name": "hex_tarball:unpack_docs/3"
}
]
},
{
"cpes": [
"cpe:2.3:a:hexpm:hex_core:*:*:*:*:*:*:*:*"
],
"repo": "https://github.com/hexpm/hex_core",
"vendor": "hexpm",
"modules": [
"hex_erl_tar",
"hex_tarball"
],
"product": "hex_core",
"versions": [
{
"status": "affected",
"version": "13bb9fbba418a406af614790b8d5cd458259ee70",
"lessThan": "a2ece683e6e88a3ec95ad20b09aca426e08b372e",
"versionType": "git"
}
],
"packageURL": "pkg:github/hexpm/hex_core",
"packageName": "hexpm/hex_core",
"programFiles": [
"src/hex_erl_tar.erl",
"src/hex_tarball.erl"
],
"collectionURL": "https://github.com",
"defaultStatus": "unaffected",
"programRoutines": [
{
"name": "hex_erl_tar:do_sparse_read/3"
},
{
"name": "hex_erl_tar:stream_to_file_loop/3"
},
{
"name": "hex_erl_tar:extract/1"
},
{
"name": "hex_erl_tar:extract/2"
},
{
"name": "hex_tarball:unpack/2"
},
{
"name": "hex_tarball:unpack/3"
},
{
"name": "hex_tarball:unpack_docs/2"
},
{
"name": "hex_tarball:unpack_docs/3"
}
]
},
{
"cpes": [
"cpe:2.3:a:hexpm:hex:*:*:*:*:*:*:*:*"
],
"repo": "https://github.com/hexpm/hex",
"vendor": "hexpm",
"modules": [
"mix_hex_erl_tar",
"mix_hex_tarball"
],
"product": "hex",
"versions": [
{
"status": "affected",
"version": "2.4.2",
"lessThan": "2.5.3",
"versionType": "semver"
}
],
"packageURL": "pkg:otp/hex?repository_url=https:%2F%2Fgithub.com%2Fhexpm%2Fhex&vcs_url=git%2Bhttps:%2F%2Fgithub.com%2Fhexpm%2Fhex.git",
"packageName": "hex",
"programFiles": [
"src/mix_hex_erl_tar.erl",
"src/mix_hex_tarball.erl"
],
"defaultStatus": "unaffected",
"programRoutines": [
{
"name": "mix_hex_erl_tar:do_sparse_read/3"
},
{
"name": "mix_hex_erl_tar:stream_to_file_loop/3"
},
{
"name": "mix_hex_erl_tar:extract/1"
},
{
"name": "mix_hex_erl_tar:extract/2"
},
{
"name": "mix_hex_tarball:unpack/2"
},
{
"name": "mix_hex_tarball:unpack/3"
},
{
"name": "mix_hex_tarball:unpack_docs/2"
},
{
"name": "mix_hex_tarball:unpack_docs/3"
}
]
},
{
"cpes": [
"cpe:2.3:a:hexpm:hex:*:*:*:*:*:*:*:*"
],
"repo": "https://github.com/hexpm/hex",
"vendor": "hexpm",
"modules": [
"mix_hex_erl_tar",
"mix_hex_tarball"
],
"product": "hex",
"versions": [
{
"status": "affected",
"changes": [
{
"at": "8e1067131a13949eff30623f31648a945ffd5418",
"status": "unaffected"
},
{
"at": "7847c23d09ab52113614c3718e1e7d368743da5d",
"status": "unaffected"
}
],
"version": "5543a1919c709d8eb2b317f62aad76ca1eed375c",
"lessThan": "*",
"versionType": "git"
}
],
"packageURL": "pkg:github/hexpm/hex",
"packageName": "hexpm/hex",
"programFiles": [
"src/mix_hex_erl_tar.erl",
"src/mix_hex_tarball.erl"
],
"collectionURL": "https://github.com",
"defaultStatus": "unaffected",
"programRoutines": [
{
"name": "mix_hex_erl_tar:do_sparse_read/3"
},
{
"name": "mix_hex_erl_tar:stream_to_file_loop/3"
},
{
"name": "mix_hex_erl_tar:extract/1"
},
{
"name": "mix_hex_erl_tar:extract/2"
},
{
"name": "mix_hex_tarball:unpack/2"
},
{
"name": "mix_hex_tarball:unpack/3"
},
{
"name": "mix_hex_tarball:unpack_docs/2"
},
{
"name": "mix_hex_tarball:unpack_docs/3"
}
]
}
],
"additionalContainers": [
{
"title": "CISA ADP Vulnrichment",
"metrics": [
{
"other": {
"type": "ssvc",
"content": {
"id": "CVE-2026-96596",
"role": "CISA Coordinator",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"version": "2.0.3",
"timestamp": "2026-10-16T20:07:46.754736Z"
}
}
}
],
"providerMetadata": {
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP",
"dateUpdated": "2026-10-16T20:08:17.542Z"
}
}
]
}Archived source JSONCorrection evidence
Distribution packages and upstream releases are distinct. ESM channels may require the corresponding Ubuntu entitlement. Notes and branch ranges are not installable package versions. OSV fixed boundaries are ecosystem-specific version thresholds, not proof that a package is currently available or installed.
No correction has been verified in the connected records. This does not mean the system is secure or that no vendor correction exists.
Vendor notices and operational guidance
No connected vendor notice is available for this record.
Original sources and dates
- Ubuntu SecurityConsulted: 2026-11-19T16:52:44.646ZArchived source JSON
Source publication: 2026-10-14T17:20:00.000Z
Source modification: 2026-10-28T16:30:52.594ZDocument fingerprint
2b554f1c4043583da2ef99457bf2d2db321692bdd296c3650a7fec7bc7432f48 - CVE ProgramConsulted: 2026-11-19T12:59:28.646ZArchived source JSON
Source publication: 2026-10-14T16:56:18.530Z
Source modification: 2026-11-19T08:14:39.857ZDocument fingerprint
49be02dfce48605c23bf1b17a39a425294cbe4b7958d124adcee247f8dbf1145 - CISA KEVConsulted: 2026-11-19T17:28:52.703ZArchived source JSON
Source publication: not supplied
Source modification: 2026-11-18T19:17:41.0354ZDocument fingerprint
a35fdc67c7d9802988dcfc1d3ff1198da327948d1db122ab7692ac201055ac56 - FIRST EPSSConsulted: 2026-11-19T16:04:57.117ZArchived source JSON
Source publication: not supplied
Source modification: not suppliedDocument fingerprint
c69dd4f6cb71bc8755eaf58391a4437b9a607bb1a1871683b3277766e21e30c9
Official status history
- UNKNOWN → PUBLISHED · · evidence