← 취약점·업데이트

긴급취약점 권고PythonFastAPI

fastapi-code-generator: Import-time RCE via response status-code key -> unescaped @app.get(..., responses={...}) dict

영향

패키지영향받는 버전수정 버전
pip:fastapi-code-generator< 0.8.10.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…

GitHub Advisory Database에서 읽기

2026. 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.