CVE-2025-71358: Incomplete Picklescan Unsafe Globals

Picklescan's `_unsafe_globals` blocklist is incomplete. Leaving certain attributes in `cProfile`, `profile`, and entirely omitting gadgets like `pkgutil.resolve_name` allows malicious pickle files to bypass malware detection and achieve arbitrary code execution if the analyzed files are later deserialized.

Provally CuratedPublic repositoryHighMedium confidenceVerifiedApache-2.0Python
greprules fetch cve-2025-71358-incomplete-picklescan-unsafe-globals --engine opengrep

Description

Picklescan's `_unsafe_globals` blocklist is incomplete. Leaving certain attributes in `cProfile`, `profile`, and entirely omitting gadgets like `pkgutil.resolve_name` allows malicious pickle files to bypass malware detection and achieve arbitrary code execution if the analyzed files are later deserialized.