{"id":"CVE-2026-77301","aliases":["CLSA-2026-1784596298","CLSA-2026-1784769498","CLSA-2026-1790161409","CLSA-2026-1790162622","CLSA-2026-1790166345","CLSA-2026-1790180021","CLSA-2026-1791626782","CLSA-2026-1791989313","EUVD-2026-83170","GHSA-7q85-xj36-vmfc","GHSA-c6fg-446q-cg94","ROOT-APP-NPM-CVE-2026-77301"],"status":"published","title":"adm-zip: Uncontrolled memory allocation via the declared uncompressed size (DoS)","description":"adm-zip is a JavaScript library for creating and extracting ZIP archives in Node.js. Prior to 0.6.1, getData() in zipEntry.js trusts an entry's central-directory uncompressed size and allocates output memory before validating that value against the actual compressed data and decompression result. A small crafted ZIP can declare a multi-gigabyte uncompressed size, causing Buffer.alloc and decompression handling to commit excessive resident memory before CRC validation reports an error. Applications that read entries from untrusted archives can therefore be terminated by the operating system or suffer service-wide memory exhaustion. This issue is fixed in version 0.6.1.","severity":{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-10","score":0.00609,"percentile":0.49515,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-789"],"published":"2026-08-04T14:52:45Z","modified":"2026-11-06T09:15:03Z","fixes":[{"ecosystem":"npm","package":"adm-zip","fixed_in":["0.6.1"],"sources":["ghsa","osv"]},{"ecosystem":"TuxCare:npm","package":"adm-zip","fixed_in":["0.5.18-tuxcare.2","0.5.17-tuxcare.2","0.5.16-tuxcare.2","0.5.10-tuxcare.3"],"sources":["osv"]},{"ecosystem":"Root:npm","package":"adm-zip","fixed_in":["0.5.16-aikido.2","0.5.18-aikido.2","0.6.0-aikido.1","0.5.10-aikido.2","0.6.0-aikido.2","0.6.0-aikido.3","0.5.10-aikido.3","0.5.10-aikido.4","0.5.10-aikido.5","0.5.9-aikido.2","0.5.18-aikido.3","0.5.9-aikido.3","0.5.16-aikido.3"],"sources":["osv"]},{"ecosystem":"Root:npm","package":"@rootio/adm-zip","fixed_in":["0.5.16-root.io.2","0.5.18-root.io.2","0.6.0-root.io.1","0.5.10-root.io.2","0.6.0-root.io.2","0.6.0-root.io.3","0.5.10-root.io.3","0.5.10-root.io.4","0.5.10-root.io.5","0.5.9-root.io.2","0.5.18-root.io.3","0.5.9-root.io.3","0.5.16-root.io.3"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"adm-zip","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.6.1"}]}]},{"source":"osv","ecosystem":"TuxCare:npm","package":"adm-zip","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.4.7-tuxcare.0"},{"fixed":"0.4.7-tuxcare.1"}]}],"versions":["0.4.7"],"bundled":2},{"source":"osv","ecosystem":"TuxCare:npm","package":"adm-zip","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.4.16-tuxcare.0"},{"fixed":"0.4.16-tuxcare.1"}]}],"versions":["0.4.16"],"bundled":2},{"source":"osv","ecosystem":"TuxCare:npm","package":"adm-zip","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.6.0-tuxcare.0"},{"fixed":"0.6.0-tuxcare.2"}]}],"versions":["0.6.0","0.6.0-tuxcare.1"],"bundled":2},{"source":"osv","ecosystem":"TuxCare:npm","package":"adm-zip","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.5.18-tuxcare.0"},{"fixed":"0.5.18-tuxcare.2"}]}],"versions":["0.5.18","0.5.18-tuxcare.1"]},{"source":"osv","ecosystem":"TuxCare:npm","package":"adm-zip","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.5.17-tuxcare.0"},{"fixed":"0.5.17-tuxcare.2"}]}],"versions":["0.5.17","0.5.17-tuxcare.1"]},{"source":"osv","ecosystem":"TuxCare:npm","package":"adm-zip","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.5.16-tuxcare.0"},{"fixed":"0.5.16-tuxcare.2"}]}],"versions":["0.5.16","0.5.16-tuxcare.1"]},{"source":"osv","ecosystem":"TuxCare:npm","package":"adm-zip","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.5.10-tuxcare.0"},{"fixed":"0.5.10-tuxcare.3"}]}],"versions":["0.5.10","0.5.10-tuxcare.1","0.5.10-tuxcare.2"]},{"source":"osv","ecosystem":"TuxCare:npm","package":"adm-zip","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.5.12-tuxcare.0"},{"fixed":"0.5.12-tuxcare.4"}]}],"versions":["0.5.12","0.5.12-tuxcare.1","0.5.12-tuxcare.2","0.5.12-tuxcare.3"],"bundled":3},{"source":"osv","ecosystem":"npm","package":"adm-zip","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.6.1"}]}]},{"source":"osv","ecosystem":"Root:npm","package":"adm-zip","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.5.16-aikido.2"},{"fixed":"0.5.18-aikido.2"},{"fixed":"0.6.0-aikido.1"},{"fixed":"0.5.10-aikido.2"},{"fixed":"0.6.0-aikido.2"},{"fixed":"0.6.0-aikido.3"},{"fixed":"0.5.10-aikido.3"},{"fixed":"0.5.10-aikido.4"},{"fixed":"0.5.10-aikido.5"},{"fixed":"0.5.9-aikido.2"},{"fixed":"0.5.18-aikido.3"},{"fixed":"0.5.9-aikido.3"},{"fixed":"0.5.16-aikido.3"}]}]},{"source":"osv","ecosystem":"Root:npm","package":"@rootio/adm-zip","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.5.16-root.io.2"},{"fixed":"0.5.18-root.io.2"},{"fixed":"0.6.0-root.io.1"},{"fixed":"0.5.10-root.io.2"},{"fixed":"0.6.0-root.io.2"},{"fixed":"0.6.0-root.io.3"},{"fixed":"0.5.10-root.io.3"},{"fixed":"0.5.10-root.io.4"},{"fixed":"0.5.10-root.io.5"},{"fixed":"0.5.9-root.io.2"},{"fixed":"0.5.18-root.io.3"},{"fixed":"0.5.9-root.io.3"},{"fixed":"0.5.16-root.io.3"}]}]}],"products":[{"vendor":"cthackers","product":"adm-zip"},{"vendor":"node.js","product":"adm-zip"}],"references":[{"url":"https://github.com/cthackers/adm-zip/security/advisories/GHSA-7q85-xj36-vmfc","tags":["x_refsource_CONFIRM","exploit","advisory","web"]},{"url":"https://github.com/cthackers/adm-zip/commit/491600683dacb6cb9fe0718a0eeb9cb5eb49afa6","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/cthackers/adm-zip/releases/tag/v0.6.1","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/advisories/GHSA-7q85-xj36-vmfc"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/77xxx/CVE-2026-77301.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-77301","tags":["advisory"]},{"url":"https://github.com/cthackers/adm-zip","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2026-77301","title":"adm-zip: Uncontrolled memory allocation via the declared uncompressed size (DoS)","description":"adm-zip is a JavaScript library for creating and extracting ZIP archives in Node.js. Prior to 0.6.1, getData() in zipEntry.js trusts an entry's central-directory uncompressed size and allocates output memory before validating that value against the actual compressed data and decompression result. A small crafted ZIP can declare a multi-gigabyte uncompressed size, causing Buffer.alloc and decompression handling to commit excessive resident memory before CRC validation reports an error. Applications that read entries from untrusted archives can therefore be terminated by the operating system or suffer service-wide memory exhaustion. This issue is fixed in version 0.6.1.","status":"published","published":"2026-09-18T16:38:47.064Z","modified":"2026-09-18T17:11:11.964Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high","assessor":"cna"}],"cwes":["CWE-789"],"updated_at":"2026-11-02T14:20:16.072351Z"}],"euvd":[{"id":"EUVD-2026-83170","description":"adm-zip is a JavaScript library for creating and extracting ZIP archives in Node.js. Prior to 0.6.1, getData() in zipEntry.js trusts an entry's central-directory uncompressed size and allocates output memory before validating that value against the actual compressed data and decompression result. A small crafted ZIP can declare a multi-gigabyte uncompressed size, causing Buffer.alloc and decompression handling to commit excessive resident memory before CRC validation reports an error. Applications that read entries from untrusted archives can therefore be terminated by the operating system or suffer service-wide memory exhaustion. This issue is fixed in version 0.6.1.","status":"published","published":"2026-09-18T16:38:47Z","modified":"2026-09-18T17:11:11Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-02T17:28:08.412343Z"}],"ghsa":[{"id":"GHSA-7q85-xj36-vmfc","title":"adm-zip: Uncontrolled memory allocation via the declared uncompressed size (DoS)","description":"### Summary\nadm-zip allocates an entry's output buffer from the declared uncompressed size (central-directory `size` field) before validating it against the actual data. A tiny crafted ZIP that declares a huge uncompressed size forces a multi-gigabyte allocation from a few bytes.\n\n### Impact\nOn adm-zip 0.5.17 (latest), Node 24, a 105-byte ZIP with one stored entry declaring size = 1,774,399,200 makes `new AdmZip(buf).getEntries()[0].getData()` commit ~1.8 GB of resident memory in ~4.4 s before throwing `Error: ADM-ZIP: CRC32 checksum failed`, roughly 16 million times the input size. Because the buffer is committed before any validation, on a memory-constrained host (containers, serverless, small VMs) the allocation OOM-kills the process before the CRC check (uncatchable), and concurrent requests can exhaust memory even on larger hosts. Any service that reads entries from untrusted ZIPs is exposed to a remote denial of service.\n\n### Steps to reproduce\nAttachments are not supported in the advisory form, so the 105-byte PoC (sha256 `980d34356fbb248fe527b9d0ac3eabc5c99393a374014be6199523de16709386`) is inlined as base64 in this self-contained reproducer:\n\n```js\nconst AdmZip = require('adm-zip');\n// 105-byte crafted ZIP, base64-inlined\n// sha256 980d34356fbb248fe527b9d0ac3eabc5c99393a374014be6199523de16709386\nconst b64 = \"UEsDBBQAAAAAAAAAAAAAAAAABQAAAAUAAAABAAAAYWhlbGxvUEsBAhQAFAAAAAAAAAAAAAAAAAAFAAAA4C7DaQEAAAAAAAAAAAAAAAAAAAAAAGFQSwUGAAAAAAEAAQAvAAAAJAAAAAAA\";\nconst buf = Buffer.from(b64, \"base64\");          // 105 bytes\nconst zip = new AdmZip(buf);\nzip.getEntries()[0].getData();   // commits ~1.8 GB, then throws \"ADM-ZIP: CRC32 checksum failed\"\n```\n\nThe single entry declares uncompressed size = 1,774,399,200 with a compressed size of 5. `getData()` allocates the full declared size before the CRC check runs, so the memory is committed regardless of the (tiny) actual payload.\n\n### Root cause\n`zipEntry.js` does `Buffer.alloc(\u003cdeclared uncompressed size\u003e)` before checking the declared size against the compressed size / available bytes.\n\n### Suggested fix\nValidate the declared uncompressed size against the compressed size and a configurable maximum before allocating (yauzl, for example, requires the caller to bound this); reject or stream when the declared size is implausible relative to the input. Happy to send a patch.","status":"published","published":"2026-09-18T17:18:01Z","modified":"2026-09-18T17:18:03Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"cwes":["CWE-789"],"updated_at":"2026-11-02T14:41:19.455935Z"}],"nvd":[{"id":"CVE-2026-77301","description":"adm-zip is a JavaScript library for creating and extracting ZIP archives in Node.js. Prior to 0.6.1, getData() in zipEntry.js trusts an entry's central-directory uncompressed size and allocates output memory before validating that value against the actual compressed data and decompression result. A small crafted ZIP can declare a multi-gigabyte uncompressed size, causing Buffer.alloc and decompression handling to commit excessive resident memory before CRC validation reports an error. Applications that read entries from untrusted archives can therefore be terminated by the operating system or suffer service-wide memory exhaustion. This issue is fixed in version 0.6.1.","status":"published","published":"2026-09-18T17:17:00.507Z","modified":"2026-09-24T21:16:28.12Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high","assessor":"secondary"}],"cwes":["CWE-789"],"updated_at":"2026-11-02T14:12:50.043898Z"}],"osv":[{"id":"CVE-2026-77301","title":"adm-zip: Uncontrolled memory allocation via the declared uncompressed size (DoS)","description":"adm-zip is a JavaScript library for creating and extracting ZIP archives in Node.js. Prior to 0.6.1, getData() in zipEntry.js trusts an entry's central-directory uncompressed size and allocates output memory before validating that value against the actual compressed data and decompression result. A small crafted ZIP can declare a multi-gigabyte uncompressed size, causing Buffer.alloc and decompression handling to commit excessive resident memory before CRC validation reports an error. Applications that read entries from untrusted archives can therefore be terminated by the operating system or suffer service-wide memory exhaustion. This issue is fixed in version 0.6.1.","status":"published","published":"2026-09-18T16:38:47.064Z","modified":"2026-10-28T02:30:29.970046044Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"cwes":["CWE-789"],"updated_at":"2026-11-02T15:45:17.102988Z"},{"id":"GHSA-7q85-xj36-vmfc","title":"adm-zip: Uncontrolled memory allocation via the declared uncompressed size (DoS)","description":"### Summary\nadm-zip allocates an entry's output buffer from the declared uncompressed size (central-directory `size` field) before validating it against the actual data. A tiny crafted ZIP that declares a huge uncompressed size forces a multi-gigabyte allocation from a few bytes.\n\n### Impact\nOn adm-zip 0.5.17 (latest), Node 24, a 105-byte ZIP with one stored entry declaring size = 1,774,399,200 makes `new AdmZip(buf).getEntries()[0].getData()` commit ~1.8 GB of resident memory in ~4.4 s before throwing `Error: ADM-ZIP: CRC32 checksum failed`, roughly 16 million times the input size. Because the buffer is committed before any validation, on a memory-constrained host (containers, serverless, small VMs) the allocation OOM-kills the process before the CRC check (uncatchable), and concurrent requests can exhaust memory even on larger hosts. Any service that reads entries from untrusted ZIPs is exposed to a remote denial of service.\n\n### Steps to reproduce\nAttachments are not supported in the advisory form, so the 105-byte PoC (sha256 `980d34356fbb248fe527b9d0ac3eabc5c99393a374014be6199523de16709386`) is inlined as base64 in this self-contained reproducer:\n\n```js\nconst AdmZip = require('adm-zip');\n// 105-byte crafted ZIP, base64-inlined\n// sha256 980d34356fbb248fe527b9d0ac3eabc5c99393a374014be6199523de16709386\nconst b64 = \"UEsDBBQAAAAAAAAAAAAAAAAABQAAAAUAAAABAAAAYWhlbGxvUEsBAhQAFAAAAAAAAAAAAAAAAAAFAAAA4C7DaQEAAAAAAAAAAAAAAAAAAAAAAGFQSwUGAAAAAAEAAQAvAAAAJAAAAAAA\";\nconst buf = Buffer.from(b64, \"base64\");          // 105 bytes\nconst zip = new AdmZip(buf);\nzip.getEntries()[0].getData();   // commits ~1.8 GB, then throws \"ADM-ZIP: CRC32 checksum failed\"\n```\n\nThe single entry declares uncompressed size = 1,774,399,200 with a compressed size of 5. `getData()` allocates the full declared size before the CRC check runs, so the memory is committed regardless of the (tiny) actual payload.\n\n### Root cause\n`zipEntry.js` does `Buffer.alloc(\u003cdeclared uncompressed size\u003e)` before checking the declared size against the compressed size / available bytes.\n\n### Suggested fix\nValidate the declared uncompressed size against the compressed size and a configurable maximum before allocating (yauzl, for example, requires the caller to bound this); reject or stream when the declared size is implausible relative to the input. Happy to send a patch.","status":"published","published":"2026-09-18T17:18:01Z","modified":"2026-09-18T17:30:08.405220036Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"cwes":["CWE-789"],"updated_at":"2026-11-02T15:46:41.349637Z"},{"id":"CLSA-2026-1784596298","title":"TuxCare security update for adm-zip (2 CVEs)","description":"TuxCare rebuilt adm-zip to address 2 CVEs. Fixed in 0.4.7-tuxcare.1.","status":"published","published":"2026-08-04T14:52:45Z","modified":"2026-10-15T09:47:52.485540194Z","updated_at":"2026-11-02T15:43:46.482572Z"},{"id":"CLSA-2026-1784769498","title":"TuxCare security update for adm-zip (2 CVEs)","description":"TuxCare rebuilt adm-zip to address 2 CVEs. Fixed in 0.4.16-tuxcare.1.","status":"published","published":"2026-08-04T14:52:47Z","modified":"2026-10-15T09:47:54.661785856Z","updated_at":"2026-11-02T15:43:46.482572Z"},{"id":"CLSA-2026-1790161409","title":"TuxCare security update for adm-zip (2 CVEs)","description":"TuxCare rebuilt adm-zip to address 2 CVEs. Fixed in 0.6.0-tuxcare.2.","status":"published","published":"2026-09-23T11:03:29Z","modified":"2026-10-15T09:47:14.738365472Z","updated_at":"2026-11-02T15:43:48.28229Z"},{"id":"CLSA-2026-1790162622","title":"TuxCare security update for adm-zip (1 CVE)","description":"TuxCare rebuilt adm-zip to address 1 CVE. Fixed in 0.5.18-tuxcare.2.","status":"published","published":"2026-09-23T11:23:42Z","modified":"2026-10-15T09:47:56.918450169Z","updated_at":"2026-11-02T15:43:48.28229Z"},{"id":"CLSA-2026-1790166345","title":"TuxCare security update for adm-zip (1 CVE)","description":"TuxCare rebuilt adm-zip to address 1 CVE. Fixed in 0.5.17-tuxcare.2.","status":"published","published":"2026-09-23T12:25:45Z","modified":"2026-10-15T09:47:56.928746364Z","updated_at":"2026-11-02T15:43:48.28229Z"},{"id":"CLSA-2026-1790180021","title":"TuxCare security update for adm-zip (1 CVE)","description":"TuxCare rebuilt adm-zip to address 1 CVE. Fixed in 0.5.16-tuxcare.2.","status":"published","published":"2026-09-23T16:13:41Z","modified":"2026-10-15T09:47:56.523440551Z","updated_at":"2026-11-02T15:43:48.28229Z"},{"id":"CLSA-2026-1791626782","title":"TuxCare security update for adm-zip (1 CVE)","description":"TuxCare rebuilt adm-zip to address 1 CVE. Fixed in 0.5.10-tuxcare.3.","status":"published","published":"2026-10-10T10:06:22Z","modified":"2026-10-15T09:48:04.623201126Z","updated_at":"2026-11-02T15:43:50.599064Z"},{"id":"CLSA-2026-1791989313","title":"TuxCare security update for adm-zip (4 CVEs)","description":"TuxCare rebuilt adm-zip to address 4 CVEs. Fixed in 0.5.12-tuxcare.4.","status":"published","published":"2026-10-14T14:48:33Z","modified":"2026-10-15T09:47:40.490176898Z","updated_at":"2026-11-02T15:43:50.599064Z"},{"id":"ROOT-APP-NPM-CVE-2026-77301","title":"CVE-2026-77301 in adm-zip - Patched by Root","description":"Root has patched CVE-2026-77301 in the adm-zip package for Root:npm. Multiple fixed versions available.","status":"published","published":"2026-11-06T08:32:26Z","modified":"2026-11-06T09:15:03.495055036Z","updated_at":"2026-11-06T09:36:49.371047Z"}]}}
