CVE-2026-46607: Insecure Pickle File Deserialization

Deserializing data from a file using `pickle` allows arbitrary code execution if the file can be tampered with by an attacker. Attackers with write access to predictable file paths (like cache files) can deploy malicious pickle payloads. Use a safer data format like JSON.

Provally CuratedPublic repositoryHighMedium confidenceVerifiedApache-2.0Python
greprules fetch cve-2026-46607-insecure-pickle-file-deserialization --engine opengrep

Description

Deserializing data from a file using `pickle` allows arbitrary code execution if the file can be tampered with by an attacker. Attackers with write access to predictable file paths (like cache files) can deploy malicious pickle payloads. Use a safer data format like JSON.