인젝션 · 역직렬화Injection & deserialization
CWE-78 OS 명령 인젝션OS Command Injection
입력이 셸 명령의 일부로 해석되어 임의 명령이 실행되는 결함.Input becomes part of a shell command, allowing arbitrary commands.
근본 원인 패턴Root-cause pattern
셸을 거치는 실행 API에 입력을 이어붙인다. 셸 메타문자가 명령 경계를 바꾼다.Input is concatenated into a shell-invoking API; metacharacters change command boundaries.
전형적인 패치Typical fix
셸 없이 인자 배열로 실행, 허용목록 검증.Execute without a shell using argument arrays; allowlist validation.