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 products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| ayuhito | modern-tar | 0.3.5 – ≤ 0.8.5 | — |
References
- GitHub Pull Request #195 issue-tracking patch
- Patch Commit patch
- Vulnerable code in encoding.ts technical-description
- https://github.com/ayuhito/modern-tar product
- VulnCheck Advisory: modern-tar 0.3.5 through 0.8.5 Memory Exhaustion via Malformed Octal Size Field third-party-advisory