node-tar async extraction and file escape flaws
CVE-2026-140233 and 23 more
The node-tar tool that unpacks files can be stalled, or files can be spied on or changed.
- CVE
- CVE-2026-140233 and 23 more
- Score
- CVSS 7.2 · CVE-2026-140233
- First seen
Mitigation
Update node-tar to 8.0.0 or later. If you cannot update now, switching to the synchronous extraction option sync: true avoids the async-path stall flaws (CVE-2026-140118, CVE-2026-140119, CVE-2026-140230), but does not block the other flaws.
Can't update yet?
Add this line to the config file:
sync: true
A wrong setting can stop the service or lock you out. Check the source links below first.
Summary
Several flaws were confirmed in node-tar's async extraction and compressed input handling. The gravest lets an attacker add members that a filter never inspects, and the same fixed release also fixes extraction-time process stalls and symlink escapes.
Exploit code is public
Affected when
- CVE-2026-140233 repacks archive input through the archive-file feature with an entry filter
- CVE-2026-140235, CVE-2026-140238 parses PAX extended headers
- CVE-2026-140243, CVE-2026-140245, CVE-2026-140249 another program reads or writes the extracted files
- CVE-2026-140118, CVE-2026-140119 uses the default async extraction API on POSIX hosts
- CVE-2026-140229 processes compressed input with tar
- CVE-2026-140230 processes archives with a shallow path and a deep linkpath
2 other Incidents of this product in the last 30 days
Incidents by product: node-tar
Other recent Incidents of node-tar
Distribution packages (2) (every link below opens in a new tab)
- Debian 13 (trixie)node-tar · not fixed yet
- Debian 12 (bookworm)node-tar · not fixed yet
Sources: Debian Security Tracker
24 CVEs (every link below opens in a new tab)
- CVE-2026-140233
- CVE-2026-140235
- CVE-2026-140236
- CVE-2026-140238
- CVE-2026-140239
- CVE-2026-140243
- CVE-2026-140244
- CVE-2026-140245
- CVE-2026-140246
- CVE-2026-140247
- CVE-2026-140248
- CVE-2026-140249
- CVE-2026-140250
- CVE-2026-140118
- CVE-2026-140119
- CVE-2026-140229
- CVE-2026-140230
- CVE-2026-140231
- CVE-2026-140232
- CVE-2026-140234
- CVE-2026-140241
- CVE-2026-140251
- CVE-2026-140252
- CVE-2026-140237
Read the advisory · github.com (opens in a new tab)
Each of the 24 CVEs (every link below opens in a new tab)
- CVE-2026-140233lets an attacker slip extra files past an entry filter. CVSS 7.2 CVE-2026-140233 advisory
- CVE-2026-140235lets newline tricks in PAX metadata forge paths and sizes. CVSS 7.2 CVE-2026-140235 advisory
- CVE-2026-140236size mismatches can create extra files in a repacked output archive. CVSS 7.2 CVE-2026-140236 advisory
Show 21 more
- CVE-2026-140238forged paths can overwrite files outside the extraction folder. CVSS 7.2 CVE-2026-140238 advisory
- CVE-2026-140239a global PAX header injects link paths that can read or write outside files. CVSS 7.2 CVE-2026-140239 advisory
- CVE-2026-140243a trailing /. lets an extracted symlink point outside the folder. CVSS 7.2 CVE-2026-140243 advisory
- CVE-2026-140244a nested symlink can let a reader reach an arbitrary file outside the folder. CVSS 7.2 CVE-2026-140244 advisory
- CVE-2026-140245a trailing /. can create a symlink pointing outside the folder. CVSS 7.2 CVE-2026-140245 advisory
- CVE-2026-140246a backslash mismatch can create a link pointing outside the folder. CVSS 7.2 CVE-2026-140246 advisory
- CVE-2026-140247an earlier symlink can make a later link point outside the folder. CVSS 7.2 CVE-2026-140247 advisory
- CVE-2026-140248a nested symlink can make a link point outside the extraction root. CVSS 7.2 CVE-2026-140248 advisory
- CVE-2026-140249a symlink chain can reach any system path for reads and writes. CVSS 7.2 CVE-2026-140249 advisory
- CVE-2026-140250Symbolic link targets in chained links are not properly validated, so a symlink pointing outside the extraction directory can be created, and if the application follows it, files outside can be read or modified. CVSS 7.2 CVE-2026-140250 advisory
- CVE-2026-140118An attacker-crafted archive with a deeply nested link path, extracted asynchronously on POSIX hosts, can exhaust memory and crash the Node.js process. CVSS 7.1 CVE-2026-140118 advisory
- CVE-2026-140119An attacker-crafted archive with a deeply nested link path, extracted with asynchronous Unpack on non-Windows hosts, can exhaust the heap and terminate the process. CVSS 7.1 CVE-2026-140119 advisory
- CVE-2026-140229When processing compressed malicious input, the inflated output is allocated before the ratio limit is checked, so memory can be exhausted despite the configured ratio limit. CVSS 7.1 CVE-2026-140229 advisory
- CVE-2026-140230A small crafted archive with a shallow entry path but a deeply nested link path bypasses the maxDepth check and can exhaust heap memory, terminating the process. CVSS 7.1 CVE-2026-140230 advisory
- CVE-2026-140231Compressed data within the ratio limit is buffered without backpressure and zero-size entries queue without bound, so an attacker can force memory use far beyond the archive size. CVSS 7.1 CVE-2026-140231 advisory
- CVE-2026-140232During asynchronous extraction, a NUL byte appearing after a line terminator is not removed from the pathname, causing an uncaught exception that terminates the process. CVSS 7.1 CVE-2026-140232 advisory
- CVE-2026-140234NUL bytes after certain line terminators survive name truncation, so async extraction can crash the process and names may be interpreted differently from other tools. CVSS 7.1 CVE-2026-140234 advisory
- CVE-2026-140241When automatically detecting Zstandard compression, an unhandled exception occurs on a crafted input file, terminating the process during asynchronous listing or extraction and causing denial of service. CVSS 7.1 CVE-2026-140241 advisory
- CVE-2026-140251An archive with an entry whose link target is an ancestor or descendant of its own path can deadlock asynchronous extraction on POSIX systems, stalling it indefinitely and causing denial of service. CVSS 7.1 CVE-2026-140251 advisory
- CVE-2026-140252During synchronous stream extraction, a failed entry makes the pending counter negative, so the stream never emits end, finish, or close events and hangs. CVSS 7.1 CVE-2026-140252 advisory
- CVE-2026-140237By exploiting differences in handling nested PAX metadata, an attacker can make extraction create or truncate files inside the extraction directory that inspection missed, bypassing allowlists or scanning policies. CVSS 6.9 CVE-2026-140237 advisory
Repository (8): github.com
- googlesky/CVE-2026-140250 (opens in a new tab)
- googlesky/CVE-2026-140238 (opens in a new tab)
- googlesky/CVE-2026-140252 (opens in a new tab)
- googlesky/CVE-2026-140249 (opens in a new tab)
- googlesky/CVE-2026-140241 (opens in a new tab)
- googlesky/CVE-2026-140235 (opens in a new tab)
- googlesky/CVE-2026-140239 (opens in a new tab)
- googlesky/CVE-2026-140245 (opens in a new tab)