CVE-2026-33236: Insecure Path Join Open

Missing scoped path resolution when joining strings for file access. Immediately opening a joined path without validating its final resolved location against the intended root directory can permit attackers to read arbitrary files via path traversal or malicious symbolic links. Ensure the resulting path is securely validated before being opened.

Provally CuratedPublic repositoryHighMedium confidenceVerifiedApache-2.0Python
greprules fetch cve-2026-33236-insecure-path-join-open --engine opengrep

Description

Missing scoped path resolution when joining strings for file access. Immediately opening a joined path without validating its final resolved location against the intended root directory can permit attackers to read arbitrary files via path traversal or malicious symbolic links. Ensure the resulting path is securely validated before being opened.