CVE-2026-109380
modern-tar 0.3.5 through 0.8.5 Memory Exhaustion via Malformed Octal Size Field
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.
Affected Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.mvnpm » modern-tarpreliminary | < 181c8cb75351867535057817ada4802a90fe416e>= 0.3.5, <= 0.8.5 | 181c8cb75351867535057817ada4802a90fe416e |
Blast radius
Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
References
| Advisory | CVE record CVE-2026-109380 | github.com |
| Advisory | NVD CVE-2026-109380 | nvd.nist.gov |
| Advisory | advisories/modern-tar-0.3.5-through-0.8.5-memory-exhaustion-via-malformed-octal-size-field | vulncheck.com |
| Fix | ayuhito/modern-tar commit 181c8cb | github.com |
| Fix | ayuhito/modern-tar pull request #195 | github.com |
| Article | ayuhito/modern-tar encoding.ts | github.com |
| Package | ayuhito/modern-tar | github.com |
