CVE-2026-60112: Os Path Join Traversal

Unvalidated user input is passed directly to os.path.join(). This allows an attacker to escape the intended limited directory by providing traversal sequences (e.g., '../') or an absolute path (e.g., '/bin/sh'). os.path.join() will discard the preceding path components if an absolute path is provided. Use pathlib.Path, resolve(), and safely restrict the path

Provally CuratedPublic repositoryHighMedium confidenceVerifiedApache-2.0Python
greprules fetch cve-2026-60112-os-path-join-traversal --engine opengrep

Description

Unvalidated user input is passed directly to os.path.join(). This allows an attacker to escape the intended limited directory by providing traversal sequences (e.g., '../') or an absolute path (e.g., '/bin/sh'). os.path.join() will discard the preceding path components if an absolute path is provided. Use pathlib.Path, resolve(), and safely restrict the path