CVE-2026-27905: Tarfile Custom Extract Symlink Traversal

A custom tarfile extraction routine extracts symlinks without validating the symlink's target (`member.linkname`). An attacker can exploit this to create a symlink pointing outside the intended destination directory, allowing arbitrary file writes when subsequent tar members are extracted through the symlink. Validate that the resolved symlink target points

Provally CuratedPublic repositoryHighMedium confidenceVerifiedApache-2.0Python
greprules fetch cve-2026-27905-tarfile-custom-extract-symlink-traversal --engine opengrep

Description

A custom tarfile extraction routine extracts symlinks without validating the symlink's target (`member.linkname`). An attacker can exploit this to create a symlink pointing outside the intended destination directory, allowing arbitrary file writes when subsequent tar members are extracted through the symlink. Validate that the resolved symlink target points