🔍 CVE-2026-42590

8.2
CVSS Score
HIGH
2026-05-14
2026-06-17 10:48
✅ 완료

🇰🇷 한글 설명

Gotenberg 8.30.0 이전 버전의 ExifTool 메타데이터 필터를 그룹 접두사 문법(File:FileName, System:Directory 등)으로 우회하여 서버의 파일을 임의로 이름 변경, 이동, 링크 생성할 수 있습니다. FilePermissions, FileUserID, FileGroupID 태그로 파일 속성도 직접 수정 가능하며, 8.30.0 이상으로 업그레이드하면 해결됩니다.

💡 쉬운 설명

PDF 변환 도구 Gotenberg가 파일 안전성 검사를 제대로 하지 않아서, 악의적인 요청으로 서버의 파일을 옮기거나 이름을 마음대로 바꿀 수 있게 되었습니다. 새 버전으로 업데이트하면 이 문제가 고쳐집니다.

🇺🇸 원문 (English)

Gotenberg is a Docker-powered stateless API for PDF files. Prior to 8.30.0, The ExifTool metadata write blocklist in Gotenberg can be bypassed using ExifTool's group-prefix syntax, enabling arbitrary file rename, move, hardlink, and symlink creation on the server. ExifTool supports group-prefix syntax where File:FileName is processed identically to FileName -- the prefix is stripped by SetNewValue in Writer.pl before tag matching. The safeKeyPattern regex (^[a-zA-Z0-9\-_.:]+$) allows colons, so prefixed tag names pass validation. Any prefix works: File:FileName, System:Directory, a:HardLink, etc. Additionally, FilePermissions, FileUserID, and FileGroupID pseudo-tags are not blocked at all and can modify file attributes without any prefix. This vulnerability is fixed in 8.30.0.

📍 영향받는 시스템

Gotenberg < 8.30.0 (Docker 기반 상태 비저장 API)

⚔️ 공격 벡터

PDF 변환 API 요청에 ExifTool 그룹 접두사 문법을 포함시켜 검증 우회, 임의 파일 작업 및 속성 변경 실행

🛡️ 대응 방법

Gotenberg를 8.30.0 이상으로 업그레이드

🔧 검증 코드

표시된 버전이 8.30.0 미만이면 취약상태이고, 8.30.0 이상이면 패치되어 있으며, 출력이 없으면 Gotenberg가 설치되지 않았습니다.

Shell / Script
gotenberg --version 2>/dev/null | grep -oE '([0-9]+\.[0-9]+\.[0-9]+)' || docker ps -a | grep gotenberg

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Docker