CVE-2025-4517
Arbitrary writes via tarfile realpath overflow
Allows arbitrary filesystem writes outside the extraction directory during extraction with filter="data". 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. 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: 1.480% · 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-19T16:57:41.748Z. Public exploit availability is not used to set this status.
CVSS 3.1 · 9.4 · published by PSFCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L
Assessment source · checked 2026-11-19T12:57:33.676Z
CVSS 3.1 · 9.4 · published by Ubuntu SecurityCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L
Assessment source · checked 2026-11-19T16:49:50.556Z
Verification by field
| Field | Status | Checked at (UTC) | Source |
|---|---|---|---|
| kev | verified | 2026-11-19T16:57:41.748Z | CISA KEV |
| cvss | verified | 2026-11-19T12:57:33.676Z | CVE Program |
| epss | verified | 2026-11-19T16:04:40.990Z | FIRST EPSS |
| patches | verified | 2026-11-19T16:57:02.699Z | Ubuntu Security |
| affected | verified | 2026-11-19T12:57:33.676Z | CVE Program |
| lifecycle | verified | 2026-11-19T12:57:33.676Z | CVE Program |
Affected versions and configuration
Python Software Foundation CPython; modules: tarfile; 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§ion=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 JSONUbuntu 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§ion=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 JSONUbuntu 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§ion=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 JSONUbuntu 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§ion=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.4",
"release_codename": "upstream"
},
{
"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": "not-affected",
"component": null,
"description": "3.13.5",
"release_codename": "questing"
}
]
}
]Archived source JSONCVE Program · cve-json · full conditions
{
"affected": [
{
"repo": "https://github.com/python/cpython",
"vendor": "Python Software Foundation",
"modules": [
"tarfile"
],
"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-2025-4517",
"role": "CISA Coordinator",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "yes"
},
{
"Technical Impact": "total"
}
],
"version": "2.0.3",
"timestamp": "2025-10-24T03:55:18.283911Z"
}
}
}
],
"providerMetadata": {
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP",
"dateUpdated": "2026-08-04T14:26:54.922Z"
}
}
]
}Archived source JSONCorrection 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 type | Distribution / release | Package | Channel | Version or source note | Source |
|---|---|---|---|---|---|
| distribution-package | Ubuntu / noble | python3.12 | security | 3.12.3-1ubuntu0.7 | Official record |
| distribution-package | Ubuntu / oracular | python3.12 | security | 3.12.7-1ubuntu2.2 | Official record |
| upstream-release | upstream / upstream | python3.13 | Not a distribution channel | 3.13.4 | Official record |
| distribution-package | Ubuntu / oracular | python3.13 | security | 3.13.0-1ubuntu0.3 | Official record |
| distribution-package | Ubuntu / plucky | python3.13 | security | 3.13.3-1ubuntu0.2 | Official record |
Vendor notices and operational guidance
No connected vendor notice is available for this record.
Original sources and dates
- Ubuntu SecurityConsulted: 2026-11-19T16:49:50.556ZArchived source JSON
Source publication: 2025-06-03T00:00:00.000Z
Source modification: 2025-06-24T15:37:55.124ZDocument fingerprint
a9044e9218a1f55007e114042caced6241eae91e119becfa310727a96eddb7b5 - CVE ProgramConsulted: 2026-11-19T12:57:33.676ZArchived source JSON
Source publication: 2025-06-03T12:58:50.352Z
Source modification: 2026-08-04T14:26:54.922ZDocument fingerprint
943d4c4ef4b05b75d1a31282c05ab83ed1016bb79fd10a15f59bfc56166a3ede - Ubuntu SecurityConsulted: 2026-11-19T16:56:45.800ZArchived source JSON
Source publication: 2025-06-03T00:00:00.000Z
Source modification: 2025-06-24T15:37:55.124ZDocument fingerprint
a537ec620ca3690d80a15d9f35a51b80792707064f5fa7e3e27de8495089f7df - Ubuntu SecurityConsulted: 2026-11-19T16:57:02.699ZArchived source JSON
Source publication: 2025-06-03T00:00:00.000Z
Source modification: 2025-06-24T15:37:55.124ZDocument fingerprint
dc039704684b3bb0e7b1dd0274e96509c131f9eafe7d9ec94f248a70c369b933 - Ubuntu SecurityConsulted: 2026-11-19T16:56:43.528ZArchived source JSON
Source publication: 2025-06-03T00:00:00.000Z
Source modification: 2025-06-24T15:37:55.124ZDocument fingerprint
e7bec4be4109251c63608089a9ad8202eed8a3103749d17aeeafa02cfa44284c - CISA KEVConsulted: 2026-11-19T16:57:41.748ZArchived source JSON
Source publication: not supplied
Source modification: 2026-11-18T19:17:41.0354ZDocument fingerprint
a35fdc67c7d9802988dcfc1d3ff1198da327948d1db122ab7692ac201055ac56 - FIRST EPSSConsulted: 2026-11-19T16:04:40.990ZArchived source JSON
Source publication: not supplied
Source modification: not suppliedDocument fingerprint
a61f5deec65b1a30b54fc6ad686dda6767c11c22f88b3bf1af4c6db9cb0d67b3
Official status history
- UNKNOWN → PUBLISHED · · evidence