Description
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.
Published: 2026-10-12
Score: 8.7 High
EPSS: < 1% Very Low
KEV: No
Impact: Denial of Service through memory exhaustion
Action: Patch
AI Analysis

Impact

The flaw is a memory exhaustion vulnerability in the modern-tar library that arises when readOctal() parses malformed archive entries. Non‑octal bytes in an entry’s size field are coerced into negative values, causing unpackTar() to repeatedly buffer the entry’s data. An attacker can craft a single or multiple entries, optionally gzip‑compressing the archive, so that the process’s memory grows without bound and later entries are suppressed.

Affected Systems

Affected systems are any installations of the modern‑tar npm package with a version between 0.3.5 and 0.8.5, inclusive. The repository owner is ayuhito, and the issue pertains to the tar/encoding.ts implementation in those releases.

Risk and Exploitability

The CVSS score of 8.7 reflects a high severity for a denial‑of‑service instability. No EPSS entry is available, and the vulnerability is not listed in the CISA KEV catalog. Attackers would supply a specifically crafted tar archive to the unpackTar() entry point; the vulnerability can be exploited in any context where an application relies on modern‑tar to extract data, such as HTTP uploads or filesystem package handling. No authentication or elevated privilege is required beyond the ability to supply the archive.

Generated by OpenCVE AI on October 13, 2026 at 01:42 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade modern‑tar to a version newer than 0.8.5, or apply the patch from commit 181c8cb.
  • Validate the size field of tar entries before unpacking, ensuring numeric bytes and rejecting non‑octal values.
  • Implement process memory limits (cgroup, OOM policies) to prevent a single process from exhausting host memory when using modern‑tar.

Generated by OpenCVE AI on October 13, 2026 at 01:42 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 13 Oct 2026 16:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Tue, 13 Oct 2026 07:45:00 +0000

Type Values Removed Values Added
First Time appeared Ayuhito
Ayuhito modern-tar
Vendors & Products Ayuhito
Ayuhito modern-tar

Tue, 13 Oct 2026 00:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-770
References
Metrics threat_severity

None

threat_severity

Important


Mon, 12 Oct 2026 21:00:00 +0000

Type Values Removed Values Added
Description 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.
Title modern-tar 0.3.5 through 0.8.5 Memory Exhaustion via Malformed Octal Size Field
Weaknesses CWE-1284
References
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}

cvssV4_0

{'score': 8.7, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N'}


Subscriptions

Ayuhito Modern-tar
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-10-13T15:40:11.463Z

Reserved: 2026-10-12T14:23:25.691Z

Link: CVE-2026-109380

cve-icon Vulnrichment

Updated: 2026-10-13T15:40:06.033Z

cve-icon NVD

Status : Deferred

Published: 2026-10-12T21:17:11.153

Modified: 2026-10-16T19:18:44.867

Link: CVE-2026-109380

cve-icon Redhat

Severity : Important

Publid Date: 2026-10-12T20:55:11Z

Links: CVE-2026-109380 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-10-13T07:25:17Z

Weaknesses
  • CWE-1284

    Improper Validation of Specified Quantity in Input

  • CWE-770

    Allocation of Resources Without Limits or Throttling