{
  "id": "CVE-2025-8194",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-8194",
  "published_at": "2025-07-28T18:42:44.847Z",
  "title": "Tarfile infinite loop during parsing with negative member offset",
  "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:N/A:H"
  },
  "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": "There is a defect in the CPython “tarfile” module affecting the “TarFile” extraction and entry enumeration APIs. The tar implementation would process tar archives with negative offsets without error, resulting in an infinite loop and deadlock during the parsing of maliciously crafted tar archives. \n\nThis vulnerability can be mitigated by including the following patch after importing the “tarfile” module:  https://gist.github.com/sethmlarson/1716ac5b82b73dbcbf23ad2eff8b33e1",
  "cwe": "CWE-835",
  "cvss_by_source": {
    "cna": 7.5
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Python Software Foundation",
        "product": "CPython",
        "ranges": [
          "\u003c 3.9.24",
          "\u003e= 3.10.0, \u003c 3.10.19",
          "\u003e= 3.11.0, \u003c 3.11.14",
          "\u003e= 3.12.0, \u003c 3.12.12",
          "\u003e= 3.13.0, \u003c 3.13.6",
          "\u003e= 3.14.0a1, \u003c 3.14.0rc2"
        ],
        "fixed_in": [
          "3.9.24",
          "3.10.19",
          "3.11.14",
          "3.12.12",
          "3.13.6",
          "3.14.0rc2"
        ]
      }
    ],
    "upgrade": [
      "Upgrade CPython to 3.9.24 or 3.10.19 or 3.11.14 or 3.12.12 or 3.13.6 or 3.14.0rc2 or later."
    ],
    "references": [
      {
        "kind": "Patch",
        "url": "https://github.com/python/cpython/pull/137027"
      },
      {
        "kind": "Vendor advisory",
        "url": "https://mail.python.org/archives/list/security-announce@python.org/thread/ZULLF3IZ726XP5EY7XJ7YIN3K5MDYR2D/"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/python/cpython/commit/7040aa54f14676938970e10c5f74ea93cd56aa38"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/python/cpython/commit/cdae923ffe187d6ef916c0f665a31249619193fe"
      },
      {
        "kind": "Mitigation",
        "url": "https://gist.github.com/sethmlarson/1716ac5b82b73dbcbf23ad2eff8b33e1"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/python/cpython/commit/c9d9f78feb1467e73fd29356c040bde1c104f29f"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/python/cpython/commit/fbc2a0ca9ac8aff6887f8ddf79b87b4510277227"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/python/cpython/commit/57f5981d6260ed21266e0c26951b8564cc252bc2"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
