🔍 CVE-2026-85714

9.1
CVSS Score
CRITICAL
2026-10-14
2026-10-16 16:00
✅ 완료

🇰🇷 한글 설명

Stirling-PDF 2.13.2 미만 버전에서 인증된 관리자가 조작된 SQL 파일을 업로드하여 임의의 파일을 읽거나 운영체제 명령을 실행할 수 있는 취약점이 발견되었습니다. H2 데이터베이스의 불충분한 화이트리스트 검증을 악용하여 위험한 함수를 실행함으로써 JVM 서비스 계정 권한으로 명령을 실행할 수 있습니다.

💡 쉬운 설명

관리자 권한을 가진 사용자가 특수하게 제작된 파일을 올리면, 프로그램이 이를 잘못 처리하여 컴퓨터에 마음대로 명령을 내릴 수 있는 보안 구멍입니다. 이로 인해 해커가 서버의 파일을 읽거나 시스템을 제어할 위험이 있습니다.

🇺🇸 원문 (English)

Stirling-PDF is a locally hosted web application that facilitates various operations on PDF files. Prior to 2.13.2, an authenticated administrator using the default H2 database and security mode can upload a crafted SQL file to POST /api/v1/database/import-database. DatabaseService.validateSqlContent() splits normalized input on semicolons and accepts a statement when it contains any allowed keyword, allowing dangerous H2 functions such as FILE_READ and CSVWRITE, plus CREATE ALIAS, to bypass the insufficient whitelist and execute side effects when RUNSCRIPT processes the file. This permits arbitrary file access. The demonstrated operating-system command execution chain writes attacker-controlled startup files to a user-site location and then triggers an application Python interpreter configured to load those startup files, resulting in command execution as the JVM service account. This issue is fixed in version 2.13.2.

📍 영향받는 시스템

Stirling-PDF 버전 2.13.2 미만

⚔️ 공격 벡터

인증된 관리자 권한을 이용한 조작된 SQL 파일 업로드 (POST /api/v1/database/import-database)

🛡️ 대응 방법

Stirling-PDF를 최신 버전인 2.13.2 이상으로 즉시 업데이트하십시오.

🔧 검증 코드

명령어 실행 결과로 2.13.2 이상의 버전 숫자가 출력되면 안전하며, 그 미만 버전이 출력되면 취약한 상태입니다.

Shell / Script
curl -s http://localhost:8080/version | grep -E '2.13.2'

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

H2 Database