🔍 CVE-2026-31886

9.1
CVSS Score
CRITICAL
2026-03-13
2026-06-17 10:34
✅ 완료

🇰🇷 한글 설명

Dagu 워크플로우 엔진 2.2.4 미만 버전에서 발생하는 취약점으로, dagRunId 필드에 대한 검증 부재로 인해 경로 탐색(Path Traversal)이 가능합니다. 공격자가 상위 디렉토리 이동 문자열을 입력하면 시스템의 임시 디렉토리(/tmp)가 삭제되어 서비스 거부(DoS) 상태를 유발할 수 있습니다.

💡 쉬운 설명

프로그램이 파일을 임시로 저장하는 폴더를 관리할 때, 공격자가 특수한 명령어를 입력해 엉뚱한 폴더를 지우게 만드는 취약점입니다. 이로 인해 시스템의 중요한 임시 파일들이 모두 삭제되어 컴퓨터가 제대로 작동하지 않을 수 있습니다.

🇺🇸 원문 (English)

Dagu is a workflow engine with a built-in Web user interface. Prior to 2.2.4, the dagRunId request field accepted by the inline DAG execution endpoints is passed directly into filepath.Join to construct a temporary directory path without any format validation. Go's filepath.Join resolves .. segments lexically, so a caller can supply a value such as ".." to redirect the computed directory outside the intended /tmp/<name>/<id> path. A deferred cleanup function that calls os.RemoveAll on that directory then runs unconditionally when the HTTP handler returns, deleting whatever directory the traversal resolved to. With dagRunId set to "..", the resolved directory is the system temporary directory (/tmp on Linux). On non-root deployments, os.RemoveAll("/tmp") removes all files in /tmp owned by the dagu process user, disrupting every concurrent dagu run that has live temp files. On root or Docker deployments, the call removes the entire contents of /tmp, causing a system-wide denial of service. This vulnerability is fixed in 2.2.4.

📍 영향받는 시스템

Dagu workflow engine versions prior to 2.2.4

⚔️ 공격 벡터

HTTP 요청의 dagRunId 필드에 '..'과 같은 경로 탐색 문자열을 삽입하여 실행

🛡️ 대응 방법

Dagu를 최신 보안 패치가 적용된 2.2.4 버전 이상으로 업데이트하십시오.

🔧 검증 코드

출력된 버전이 2.2.4 미만인 경우 해당 취약점에 노출된 상태입니다.

Shell / Script
dagu --version 2>/dev/null || echo 'Dagu not installed'

📊 CVSS Vector String

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:H

💻 영향받는 소프트웨어

Docker