{
  "id": "CVE-2025-4435",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-4435",
  "published_at": "2025-06-03T12:59:06.792Z",
  "title": "Tarfile extracts filtered members when errorlevel=0",
  "vendor": "Python Software Foundation",
  "product": "CPython",
  "cvss": {
    "score": 7.5,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A: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": "When using a TarFile.errorlevel = 0 and extracting with a filter the documented behavior is that any filtered members would be skipped and not extracted. However the actual behavior of TarFile.errorlevel = 0 in affected versions is that the member would still be extracted and not skipped.",
  "cwe": "CWE-682",
  "cvss_by_source": {
    "cna": 7.5
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Python Software Foundation",
        "product": "CPython",
        "ranges": [
          "\u003c 3.9.23",
          "\u003e= 3.10.0, \u003c 3.10.18",
          "\u003e= 3.11.0, \u003c 3.11.13",
          "\u003e= 3.12.0, \u003c 3.12.11",
          "\u003e= 3.13.0, \u003c 3.13.4",
          "\u003e= 3.14.0a1, \u003c 3.14.0b3"
        ],
        "fixed_in": [
          "3.9.23",
          "3.10.18",
          "3.11.13",
          "3.12.11",
          "3.13.4",
          "3.14.0b3"
        ]
      }
    ],
    "upgrade": [
      "Upgrade CPython to 3.9.23 or 3.10.18 or 3.11.13 or 3.12.11 or 3.13.4 or 3.14.0b3 or later."
    ],
    "references": [
      {
        "kind": "Patch",
        "url": "https://github.com/python/cpython/pull/135037"
      },
      {
        "kind": "Vendor advisory",
        "url": "https://mail.python.org/archives/list/security-announce@python.org/thread/MAXIJJCUUMCL7ATZNDVEGGHUMQMUUKLG/"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/python/cpython/commit/3612d8f51741b11f36f8fb0494d79086bac9390a"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/python/cpython/commit/9e0ac76d96cf80b49055f6d6b9a6763fb9215c2a"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/python/cpython/commit/19de092debb3d7e832e5672cc2f7b788d35951da"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/python/cpython/commit/aa9eb5f757ceff461e6e996f12c89e5d9b583b01"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/python/cpython/commit/28463dba112af719df1e8b0391c46787ad756dd9"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/python/cpython/commit/4633f3f497b1ff70e4a35b6fe2c907cbe2d4cb2e"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
