CVEMETERBack to radar
OFFICIAL RECORD · Erlang/Elixir

CVE-2026-96596

PUBLISHEDOfficial status check: verifiedCVSS 4.0: 5.9 · medium

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 EEF
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
Assessment source · checked 2026-11-19T12:59:28.646Z

CVSS 4.0 · 5.9 · published by Ubuntu Security
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
Assessment source · checked 2026-11-19T16:52:44.646Z

Verification by field

FieldStatusChecked at (UTC)Source
kevverified2026-11-19T17:28:52.703ZCISA KEV
cvssverified2026-11-19T12:59:28.646ZCVE Program
epssverified2026-11-19T16:04:57.117ZFIRST EPSS
patchesunknownunknownunknown
affectedverified2026-11-19T12:59:28.646ZCVE Program
lifecycleverified2026-11-19T12:59:28.646ZCVE 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&section=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 JSON
CVE 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 JSON

Correction 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

Official status history