CVE-2026-10042: Insecure Fastapi Pickle Deserialization

Insecure deserialization of user-controlled request data using `pickle`. This can lead to remote code execution (RCE) if an attacker provides a crafted serialized payload. Do not use `pickle` with untrusted data; instead, consider JSON, or correctly restrict unpickling operations.

Provally CuratedPublic repositoryCriticalMedium confidenceVerifiedApache-2.0Python
greprules fetch cve-2026-10042-insecure-fastapi-pickle-deserialization --engine opengrep

Description

Insecure deserialization of user-controlled request data using `pickle`. This can lead to remote code execution (RCE) if an attacker provides a crafted serialized payload. Do not use `pickle` with untrusted data; instead, consider JSON, or correctly restrict unpickling operations.