CVE Database›Document archive›CVE-2026-4360

CVE-2026-4360

python: Python Tarfile: Unexpected file ownership when extracting hardlinks

Loading…

Severity

Moderate

Red Hat Product Security

5

CVSS 3.1

Review impact separately from score.

Published · June 30, 2026

Updated · October 15, 2026

Description

A flaw was found in the Python Tarfile.extract() function. This vulnerability occurs when processing untrusted tar files containing hardlinks, as the filter parameter is not correctly enforced. An attacker could exploit this to write files with unintended user or group ownership, potentially leading to unauthorized modifications or privilege issues on the system.

Statement

This Moderate flaw in Python's Tarfile module allows a local attacker with low privileges to achieve a high integrity impact. By tricking a user into extracting a specially crafted untrusted tar file containing hardlinks, the attacker could cause files to be written with unexpected ownership, potentially leading to unauthorized file modification.

CVSS score applicability

The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

Mitigation

No mitigation is specified in collected source.

CVSS / CWE

CVSS 3.1 · 5
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:N

CWE-279 · Incorrect Execution-Assigned Permissions