CVE-2026-107204: Python Fastapi Request Controlled Dynamic Code Execution

HTTP request-controlled data reaches dynamic code execution (exec/eval/compile) in the server process with no default-deny gate. Any client that can reach the endpoint can run arbitrary Python as the service user. A hand-rolled restricted __builtins__ dict is not a security boundary: real builtins are recoverable from any function object reachable from value

Provally CuratedPublic repositoryHighHigh confidenceVerifiedApache-2.0Python
greprules fetch cve-2026-107204-python-fastapi-request-controlled-dynamic-code-execution --engine opengrep

Description

HTTP request-controlled data reaches dynamic code execution (exec/eval/compile) in the server process with no default-deny gate. Any client that can reach the endpoint can run arbitrary Python as the service user. A hand-rolled restricted __builtins__ dict is not a security boundary: real builtins are recoverable from any function object reachable from value