# CVE-2026-140242: node-tar: non-finite PAX size (Infinity) bypasses validation, causing extraction entry loss and an uncaught exception when re-packing

- Severity: High 7.1 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:H/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2026-12-01T17:41:28.624Z
- Modified: 2026-12-02T01:45:51.636Z
- Also known as: GHSA-ph3c-p786-j4rp
- Weaknesses: CWE-1284
- Assigned by: GitHub_M

## Description

node-tar is a tar archive manipulation library for Node.js. From 7.0.0 until 7.5.24, tar: non-finite PAX size (Infinity) bypasses validation, causing extraction entry loss and an uncaught exception when re-packing. The affected security path includes tar, size, 17 size=Infinity\n. This issue is fixed in version 7.5.24.

(As written by CVE List.)

## Affected

- isaacs node-tar: >= 7.0.0, < 7.5.24
- tar (npm): from 7.0.0 before 7.5.24

## Every score

- GitHub_M: CVSS:4.0 7.1 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:H/SC:N/SI:N/SA:N`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:H/SC:N/SI:N/SA:N`

## References

- <https://github.com/isaacs/node-tar/security/advisories/GHSA-ph3c-p786-j4rp> (web)
- <https://github.com/isaacs/node-tar/commit/6b815b7c10be504a01af2369a270add7099542d8> (web)
- <https://github.com/isaacs/node-tar/releases/tag/v7.5.24> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-140242> (advisory)
- <https://github.com/isaacs/node-tar> (package)

## Sources

- CVE List: [CVE-2026-140242](https://www.cve.org/CVERecord?id=CVE-2026-140242), CVE Terms of Use, modified 2026-12-01
- GitHub Advisory Database: [GHSA-ph3c-p786-j4rp](https://github.com/advisories/GHSA-ph3c-p786-j4rp), CC-BY-4.0, modified 2026-12-02
- NVD: [CVE-2026-140242](https://nvd.nist.gov/vuln/detail/CVE-2026-140242), Public domain, modified 2026-12-01

---

Page: https://cve.day/CVE-2026-140242 · Whole record: https://cve.day/CVE-2026-140242.json · Rebuilt by cve.day 2026-12-02T01:57:25.768Z
