{
  "id": "CVE-2025-48387",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-48387",
  "published_at": "2025-06-02T19:20:18.22Z",
  "title": "tar-fs has issue where extract can write outside the specified dir with a specific tarball",
  "vendor": "mafintosh",
  "product": "tar-fs",
  "cvss": {
    "score": 8.7,
    "source": "cna",
    "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"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "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.",
  "cwe": "CWE-22",
  "cvss_by_source": {
    "cna": 8.7
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "mafintosh",
        "product": "tar-fs",
        "ranges": [
          "\u003c 1.16.5",
          "\u003e= 2.0.0, \u003c 2.1.3",
          "\u003e= 3.0.0, \u003c 3.0.9"
        ],
        "fixed_in": [
          "1.16.5",
          "2.1.3",
          "3.0.9"
        ]
      }
    ],
    "upgrade": [
      "Upgrade tar-fs to 1.16.5 or 2.1.3 or 3.0.9 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/mafintosh/tar-fs/security/advisories/GHSA-8cj5-5rvv-wf4v"
      },
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/google/security-research/security/advisories/GHSA-xrg4-qp5w-2c3w"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/mafintosh/tar-fs/commit/647447b572bc135c41035e82ca7b894f02b17f0f"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
