---
id: CVE-2026-87910
title: >-
  When tarfile extracts a link on a system that doesn't support links, it falls
  back to extracting a member from the archive
summary: >-
  When tarfile extracts a link on a system that doesn't support links, it falls
  back to extracting a member from the archive. In this case, the filter
  function is run twice: once for the extracted member, and once with name set
  to the loca…
severity: medium
cvss: 5.7
cvssVector: 'CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:A/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N'
cwe:
  - CWE-22
  - CWE-59
  - CWE-252
vendor: Python Software Foundation
product: CPython
affected:
  - CPython < 3.10.22
  - CPython >= 3.11.0 < 3.11.17
  - CPython >= 3.12.0 < 3.12.15
  - CPython >= 3.13.0 < 3.13.16
  - CPython >= 3.15.0a1 < 3.15.0rc3
patched:
  - hardened_images
published: '2026-09-11'
updated: '2026-10-03'
sourceUpdated: '2026-10-03T01:17:25.477'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-87910'
references:
  - url: >-
      https://github.com/python/cpython/commit/2eb0c2f1dc71847731b6ab30aebefd058d482a7f
    label: cna@python.org
  - url: >-
      https://github.com/python/cpython/commit/3105a3498aaf681ce128cf5baf83c2e5574267c5
    label: cna@python.org
  - url: >-
      https://github.com/python/cpython/commit/764fd0af8d9e19d3684a58d2e58bf770f0605036
    label: cna@python.org
  - url: >-
      https://github.com/python/cpython/commit/9c17bace90f88dfba6d0e2fe23c8e7ae35f83955
    label: cna@python.org
  - url: >-
      https://github.com/python/cpython/commit/a4919937a4e1e69a0d178909c6f20557eca5d1d0
    label: cna@python.org
  - url: >-
      https://github.com/python/cpython/commit/c1f106d240c4ffcb3608ed0a20e8aba6c865f6d3
    label: cna@python.org
  - url: >-
      https://github.com/python/cpython/commit/d9565e54b1fc6d63c5be9afd58114499128fa57b
    label: cna@python.org
  - url: >-
      https://github.com/python/cpython/commit/fb2f0bbc3b35264f09cc2cb2934b7987527a6bc2
    label: cna@python.org
  - url: 'https://github.com/python/cpython/issues/157265'
    label: cna@python.org
  - url: 'https://github.com/python/cpython/pull/157266'
    label: cna@python.org
  - url: >-
      https://mail.python.org/archives/list/security-announce@python.org/thread/57TBTLL2W6APMZR3A25B2YV7GL3EPTDJ/
    label: cna@python.org
  - url: 'http://www.openwall.com/lists/oss-security/2026/09/11/8'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-87910.json
  - url: 'https://access.redhat.com/security/cve/CVE-2026-87910'
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2531985'
  - url: 'https://www.cve.org/CVERecord?id=CVE-2026-87910'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-87910'
  - url: 'https://access.redhat.com/errata/RHSA-2026:67572'
  - url: 'https://access.redhat.com/errata/RHSA-2026:67574'
  - url: 'https://access.redhat.com/errata/RHSA-2026:67575'
  - url: 'https://access.redhat.com/errata/RHSA-2026:67607'
  - url: 'https://access.redhat.com/errata/RHSA-2026:67606'
tags:
  - nvd
  - cve.org
  - csaf
  - vex
  - red-hat
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-09-11T19:23:39.973519Z'
cvssSource: cna
epss: 0.00609
epssPercentile: 0.48965
ingestedAt: '2026-09-14T15:23:07.484Z'
---

## Overview

When tarfile extracts a link on a system that doesn't support links, it falls back to extracting a member from the archive. In this case, the filter function is run twice: once for the extracted member, and once with name set to the location of the link. For one of the calls, the return value was ignored. Instead, the member should be skipped if either call returns None.

## Remediation

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

## Vendor advisories

- **Red Hat VEX** · Moderate · affected: Red Hat Hardened Images · no fix planned: Red Hat Hardened Images · updated 2026-09-14 · [vex](https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-87910.json)
- **RHSA-2026:67572** · Red Hat · fixed in: Red Hat Hardened Images · released 2026-09-15 · [advisory](https://access.redhat.com/errata/RHSA-2026:67572)
- **RHSA-2026:67574** · Red Hat · fixed in: Red Hat Hardened Images · released 2026-09-15 · [advisory](https://access.redhat.com/errata/RHSA-2026:67574)
- **RHSA-2026:67575** · Red Hat · fixed in: Red Hat Hardened Images · released 2026-09-15 · [advisory](https://access.redhat.com/errata/RHSA-2026:67575)
- **RHSA-2026:67607** · Red Hat · fixed in: Red Hat Hardened Images · released 2026-09-15 · [advisory](https://access.redhat.com/errata/RHSA-2026:67607)
- **RHSA-2026:67606** · Red Hat · fixed in: Red Hat Hardened Images · released 2026-09-15 · [advisory](https://access.redhat.com/errata/RHSA-2026:67606)
