{"id":"CVE-2025-59343","published":"2025-09-24T17:43:34Z","modified":"2025-11-03T18:13:55Z","title":"tar-fs has a symlink validation bypass if destination directory is predictable with a specific tarball","vendor":"mafintosh","product":"tar-fs","tier":"tail","description":{"text":"tar-fs provides filesystem bindings for tar-stream. Versions prior to 3.1.1, 2.1.3, and 1.16.5 are vulnerable to symlink validation bypass if the destination directory is predictable with a specific tarball. This issue has been patched in version 3.1.1, 2.1.4, and 1.16.6. A workaround involves using the ignore option on non files/directories.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.7,"severity":"HIGH","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00766,"percentile":0.5179,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"},{"id":"CWE-61","name":"UNIX Symbolic Link (Symlink) Following"}],"references":[{"url":"https://github.com/mafintosh/tar-fs/security/advisories/GHSA-vj76-c3g6-qr5v","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/mafintosh/tar-fs/commit/0bd54cdf06da2b7b5b95cd4b062c9f4e0a8c4e09","tags":["x_refsource_MISC"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/09/msg00028.html","tags":[]}],"priority":{"score":16.4,"factors":[{"name":"EPSS percentile","points":10.36},{"name":"CVSS severity","points":6.09}]},"vendorSlug":"mafintosh","affectedVersions":[{"vendor":"mafintosh","product":"tar-fs","versions":[">= 3.0.0, < 3.1.1",">= 2.0.0, < 2.1.3","< 1.16.5"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-10-03T14:49:04.310765Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"tar-fs","vulnerableRanges":[">=3.0.0, <3.1.1",">=2.0.0, <2.1.4","<1.16.6"],"patched":["3.1.1","2.1.4","1.16.6"],"from":["GHSA-vj76-c3g6-qr5v"],"provenance":"source"}],"summary":{"text":"The tar-fs package from mafintosh, a filesystem binding for tar-stream, contains a symlink validation flaw that lets crafted archive contents escape the intended extraction path when the destination directory is predictable. An unauthenticated remote attacker who can supply a specific tarball for extraction can cause files to be written outside the destination directory, with no user interaction or special configuration required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:26:42Z"},"euvd":{"id":"EUVD-2025-31022","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-mafintosh-tar-fs-cve-2024-12905","parents":[{"from":"CVE-2025-48387","to":"CVE-2025-59343","relation":"successor","confidence":"high","kind":"lineage","evidence":[{"kind":"version-step","provenance":"source","package":"npm:tar-fs","fromFixed":"1.16.5","toFixed":"1.16.6","daysApart":114},{"kind":"version-step","provenance":"source","package":"npm:tar-fs","fromFixed":"2.1.3","toFixed":"2.1.4","daysApart":114},{"kind":"same-code","provenance":"machine","files":["index.js"],"commits":["https://github.com/mafintosh/tar-fs/commit/647447b572bc135c41035e82ca7b894f02b17f0f","https://github.com/mafintosh/tar-fs/commit/0bd54cdf06da2b7b5b95cd4b062c9f4e0a8c4e09"],"basis":"shared function","functions":["extract"]},{"kind":"similar","provenance":"machine","score":0.77,"basis":"same product + CWE + description similarity"}]},{"from":"CVE-2024-12905","to":"CVE-2025-59343","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["index.js"],"commits":["https://github.com/mafintosh/tar-fs/commit/a1dd7e7c7f4b4a8bd2ab60f513baca573b44e2ed","https://github.com/mafintosh/tar-fs/commit/0bd54cdf06da2b7b5b95cd4b062c9f4e0a8c4e09"],"basis":"shared function","functions":["extract"]}]}],"packageHistory":[{"cve":"CVE-2018-20835","published":"2019-04-30","fixed":"1.16.2","kev":false},{"cve":"CVE-2024-12905","published":"2025-03-27","fixed":"3.0.7","kev":false},{"cve":"CVE-2025-48387","published":"2025-06-02","fixed":"3.0.9","kev":false},{"cve":"CVE-2025-59343","published":"2025-09-24","fixed":"3.1.1","kev":false}],"package":"npm:tar-fs"}}