High
tar-fs has issue where extract can write outside the specified dir with a specific tarball
Type: advisorySources: OSV
tar-fs provides filesystem bindings for tar-stream. Versions prior to 3.0.9, 2.1.3, and 1.16.5 have an issue where an extract can write outside the specified dir with a specific tarball. This has been patched in versions 3.0.9, 2.1.3, and 1.16.5. As a workaround, use the ignore option to ignore non files/directories.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2025-48387
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 4 Nov 2026, 15:41 UTC · Revision 1
Source evidence
tar-fs has issue where extract can write outside the specified dir with a specific tarball
core-osv · Original sourcePublished 2 Jun 2025, 19:20 UTC
tar-fs provides filesystem bindings for tar-stream. Versions prior to 3.0.9, 2.1.3, and 1.16.5 have an issue where an extract can write outside the specified dir with a specific tarball. This has been patched in versions 3.0.9, 2.1.3, and 1.16.5. As a workaround, use the ignore option to ignore non files/directories.
osv:CVE-2025-48387
Complete source record
{
"id": "135b8fbaf1d493a518526feedf26baa8121c7ea8d0ffed067c1bd4f71a829124",
"url": "https://osv.dev/vulnerability/CVE-2025-48387",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "tar-fs has issue where extract can write outside the specified dir with a specific tarball",
"summary": "tar-fs provides filesystem bindings for tar-stream. Versions prior to 3.0.9, 2.1.3, and 1.16.5 have an issue where an extract can write outside the specified dir with a specific tarball. This has been patched in versions 3.0.9, 2.1.3, and 1.16.5. As a workaround, use the ignore option to ignore non files/directories.",
"evidence": "osv:CVE-2025-48387",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2025-48387",
"aliases": [
"CVE-2025-48387",
"GHSA-8cj5-5rvv-wf4v"
],
"metrics": [
{
"type": "CVSS_V4",
"score": "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"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/mafintosh/tar-fs",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "3c6eddb6008d14f4ca83a439dd432263d29ecb0f"
},
{
"introduced": "0f54a78bcc8735c4257177fd004c2f9e55c588bb"
},
{
"fixed": "4b7e8688a54268b7c3268848504167635050aa10"
},
{
"introduced": "6d66143dc5e40480dd6135a4453f6da26a5602e0"
},
{
"fixed": "2ceedf4cf807e89a071ebd585291aa785c980829"
},
{
"fixed": "647447b572bc135c41035e82ca7b894f02b17f0f"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"introduced": "0"
},
{
"fixed": "1.16.5"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StringRangeExpression"
},
{
"range": [
{
"introduced": "2.0.0"
},
{
"fixed": "2.1.3"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StringRangeExpression"
},
{
"range": [
{
"introduced": "3.0.0"
},
{
"fixed": "3.0.9"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StringRangeExpression"
},
{
"range": [
{
"fixed": "647447b572bc135c41035e82ca7b894f02b17f0f"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"versions": [
"v1.16.4",
"v2.1.2",
"v3.0.8",
"v3.0.7",
"v1.16.3",
"v2.1.1",
"v3.0.6",
"v3.0.5",
"v3.0.4",
"v3.0.3",
"v3.0.2",
"v3.0.1",
"v3.0.0",
"v2.1.0",
"v2.0.1",
"v2.0.0",
"v1.16.2",
"v1.16.1",
"v1.16.0",
"v1.15.3",
"v1.15.2",
"v1.15.1",
"v1.15.0",
"v1.14.0",
"v1.13.2",
"v1.13.1",
"v1.13.0",
"v1.12.0",
"v1.11.1",
"v1.11.0",
"v1.10.0",
"v1.9.0",
"v1.8.1",
"v1.8.0",
"v1.7.0",
"v1.6.0",
"v1.5.1",
"v1.5.0",
"v1.4.2",
"v1.4.1",
"v1.4.0",
"v1.3.0",
"v1.2.0",
"v1.1.0",
"v1.0.0",
"v0.5.2",
"v0.5.1",
"v0.5.0",
"v0.4.1",
"v0.4.0",
"v0.3.3",
"v0.3.2",
"v0.3.1",
"v0.3.0",
"v0.2.2",
"v0.2.1",
"v0.2.0",
"v0.1.8",
"v0.1.7",
"v0.1.5",
"v0.1.4",
"v0.1.3",
"v0.1.2",
"v0.1.1",
"v0.1.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-48387.json"
}
}
],
"modified": "2026-10-28T02:30:37.012117024Z",
"provider": "osv",
"references": [
"https://lists.debian.org/debian-lts-announce/2025/06/msg00012.html",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/48xxx/CVE-2025-48387.json",
"https://github.com/google/security-research/security/advisories/GHSA-xrg4-qp5w-2c3w",
"https://github.com/mafintosh/tar-fs/security/advisories/GHSA-8cj5-5rvv-wf4v",
"https://nvd.nist.gov/vuln/detail/CVE-2025-48387",
"https://github.com/mafintosh/tar-fs/commit/647447b572bc135c41035e82ca7b894f02b17f0f"
],
"provider_metadata": {
"cwe_ids": [
"CWE-22"
],
"cna_assigner": "GitHub_M",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/48xxx/CVE-2025-48387.json"
}
},
"related_cves": [
{
"value": "CVE-2025-48387",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 504221,
"published_at": "2025-06-02T19:20:18.22+00:00"
}