IT SBIT Services
Schneeberger
DEEN
CVE tracker

modern-tar: Memory exhaustion via malformed octal size field

CVE-2026-109380High 8.7

← All vulnerabilities

Summary

modern-tar, a zero-dependency streaming tar parser and writer for JavaScript, contains a memory exhaustion flaw in versions 0.3.5 through 0.8.5. A crafted, optionally gzip-compressed archive passed to unpackTar() can produce negative entry sizes through non-octal bytes, causing data to be buffered indefinitely. This can exhaust process memory and suppress later entries. The attack requires no authentication if the application accepts untrusted archives, and the impact is limited to denial of service.

Affected

  • modern-tar 0.3.5 through 0.8.5 (npm package)
  • Transitive copies in applications and build tooling are also affected.

Fixed in

  • 0.8.6 (likely fix, based on downstream dependency updates; not yet confirmed by the vendor advisory)

Workaround

  • Unknown.
  • Do not pass untrusted archives to unpackTar() until the library has been upgraded.

Exploitation

  • No exploitation in the wild known.
  • No public proof of concept found.
  • CISA SSVC: exploitation none, automatable yes, technical impact partial.

Our recommendation

  • Search lockfiles and SBOMs for modern-tar versions 0.3.5 to 0.8.5, including transitive dependencies.
  • Upgrade to 0.8.6 or later and verify the fix against the vendor repository.
  • Check whether internet-facing services extract uploaded tar or tar.gz files with this library and prioritise them.
  • Monitor the vendor repository for advisories.

Public exploits

PoC-in-GitHub, Metasploit and Exploit-DB list nothing for this CVE.

Research sources

Researched and written up in English and German by an AI (Claude by Anthropic) based on NVD, CISA, EPSS and the sources listed. The vendor information is authoritative. Researched on 1 Nov 2026, 04:44.

Original description (NVD)

modern-tar 0.3.5 through 0.8.5 contains a memory exhaustion vulnerability that allows attackers to produce negative entry sizes via non-octal bytes parsed by readOctal(). Attackers can supply a crafted, optionally gzip-compressed, archive to unpackTar() that buffers chunks indefinitely, exhausting process memory and suppressing later entries.

NVD references (5)

Sources

The tracker combines official, freely usable data sources – updated continuously:

This product uses data from the NVD API but is not endorsed or certified by the NVD. EPSS data © FIRST.org.

Affected? We can help.

We check whether your systems are affected, install updates and close the gap – continuously with the System Health Checker if you wish.