CVE-2026-35586: Python Archive Symlink Escape

Code iterates over archive members prior to extraction but does not appear to validate symlink targets. While checking for path traversal is common, failing to check for symbolic links allows an attacker to extract a payload outside the destination directory (symlink escape). Ensure you validate 'issym()' and 'islnk()' for tarfiles, or 'external_attr' for zi

Provally CuratedPublic repositoryHighMedium confidenceVerifiedApache-2.0Python
greprules fetch cve-2026-35586-python-archive-symlink-escape --engine opengrep

Description

Code iterates over archive members prior to extraction but does not appear to validate symlink targets. While checking for path traversal is common, failing to check for symbolic links allows an attacker to extract a payload outside the destination directory (symlink escape). Ensure you validate 'issym()' and 'islnk()' for tarfiles, or 'external_attr' for zi