---
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.15.0
patched:
  - hardened_images
published: '2026-09-11'
updated: '2026-09-22'
sourceUpdated: '2026-09-22T01:16:55.053'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-87910'
references:
  - url: >-
      https://github.com/python/cpython/commit/9c17bace90f88dfba6d0e2fe23c8e7ae35f83955
    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.00536
epssPercentile: 0.42724
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)
