🔍 CVE-2026-47727

8.8
CVSS Score
HIGH
2026-08-27
2026-10-14 15:52
✅ 완료

🇰🇷 한글 설명

Trilium 오픈소스 노트 앱의 0.104.0 미만 버전에서 'Safe import' 필터가 shareTemplate 관계를 제대로 차단하지 못하는 취약점이 발견되었습니다. 공격자가 조작된 가져오기 아카이브를 통해 서버 측 템플릿을 심으면, 사용자가 노트를 게시할 때 EJS 렌더러를 통해 서버에서 임의의 코드가 실행될 수 있습니다. 이로 인해 공격자는 서버의 파일 시스템, 네트워크 및 프로세스에 대한 완전한 제어권을 획득할 수 있습니다.

💡 쉬운 설명

나쁜 의도를 가진 사람이 만든 노트를 가져오기만 해도, 해당 노트가 서버의 시스템 명령어를 실행하게 만들 수 있는 보안 구멍입니다. 이로 인해 해커가 당신의 컴퓨터나 서버를 마음대로 조종할 수 있게 됩니다.

🇺🇸 원문 (English)

Trilium is an open-source hierarchical note-taking application. In versions prior to 0.104.0, the default-on "Safe import" filter fails to neutralize the shareTemplate relation because that relation is not marked as dangerous, allowing an attacker-supplied import archive to plant a server-side template that leads to remote code execution. The relation is omitted from the built-in list of dangerous attributes, so unlike other code-loading relations it is not disabled on import, and when the victim later publishes the imported note the public share renderer feeds the linked EJS code note's raw bytes into ejs.render, which compiles them in the server's Node process. An unauthenticated request to the shared note then executes the attacker's JavaScript with full access to require, process, the filesystem, and the network. This issue is fixed in version 0.104.0.

📍 영향받는 시스템

Trilium versions prior to 0.104.0

⚔️ 공격 벡터

조작된 가져오기 아카이브를 통한 서버 측 템플릿 주입 및 공유 노트를 통한 원격 코드 실행(RCE)

🛡️ 대응 방법

Trilium을 최신 버전인 0.104.0 이상으로 업데이트하십시오.

🔧 검증 코드

출력된 버전 번호가 0.104.0보다 낮으면 취약한 상태입니다.

Shell / Script
npm list -g trilium 2>/dev/null | grep -E 'trilium@([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3})'

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

IBM WebSphere Application Server