CVEMETERBack to radar
OFFICIAL RECORD · Python

CVE-2024-12718

PUBLISHEDOfficial status check: verifiedCVSS 3.1: 5.3 · medium

Bypass extraction filter to modify file metadata outside extraction directory

Allows modifying some file metadata (e.g. last modified) with filter="data" or file permissions (chmod) with filter="tar" of files outside the extraction directory. You are affected by this vulnerability if using the tarfile module to extract untrusted tar archives using TarFile.extractall() or TarFile.extract() using the filter= parameter with a value of "data" or "tar". See the tarfile extraction filters documentation https://docs.python.org/3/library/tarfile.html#tarfile-extraction-filter  for more information. Only Python versions 3.12 or later are affected by these vulnerabilities, earlier versions don't include the extraction filter feature. Note that for Python 3.14 or later the default value of filter= changed from "no filtering" to `"data", so if you are relying on this new default behavior then your usage is also affected. Note that none of these vulnerabilities significantly affect the installation of source distributions which are tar archives as source distributions already allow arbitrary code execution during the build process. However when evaluating source distributions it's important to avoid installing source distributions with suspicious links.

Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.

Severity and exploitation evidence

EPSS: 0.825% · score date 2026-11-19. EPSS is an estimated probability over the next 30 days, not proof of exploitation.

CISA KEV: not included in the checked catalog; exploitation may still occur. Last checked: 2026-11-19T17:59:58.648Z. Public exploit availability is not used to set this status.

CVSS 3.1 · 5.3 · published by PSF
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
Assessment source · checked 2026-11-19T12:57:04.434Z

CVSS 3.1 · 5.3 · published by Ubuntu Security
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
Assessment source · checked 2026-11-19T16:50:08.089Z

Verification by field

FieldStatusChecked at (UTC)Source
kevverified2026-11-19T17:59:58.648ZCISA KEV
cvssverified2026-11-19T12:57:04.434ZCVE Program
epssverified2026-11-19T16:04:37.769ZFIRST EPSS
patchesverified2026-11-19T16:57:02.699ZUbuntu Security
affectedverified2026-11-19T12:57:04.434ZCVE Program
lifecycleverified2026-11-19T12:57:04.434ZCVE Program

Affected versions and configuration

Python Software Foundation CPython; default status: unaffected: 0 to < 3.9.23 [affected; scheme: python]; 3.10.0 to < 3.10.18 [affected; scheme: python]; 3.11.0 to < 3.11.13 [affected; scheme: python]; 3.12.0 to < 3.12.11 [affected; scheme: python]; 3.13.0 to < 3.13.4 [affected; scheme: python]; 3.14.0a1 to < 3.14.0b3 [affected; scheme: python]

Defaults, conditional configuration, package status and version schemes are retained below. A version range alone is not an exposure verdict.

Ubuntu Security · ubuntu-package · full conditions
[
  {
    "name": "python3.12",
    "debian": "https://tracker.debian.org/pkg/python3.12",
    "source": "https://ubuntu.com/security/cve?package=python3.12",
    "ubuntu": "https://packages.ubuntu.com/search?suite=all&section=all&arch=any&searchon=sourcenames&keywords=python3.12",
    "statuses": [
      {
        "pocket": "security",
        "status": "DNE",
        "component": null,
        "description": "",
        "release_codename": "jammy"
      },
      {
        "pocket": "security",
        "status": "DNE",
        "component": null,
        "description": "",
        "release_codename": "plucky"
      },
      {
        "pocket": "security",
        "status": "needs-triage",
        "component": null,
        "description": "",
        "release_codename": "upstream"
      },
      {
        "pocket": "security",
        "status": "released",
        "component": null,
        "description": "3.12.3-1ubuntu0.7",
        "release_codename": "noble"
      },
      {
        "pocket": "security",
        "status": "released",
        "component": null,
        "description": "3.12.7-1ubuntu2.2",
        "release_codename": "oracular"
      },
      {
        "pocket": "security",
        "status": "DNE",
        "component": null,
        "description": "",
        "release_codename": "questing"
      }
    ]
  }
]
Archived source JSON
Ubuntu Security · ubuntu-package · full conditions
[
  {
    "name": "python3.10",
    "debian": "https://tracker.debian.org/pkg/python3.10",
    "source": "https://ubuntu.com/security/cve?package=python3.10",
    "ubuntu": "https://packages.ubuntu.com/search?suite=all&section=all&arch=any&searchon=sourcenames&keywords=python3.10",
    "statuses": [
      {
        "pocket": "security",
        "status": "DNE",
        "component": null,
        "description": "",
        "release_codename": "noble"
      },
      {
        "pocket": "security",
        "status": "DNE",
        "component": null,
        "description": "",
        "release_codename": "oracular"
      },
      {
        "pocket": "security",
        "status": "DNE",
        "component": null,
        "description": "",
        "release_codename": "plucky"
      },
      {
        "pocket": "security",
        "status": "needs-triage",
        "component": null,
        "description": "",
        "release_codename": "upstream"
      },
      {
        "pocket": "security",
        "status": "not-affected",
        "component": null,
        "description": "code not present",
        "release_codename": "jammy"
      },
      {
        "pocket": "security",
        "status": "DNE",
        "component": null,
        "description": "",
        "release_codename": "questing"
      }
    ]
  }
]
Archived source JSON
Ubuntu Security · ubuntu-package · full conditions
[
  {
    "name": "python3.11",
    "debian": "https://tracker.debian.org/pkg/python3.11",
    "source": "https://ubuntu.com/security/cve?package=python3.11",
    "ubuntu": "https://packages.ubuntu.com/search?suite=all&section=all&arch=any&searchon=sourcenames&keywords=python3.11",
    "statuses": [
      {
        "pocket": "security",
        "status": "DNE",
        "component": null,
        "description": "",
        "release_codename": "noble"
      },
      {
        "pocket": "security",
        "status": "DNE",
        "component": null,
        "description": "",
        "release_codename": "oracular"
      },
      {
        "pocket": "security",
        "status": "DNE",
        "component": null,
        "description": "",
        "release_codename": "plucky"
      },
      {
        "pocket": "security",
        "status": "needs-triage",
        "component": null,
        "description": "",
        "release_codename": "upstream"
      },
      {
        "pocket": "security",
        "status": "not-affected",
        "component": null,
        "description": "code not present",
        "release_codename": "jammy"
      },
      {
        "pocket": "security",
        "status": "DNE",
        "component": null,
        "description": "",
        "release_codename": "questing"
      }
    ]
  }
]
Archived source JSON
Ubuntu Security · ubuntu-package · full conditions
[
  {
    "name": "python3.13",
    "debian": "https://tracker.debian.org/pkg/python3.13",
    "source": "https://ubuntu.com/security/cve?package=python3.13",
    "ubuntu": "https://packages.ubuntu.com/search?suite=all&section=all&arch=any&searchon=sourcenames&keywords=python3.13",
    "statuses": [
      {
        "pocket": "security",
        "status": "DNE",
        "component": null,
        "description": "",
        "release_codename": "jammy"
      },
      {
        "pocket": "security",
        "status": "DNE",
        "component": null,
        "description": "",
        "release_codename": "noble"
      },
      {
        "pocket": "security",
        "status": "released",
        "component": null,
        "description": "3.13.0-1ubuntu0.3",
        "release_codename": "oracular"
      },
      {
        "pocket": "security",
        "status": "released",
        "component": null,
        "description": "3.13.3-1ubuntu0.2",
        "release_codename": "plucky"
      },
      {
        "pocket": "security",
        "status": "released",
        "component": null,
        "description": "3.13.4",
        "release_codename": "upstream"
      },
      {
        "pocket": "security",
        "status": "not-affected",
        "component": null,
        "description": "3.13.5",
        "release_codename": "questing"
      }
    ]
  }
]
Archived source JSON
CVE Program · cve-json · full conditions
{
  "affected": [
    {
      "repo": "https://github.com/python/cpython",
      "vendor": "Python Software Foundation",
      "product": "CPython",
      "versions": [
        {
          "status": "affected",
          "version": "0",
          "lessThan": "3.9.23",
          "versionType": "python"
        },
        {
          "status": "affected",
          "version": "3.10.0",
          "lessThan": "3.10.18",
          "versionType": "python"
        },
        {
          "status": "affected",
          "version": "3.11.0",
          "lessThan": "3.11.13",
          "versionType": "python"
        },
        {
          "status": "affected",
          "version": "3.12.0",
          "lessThan": "3.12.11",
          "versionType": "python"
        },
        {
          "status": "affected",
          "version": "3.13.0",
          "lessThan": "3.13.4",
          "versionType": "python"
        },
        {
          "status": "affected",
          "version": "3.14.0a1",
          "lessThan": "3.14.0b3",
          "versionType": "python"
        }
      ],
      "defaultStatus": "unaffected"
    }
  ],
  "additionalContainers": [
    {
      "title": "CISA ADP Vulnrichment",
      "metrics": [
        {
          "other": {
            "type": "ssvc",
            "content": {
              "id": "CVE-2024-12718",
              "role": "CISA Coordinator",
              "options": [
                {
                  "Exploitation": "poc"
                },
                {
                  "Automatable": "yes"
                },
                {
                  "Technical Impact": "partial"
                }
              ],
              "version": "2.0.3",
              "timestamp": "2025-07-24T15:57:41.217375Z"
            }
          }
        }
      ],
      "references": [
        {
          "url": "https://github.com/python/cpython/issues/127987",
          "tags": [
            "exploit"
          ]
        }
      ],
      "providerMetadata": {
        "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
        "shortName": "CISA-ADP",
        "dateUpdated": "2025-07-24T15:57:58.221Z"
      }
    }
  ]
}
Archived source JSON

Correction evidence

Distribution packages and upstream releases are distinct. ESM channels may require the corresponding Ubuntu entitlement. Notes and branch ranges are not installable package versions. OSV fixed boundaries are ecosystem-specific version thresholds, not proof that a package is currently available or installed.

Evidence typeDistribution / releasePackageChannelVersion or source noteSource
distribution-packageUbuntu / noblepython3.12security3.12.3-1ubuntu0.7Official record
distribution-packageUbuntu / oracularpython3.12security3.12.7-1ubuntu2.2Official record
distribution-packageUbuntu / oracularpython3.13security3.13.0-1ubuntu0.3Official record
distribution-packageUbuntu / pluckypython3.13security3.13.3-1ubuntu0.2Official record
upstream-releaseupstream / upstreampython3.13Not a distribution channel3.13.4Official record

Vendor notices and operational guidance

No connected vendor notice is available for this record.

Original sources and dates

Official status history