🔍 CVE-2026-54732

6.5
CVSS Score
MEDIUM
2026-08-27
2026-09-09 21:09
✅ 완료

🇰🇷 한글 설명

libreoffice-convert Node.js 모듈 1.8.2 미만 버전에서 발생하는 경로 탐색 취약점입니다. 공격자가 제어 가능한 fileName 옵션에 ../와 같은 경로 조작 문자를 포함할 경우, 임시 디렉토리를 벗어나 시스템의 임의 경로에 파일을 작성할 수 있습니다. 이를 통해 SSH 키나 크론 설정 등 중요한 파일을 변조할 수 있습니다.

💡 쉬운 설명

문서 변환 프로그램이 파일 이름을 처리할 때 보안 검사를 제대로 하지 않아 발생하는 문제입니다. 나쁜 의도를 가진 파일 이름을 입력하면 컴퓨터의 중요한 설정 파일을 마음대로 바꿀 수 있습니다.

🇺🇸 원문 (English)

libreoffice-convert is a Node.js module for converting office documents to different formats. Prior to 1.8.2, index.js uses the caller-controlled options.fileName value in path.join(tempDir.name, fileName) without reducing it to a base name. A filename containing ../ can escape the temporary directory because path.basename() normalization is missing and write the supplied document buffer to an arbitrary path writable by the process, including an SSH authorized_keys file, a cron configuration, or a web root. This issue is fixed in version 1.8.2.

📍 영향받는 시스템

libreoffice-convert Node.js module versions prior to 1.8.2

⚔️ 공격 벡터

사용자 입력값이 포함된 fileName 옵션을 통해 경로 탐색(Path Traversal) 공격 수행

🛡️ 대응 방법

libreoffice-convert 모듈을 1.8.2 버전 이상으로 업데이트

🔧 검증 코드

출력된 버전이 1.8.2 미만이면 취약한 상태이며, 1.8.2 이상이면 안전합니다.

Shell / Script
npm list libreoffice-convert

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Node.js