🔍 CVE-2026-119673

2.8
CVSS Score
LOW
2026-11-03
2026-11-03 20:00
✅ 완료

🇰🇷 한글 설명

MongoDB Database Tools의 mongofiles는 get_regex 작업 시 출력 경로를 검증할 때 기존 상위 디렉터리의 심볼릭 링크를 해석하지 않습니다. 권한이 없는 사용자가 GridFS 파일을 업로드하고 운영자의 다운로드 작업 디렉터리에 심볼릭 링크를 배치할 수 있다면, 이후 검색 과정에서 해당 디렉터리 밖에 사용자 제어 데이터를 포함한 파일이 생성될 수 있습니다. 영향 버전은 100.2.0 이상 100.20.1 미만입니다.

💡 쉬운 설명

MongoDB 파일 도구가 심볼릭 링크를 제대로 확인하지 않아, 공격자가 지정된 폴더 밖에 파일을 만들 수 있는 문제입니다. 운영자가 해당 파일을 가져올 때 공격자가 조작한 내용이 엉뚱한 위치에 저장될 수 있습니다.

🇺🇸 원문 (English)

MongoDB Database Tools mongofiles does not resolve existing parent-directory symlinks when validating output paths for get_regex. An unauthorized user who can both upload a GridFS file and place a symlink in the operator's download working directory can cause a later retrieval to create a file containing unauthorized user-controlled data outside that directory, using the operator process's filesystem permissions. The issue can occur with default traversal and overwrite settings. Exploitation requires an operator to retrieve matching files from the affected working directory; the demonstrated default behavior creates a new file rather than overwriting an existing file. This issue affects MongoDB Database Tools versions 100.2.0 through versions before 100.20.1.

📍 영향받는 시스템

MongoDB Database Tools 100.2.0 이상 100.20.1 미만 버전 (mongofiles)

⚔️ 공격 벡터

공격자가 GridFS 파일을 업로드하고 운영자의 작업 디렉터리에 심볼릭 링크를 만든 뒤, 운영자가 mongofiles get_regex로 파일을 검색·다운로드할 때 디렉터리 외부에 파일을 생성하도록 유도

🛡️ 대응 방법

MongoDB Database Tools를 100.20.1 이상으로 업데이트하고, 다운로드 작업 디렉터리에 대한 쓰기 권한을 제한하며 심볼릭 링크 존재 여부를 점검

🔧 검증 코드

출력된 버전이 100.2.0 이상 100.20.1 미만이면 취약하며, 100.20.1 이상이면 패치가 적용된 상태입니다.

Shell / Script
mongofiles --version 2>/dev/null | grep -i 'version'

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Spring Data MongoDB