# CVE-2026-59874: node-tar: Negative tar entry size causes infinite loop in archive replace

- Priority: **Prioritise**
- Reason: Public exploit (GitHub, Date unknown)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2026-07-08 · Modified: 2026-07-08
- Aliases: UBUNTU-CVE-2026-59874, DEBIAN-CVE-2026-59874, CGA-299p-7g48-hwxv, CGA-3gc2-pc28-9286, CGA-4jjp-gjfp-f9q3, CGA-4wmw-m24v-c63p, CGA-5pg6-rpf8-w9vh, CGA-5q2c-qmhj-7mmg, CGA-66j4-8mqm-cv9m, CGA-69fm-qhfc-6583, CGA-6g33-pr5x-h7c4, CGA-6m7w-5v9q-rrh6, CGA-756w-x636-r36q, CGA-7933-v5hh-h5m7, CGA-92m5-7ccg-7x2j, CGA-f3hp-28w9-55ww, CGA-frwr-rfhg-fjh4, CGA-fvgq-g5c4-x44x, CGA-g3qm-9rjv-46qh, CGA-gw93-xj28-4c7h, CGA-j524-2wxf-94c9, CGA-j7qp-v7gh-w7c4, CGA-jh5r-w458-x8g6, CGA-jxrc-c7m8-w98j, CGA-mwcj-7r6q-mvp5, CGA-r9fr-vrjw-gmfj, CGA-rgvw-wxr9-wrv8, CGA-rmvh-x9m4-prrp, CGA-v4qx-5ghm-4cj5, CGA-x27m-g72g-g85j, GHSA-8x88-c5mf-7j5w, CGA-243w-jc8g-w7xx, CGA-249f-8gx8-p5fr, CGA-27hf-wx88-pm4f, CGA-28qh-cw34-mwcp, CGA-2hrj-9x38-g52h, CGA-2p75-2358-wr79, CGA-2v5h-fvg8-qcm6, CGA-2vvg-4x2r-xgqc, CGA-2x4q-ph79-9qgg, CGA-33f2-gw92-hqcm, CGA-3766-jgjc-9w2r, CGA-3m3x-3mw8-c576, CGA-3vmr-qgcw-h7wr, CGA-42jh-5wx9-5p99, CGA-42wr-gh6p-prqf, CGA-45rc-v95g-2m94, CGA-46j8-g92h-3cqx, CGA-4cxf-qj7r-fjw7, CGA-4p7h-j6vv-pqcf, CGA-4qq3-85qm-32p2, CGA-5875-w36m-gg3h, CGA-5h3c-gw68-hh32, CGA-5j35-5mf5-pjhx, CGA-5pcp-h5w5-6fmr, CGA-5rc2-g46m-8wvj, CGA-6hw9-6q78-mh6w, CGA-6p7m-6vjr-8224, CGA-6w27-w2f5-r79g, CGA-6xhr-cf73-8pm2, CGA-72vp-jm2q-7w2p, CGA-7g8p-pq45-x884, CGA-7qmc-42vj-mqj6, CGA-7rxm-c5jx-wmq2, CGA-7xjg-737v-v6ww, CGA-8989-9xw5-22vv, CGA-89m6-hmpv-xr93, CGA-8fpc-m75q-pgvj, CGA-8jx6-6g37-ccfw, CGA-8pjw-f96j-q9v3, CGA-8r9p-mwqv-vgp2, CGA-8rc8-mxwg-mjv2, CGA-8ww7-j32f-h8x5, CGA-8xmr-5whv-q9q4, CGA-9mj9-q9hr-pq36, CGA-9mvg-8mpm-2m7m, CGA-c49c-8mmj-c238, CGA-c52g-9jg2-9x2m, CGA-cgq5-wg35-h257, CGA-chq8-v8ph-r6v3, CGA-f4x9-8x7f-58pw, CGA-f873-499q-2mwx, CGA-ffvp-pmvg-q886, CGA-fj6f-7cq9-g4x9, CGA-fmhr-p5jh-mm8q, CGA-fp2v-gw2q-jcg2, CGA-fq9h-3mfv-2hgm, CGA-fqmv-7f24-q9xq, CGA-gmrw-j6qv-g296, CGA-gv52-wmxx-qgq5, CGA-hf59-4rxv-8wq8, CGA-hjm9-9wvw-7gpg, CGA-hw3x-8jmx-jq3x, CGA-j63q-cf5p-3w4c, CGA-m2xc-94m4-w826, CGA-m69c-6mrw-88r7, CGA-m932-wcr9-v436, CGA-mf6f-vfm4-pq3h, CGA-mj96-qcj4-g733, CGA-mrmm-qg4p-274g, CGA-mvx4-rv9f-mpvc, CGA-mw3f-v68m-4g9v, CGA-p7hf-43v4-823p, CGA-pcp7-p776-p8gj, CGA-pp9h-8m4w-4gc3, CGA-ppqr-56xf-4w29, CGA-pr4f-f698-fmph, CGA-q5hg-2vwr-rfwg, CGA-qfvp-m72w-2g73, CGA-r2w7-245f-c249, CGA-r3w9-x688-j66p, CGA-r3xg-7c4f-xhxx, CGA-r7x7-85hh-mmw6, CGA-rc7c-hrc2-jcj5, CGA-rmjr-cvf6-x282, CGA-v3f3-7786-89p7, CGA-vcqf-23ch-2vhw, CGA-vgmm-5wv8-j7cv, CGA-vmcr-84p3-c7wh, CGA-vrc7-958r-j5jr, CGA-vrp6-rq7p-5h76, CGA-w4xh-4rf5-5q5q, CGA-w82m-f823-8ccv, CGA-whxj-g425-6hw7, CGA-wjf5-pwrp-9jxp, CGA-wjpr-cf92-wqrf, CGA-x34w-5jm3-v688, CGA-x4h5-35f7-8hq5
- Record: https://cvemate.com/vulnerability/CVE-2026-59874 · JSON: https://cvemate.com/vulnerability/CVE-2026-59874/json

## Description

```text
node-tar is a tar archive manipulation library for Node.js. Prior to 7.5.18, tar.replace accepts a checksum-valid tar header with a negative base-256 encoded entry size, causing the archive scanner to make no progress while repeatedly parsing the same header. This issue is fixed in version 7.5.18.
```

## Signals

- CVSS: 8.7 high (v4.0, CVE.org) 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
- EPSS: 0.434%, percentile 39.461%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected (first 20 of 57)

- chainguard actions-runner (Chainguard): \< 2.336.0-r1
- chainguard code-server (Chainguard): \< 4.129.0-r1
- chainguard gitlab-rails-ce-18.1 (Chainguard): \< 18.1.6-r31
- chainguard gitlab-rails-ce-18.10 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.6 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.7 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.8 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.9 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-19.0 (Chainguard): \< 19.0.4-r10
- chainguard gitlab-rails-ce-19.1 (Chainguard): \< 19.1.2-r8
- chainguard gitlab-rails-ce-19.2 (Chainguard): \< 19.2.2-r2
- chainguard gitlab-rails-ce-fips-18.1 (Chainguard): \< 18.1.6-r61
- chainguard gitlab-rails-ce-fips-18.10 (Chainguard): \< 18.10.8-r8
- chainguard gitlab-rails-ce-fips-18.11 (Chainguard): \< 18.11.12-r2
- chainguard gitlab-rails-ce-fips-18.6 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-fips-18.7 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-fips-18.8 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-fips-18.9 (Chainguard): \< 18.9.8-r8
- chainguard gitlab-rails-ce-fips-19.0 (Chainguard): \< 19.0.4-r7
- chainguard gitlab-rails-ce-fips-19.1 (Chainguard): \< 19.1.2-r9

## References

- <https://github.com/isaacs/node-tar/security/advisories/GHSA-8x88-c5mf-7j5w>
- <https://github.com/isaacs/node-tar/commit/9e78bf058b2c22dd4d52e00d8922d5c06fc2f7b5>
- <https://github.com/isaacs/node-tar/releases/tag/v7.5.18>
- <https://ubuntu.com/security/CVE-2026-59874>
- <https://www.cve.org/CVERecord?id=CVE-2026-59874>
- <https://security-tracker.debian.org/tracker/CVE-2026-59874>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/59xxx/CVE-2026-59874.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-59874>
- <https://github.com/isaacs/node-tar>

---

Data as of 2026-12-05T09:43:48.044Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
