CVE-2025-66034: Python Os Path Join Tainted Filename

An attribute representing a filename (e.g., `.filename`) is passed to `os.path.join` without path sanitization. If this attribute stems from attacker-controlled input (like a parsed XML structure), it can result in directory traversal or arbitrary file writes. In Python, `os.path.join` resolves absolute paths by completely discarding the designated base dire

Provally CuratedPublic repositoryMediumMedium confidenceVerifiedApache-2.0Python
greprules fetch cve-2025-66034-python-os-path-join-tainted-filename --engine opengrep

Description

An attribute representing a filename (e.g., `.filename`) is passed to `os.path.join` without path sanitization. If this attribute stems from attacker-controlled input (like a parsed XML structure), it can result in directory traversal or arbitrary file writes. In Python, `os.path.join` resolves absolute paths by completely discarding the designated base dire