🔍 CVE-2026-47669

0.0
CVSS Score
UNKNOWN
2026-07-23
2026-07-28 16:17
✅ 완료

🇰🇷 한글 설명

DbGate 7.1.8 및 이전 버전의 unzipDirectory() 함수에서 압축 해제된 파일 경로가 출력 디렉토리를 벗어나는지 검증하지 않는 취약점이 발견되었습니다. 공격자가 ../ 경로가 포함된 악성 ZIP 파일을 업로드하면 파일 시스템의 임의 위치에 파일을 작성할 수 있습니다. 특히 Docker 환경에서 root 권한으로 실행되고 인증 없이 JWT 토큰을 발급받을 수 있어 네트워크 인접 공격자에게 노출될 위험이 큽니다.

💡 쉬운 설명

압축 파일을 풀 때 파일이 원래 있어야 할 폴더를 벗어나 컴퓨터의 중요한 시스템 폴더에 마음대로 저장될 수 있는 결함입니다. 해커가 이 기능을 이용해 컴퓨터의 중요한 파일을 망가뜨리거나 조작할 수 있습니다.

🇺🇸 원문 (English)

DbGate is cross-platform database manager. In versions 7.1.8 and prior, the `unzipDirectory()` function in `packages/api/src/shell/unzipDirectory.js` (line 27) does not validate that extracted file paths stay within the output directory. A malicious ZIP with `../` entries writes files anywhere on the filesystem. In the default Docker deployment, DbGate runs as root and the `none` auth provider issues JWT tokens without credentials via `POST /auth/login`, so this is exploitable by any network-adjacent attacker. Version 7.1.9 fixes the issue.

📍 영향받는 시스템

DbGate 7.1.8 및 그 이전 버전

⚔️ 공격 벡터

악성 경로(../)가 포함된 ZIP 파일을 업로드하여 파일 시스템 임의 위치에 파일 쓰기

🛡️ 대응 방법

DbGate를 취약점이 해결된 버전인 7.1.9 이상으로 업데이트하십시오.

🔧 검증 코드

출력된 결과에서 DbGate의 버전을 확인하여 7.1.9 미만인지 체크합니다.

Shell / Script
npm list -g dbgate || dpkg -l | grep dbgate

💻 영향받는 소프트웨어

Docker