{"id":"CVE-2026-82049","state":"PUBLISHED","title":"tarfile extraction filters allow file modification and content disclosure via hard link to symlink","description":"In CPython 3.13 and earlier, the tarfile module's data and tar extraction filters are vulnerable to crafted archives containing a hard link to a symbolic link. Such archives may cause extraction to modify the permissions or modification time of a file outside the destination directory, or expose the contents of that file within the extracted tree.","publishedAt":"2026-09-14T19:14:03.873Z","updatedAt":"2026-10-11T00:39:42.376Z","severity":{"score":8.4,"label":"High","version":"4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N","source":"PSF"},"assigner":"PSF","products":["Python Software Foundation CPython"],"affected":[{"vendor":"Python Software Foundation","product":"CPython","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"3.10.22","versionType":"python"},{"version":"3.11.0","status":"affected","lessThan":"3.11.17","versionType":"python"},{"version":"3.12.0","status":"affected","lessThan":"3.12.15","versionType":"python"},{"version":"3.13.0","status":"affected","lessThan":"3.13.16","versionType":"python"},{"version":"3.14.0a1","status":"affected","lessThan":"3.14.0b1","versionType":"python"}],"modules":["tarfile"],"repo":"https://github.com/python/cpython"}],"references":["https://github.com/python/cpython/commit/5a57248b22ad3b9aafcaaadae2c304a1923daeca","https://github.com/python/cpython/issues/157190","https://github.com/python/cpython/pull/157191","https://mail.python.org/archives/list/security-announce@python.org/thread/EFJWGAZJA56AKSBR2WHMHQZO7RRLZPRH/","https://github.com/python/cpython/commit/b38be2e6cf9d989075ab73412c63e003ebad4ff3","https://github.com/python/cpython/commit/b8f23e307097552eaea2604383a12ab280520d0d","https://github.com/python/cpython/commit/197663d63afed27f66e10e23c194e8a634e60913","https://github.com/python/cpython/commit/28f315486b3da0352b9a1de1c3c97f4127ba4771","https://github.com/python/cpython/commit/c66df4e70435d257fd488b35ea129c6f317433a8","https://github.com/python/cpython/commit/cc1689830c6b9aaddded2fb9f2fe8116867e2c0e","https://github.com/python/cpython/commit/cccc7ec30212dba2abef53ce4a2bed112ddb690c","http://www.openwall.com/lists/oss-security/2026/09/14/27"],"weaknesses":["CWE-59"],"ingestedAt":"2026-10-29T20:13:15.269Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/82xxx/CVE-2026-82049.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-82049","state":"PUBLISHED","datePublished":"2026-09-14T19:14:03.873Z","dateUpdated":"2026-10-11T00:39:42.376Z","assignerShortName":"PSF","assignerOrgId":"28c92f92-d60d-412d-b760-e73465c3df22","dateReserved":"2026-08-27T22:23:05.514Z"},"containers":{"cna":{"title":"tarfile extraction filters allow file modification and content disclosure via hard link to symlink","descriptions":[{"lang":"en","value":"In CPython 3.13 and earlier, the tarfile module's data and tar extraction filters are vulnerable to crafted archives containing a hard link to a symbolic link. Such archives may cause extraction to modify the permissions or modification time of a file outside the destination directory, or expose the contents of that file within the extracted tree."}],"affected":[{"vendor":"Python Software Foundation","product":"CPython","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"3.10.22","versionType":"python"},{"version":"3.11.0","status":"affected","lessThan":"3.11.17","versionType":"python"},{"version":"3.12.0","status":"affected","lessThan":"3.12.15","versionType":"python"},{"version":"3.13.0","status":"affected","lessThan":"3.13.16","versionType":"python"},{"version":"3.14.0a1","status":"affected","lessThan":"3.14.0b1","versionType":"python"}],"modules":["tarfile"],"repo":"https://github.com/python/cpython"}],"references":[{"url":"https://github.com/python/cpython/commit/5a57248b22ad3b9aafcaaadae2c304a1923daeca","tags":["patch"]},{"url":"https://github.com/python/cpython/issues/157190","tags":["issue-tracking"]},{"url":"https://github.com/python/cpython/pull/157191","tags":["patch"]},{"url":"https://mail.python.org/archives/list/security-announce@python.org/thread/EFJWGAZJA56AKSBR2WHMHQZO7RRLZPRH/","tags":["vendor-advisory"]},{"url":"https://github.com/python/cpython/commit/b38be2e6cf9d989075ab73412c63e003ebad4ff3","tags":["patch"]},{"url":"https://github.com/python/cpython/commit/b8f23e307097552eaea2604383a12ab280520d0d","tags":["patch"]},{"url":"https://github.com/python/cpython/commit/197663d63afed27f66e10e23c194e8a634e60913","tags":["patch"]},{"url":"https://github.com/python/cpython/commit/28f315486b3da0352b9a1de1c3c97f4127ba4771","tags":["patch"]},{"url":"https://github.com/python/cpython/commit/c66df4e70435d257fd488b35ea129c6f317433a8","tags":["patch"]},{"url":"https://github.com/python/cpython/commit/cc1689830c6b9aaddded2fb9f2fe8116867e2c0e","tags":["patch"]},{"url":"https://github.com/python/cpython/commit/cccc7ec30212dba2abef53ce4a2bed112ddb690c","tags":["patch"]}],"metrics":[{"cvssV4_0":{"Automatable":"NOT_DEFINED","Recovery":"NOT_DEFINED","Safety":"NOT_DEFINED","attackComplexity":"LOW","attackRequirements":"NONE","attackVector":"LOCAL","baseScore":8.4,"baseSeverity":"HIGH","exploitMaturity":"NOT_DEFINED","privilegesRequired":"NONE","providerUrgency":"NOT_DEFINED","subAvailabilityImpact":"NONE","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","userInteraction":"PASSIVE","valueDensity":"NOT_DEFINED","vectorString":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N","version":"4.0","vulnAvailabilityImpact":"NONE","vulnConfidentialityImpact":"HIGH","vulnIntegrityImpact":"HIGH","vulnerabilityResponseEffort":"NOT_DEFINED"},"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-59","description":"CWE-59","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"PSF","orgId":"28c92f92-d60d-412d-b760-e73465c3df22","dateUpdated":"2026-10-11T00:39:42.376Z"},"credits":[{"lang":"en","type":"reporter","value":"Jing Qian (https://github.com/Civitasmass)"},{"lang":"en","type":"coordinator","value":"Stan Ulbrych (https://github.com/StanFromIreland)"},{"lang":"en","type":"remediation reviewer","value":"Petr Viktorin (https://github.com/encukou)"}],"source":{"discovery":"UNKNOWN"},"x_generator":{"engine":"cvelib 1.8.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-09-15T00:00:00+00:00","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3","id":"CVE-2026-82049"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-09-16T03:56:12.084Z"}},{"title":"CVE Program Container","references":[{"url":"http://www.openwall.com/lists/oss-security/2026/09/14/27"}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2026-09-14T20:07:50.158Z"}}]}}}