---
id: CVE-2026-82049
title: "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"
summary: "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 …"
severity: high
cvss: 8.4
cvssVector: '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'
cwe:
  - CWE-59
vendor: Python Software Foundation
product: CPython
affected:
  - CPython < 3.12.15
  - CPython >= 3.13.0 < 3.13.16
  - CPython >= 3.14.0a1 < 3.14.0b1
patched:
  - hardened_images
published: '2026-09-14'
updated: '2026-10-11'
sourceUpdated: '2026-10-11T01:16:25.820'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-82049'
references:
  - url: >-
      https://github.com/python/cpython/commit/197663d63afed27f66e10e23c194e8a634e60913
    label: cna@python.org
  - url: >-
      https://github.com/python/cpython/commit/28f315486b3da0352b9a1de1c3c97f4127ba4771
    label: cna@python.org
  - url: >-
      https://github.com/python/cpython/commit/5a57248b22ad3b9aafcaaadae2c304a1923daeca
    label: cna@python.org
  - url: >-
      https://github.com/python/cpython/commit/b38be2e6cf9d989075ab73412c63e003ebad4ff3
    label: cna@python.org
  - url: >-
      https://github.com/python/cpython/commit/b8f23e307097552eaea2604383a12ab280520d0d
    label: cna@python.org
  - url: >-
      https://github.com/python/cpython/commit/c66df4e70435d257fd488b35ea129c6f317433a8
    label: cna@python.org
  - url: >-
      https://github.com/python/cpython/commit/cc1689830c6b9aaddded2fb9f2fe8116867e2c0e
    label: cna@python.org
  - url: >-
      https://github.com/python/cpython/commit/cccc7ec30212dba2abef53ce4a2bed112ddb690c
    label: cna@python.org
  - url: 'https://github.com/python/cpython/issues/157190'
    label: cna@python.org
  - url: 'https://github.com/python/cpython/pull/157191'
    label: cna@python.org
  - url: >-
      https://mail.python.org/archives/list/security-announce@python.org/thread/EFJWGAZJA56AKSBR2WHMHQZO7RRLZPRH/
    label: cna@python.org
  - url: 'http://www.openwall.com/lists/oss-security/2026/09/14/27'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-82049.json
  - url: 'https://access.redhat.com/security/cve/CVE-2026-82049'
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2533296'
  - url: 'https://www.cve.org/CVERecord?id=CVE-2026-82049'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-82049'
  - url: 'https://access.redhat.com/errata/RHSA-2026:65505'
  - url: 'https://access.redhat.com/errata/RHSA-2026:68132'
  - url: 'https://access.redhat.com/errata/RHSA-2026:68135'
  - url: 'https://access.redhat.com/errata/RHSA-2026:68154'
  - url: 'https://access.redhat.com/errata/RHSA-2026:68309'
tags:
  - nvd
  - cve.org
  - csaf
  - vex
  - red-hat
epss: 0.00188
epssPercentile: 0.083
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: total
  timestamp: '2026-09-15T00:00:00+00:00'
cvssSource: cna
scores:
  cna: 8.4
  vendor: 7.1
ingestedAt: '2026-09-14T20:14:21.139Z'
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.

## Vendor advisories

- **Red Hat VEX** · Important · affected: Red Hat Hardened Images · no fix planned: Red Hat Hardened Images · updated 2026-09-15 · [vex](https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-82049.json)
- **RHSA-2026:65505** · Red Hat · fixed in: Red Hat Hardened Images · released 2026-09-08 · [advisory](https://access.redhat.com/errata/RHSA-2026:65505)
- **RHSA-2026:68132** · Red Hat · fixed in: Red Hat Hardened Images · released 2026-09-16 · [advisory](https://access.redhat.com/errata/RHSA-2026:68132)
- **RHSA-2026:68135** · Red Hat · fixed in: Red Hat Hardened Images · released 2026-09-16 · [advisory](https://access.redhat.com/errata/RHSA-2026:68135)
- **RHSA-2026:68154** · Red Hat · fixed in: Red Hat Hardened Images · released 2026-09-16 · [advisory](https://access.redhat.com/errata/RHSA-2026:68154)
- **RHSA-2026:68309** · Red Hat · fixed in: Red Hat Hardened Images · released 2026-09-16 · [advisory](https://access.redhat.com/errata/RHSA-2026:68309)
