fastapi-code-generator: Import-time RCE via response status-code key -> unescaped @app.get(..., responses={...}) dict
受影响
| 软件包 | 受影响版本 | 修复版本 |
|---|---|---|
| pip:fastapi-code-generator | < 0.8.1 | 0.8.1 |
fastapi-code-generator (koxudaxi) emits an operation's extra responses into the route decorator's responses={...} dict, using each response's status-code key as a single-quoted string literal without escaping the '. A ' in a status-code key closes the dict-key string and, via concatenation, injects a live expression that the decorator argument evaluates when main.py is imported (the ASGI server imports it at startup) -- code execution, no request. The status-code key is a pure data field. Verif…
在 X 上接收快讯漏洞利用、重大泄露和故障,附应对措施。
关注 @vulnpulse_app2026/11/10 04:46,GitHub Advisory Database 发布了“fastapi-code-generator: Import-time RCE via response status-code key -> unescaped @app.get(..., responses={...}) dict”(类型:漏洞公告)。严重程度为“严重”(critical)。相关技术:Python、FastAPI。CVE:CVE-2026-63469。