{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "cpe": "cpe:2.3:a:python:python:*:*:*:*:*:*:*:*",
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "fixed": "3.1.5"
              }
            ],
            "source": [
              "CPE_RANGE",
              "REFERENCES"
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "c37a4fdf5472b9460cc38885342ef59bce05753f"
            },
            {
              "fixed": "5e0ef3f1afe892e4f64eb83368db57ac4c40cba0"
            },
            {
              "fixed": "7b57e8d51446297b8c7c482d224bc5f1938e4301"
            },
            {
              "fixed": "7ccdbaba2c54250a70d7f25632152df7655a5e0a"
            },
            {
              "fixed": "d2b2f5eacab4dd48446b63340613b05dcbbf0b44"
            },
            {
              "fixed": "eee3ddf0ca10283cc7fea724aae9cd8665f8d15e"
            }
          ],
          "repo": "https://github.com/python/cpython",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "PSF",
    "cwe_ids": [
      "CWE-281"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/4xxx/CVE-2026-4360.json",
    "unresolved_ranges": [
      {
        "extracted_events": [
          {
            "fixed": "3.15.0"
          }
        ],
        "source": "AFFECTED_FIELD"
      }
    ]
  },
  "details": "In the Tarfile.extract() function, the filter parameter is not passed properly when extracting hardlinks. An affected system that extracts content from untrusted tar files could end up writing files with an unexpected uid/gid despite the user passing filter='data' to the extract() function.",
  "id": "CVE-2026-4360",
  "modified": "2026-07-10T03:54:36.020604915Z",
  "published": "2026-06-30T14:45:35.601Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/4xxx/CVE-2026-4360.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://mail.python.org/archives/list/security-announce@python.org/thread/TWZW2PC2AZOV6FENIHFSRC63OM7MBGSB/"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-4360"
    },
    {
      "type": "REPORT",
      "url": "https://github.com/python/cpython/issues/151987"
    },
    {
      "type": "FIX",
      "url": "https://github.com/python/cpython/commit/5e0ef3f1afe892e4f64eb83368db57ac4c40cba0"
    },
    {
      "type": "FIX",
      "url": "https://github.com/python/cpython/commit/7b57e8d51446297b8c7c482d224bc5f1938e4301"
    },
    {
      "type": "FIX",
      "url": "https://github.com/python/cpython/commit/7ccdbaba2c54250a70d7f25632152df7655a5e0a"
    },
    {
      "type": "FIX",
      "url": "https://github.com/python/cpython/commit/d2b2f5eacab4dd48446b63340613b05dcbbf0b44"
    },
    {
      "type": "FIX",
      "url": "https://github.com/python/cpython/commit/eee3ddf0ca10283cc7fea724aae9cd8665f8d15e"
    },
    {
      "type": "FIX",
      "url": "https://github.com/python/cpython/pull/151988"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/python/cpython"
    }
  ],
  "schema_version": "1.7.5",
  "severity": [
    {
      "score": "CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "Tarfile.extract() doesn't fully respect filter parameter"
}