인젝션 · 역직렬화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.

1 편posts

  1. CVE-2026-129433 Dokploy의 compose 백업 serviceName을 통한 저장형 셸 명령 인젝션Stored shell command injection via compose backup serviceName in Dokploy Dokploy · CWE-78 OS 명령 인젝션OS Command Injection 중급Intermediate 9.9

✎ CWE-78 퀴즈 풀기Quiz on CWE-78