CVE-2026-35593

Trilium Notes is an open-source, cross-platform hierarchical note taking application for building large personal knowledge bases. Versions 0.102.1 and prior are vulnerable to Local File Inclusion, allowing an authenticated attacker to read sensitive arbitrary files from the server's filesystem. The uploadModifiedFileToAttachment function, which is called when a POST request is received to /api/attachments/{attachmentId}/upload-modified-file, replaces the content of the attachment with the content from another file (whose path is provided in filePath of Request body). After which the content of the attachment can be viewed at /api/attachments/{attachmentId}/download. This exposes sensitive system files such as SSH keys, credentials, configs, and OS files, potentially leading to remote code execution and compromise of co-hosted applications. This issue has been fixed in version 0.102.2.
Configurations

No configuration.

History

24 Jul 2026, 09:10

Type Values Removed Values Added
Summary
  • (es) Trilium Notes es una aplicación de toma de notas jerárquica de código abierto y multiplataforma para construir grandes bases de conocimiento personales. Las versiones 0.102.1 y anteriores son vulnerables a la Inclusión Local de Ficheros, permitiendo a un atacante autenticado leer ficheros arbitrarios sensibles del sistema de ficheros del servidor. La función uploadModifiedFileToAttachment, que se llama cuando se recibe una solicitud POST en /api/attachments/{attachmentId}/upload-modified-file, reemplaza el contenido del adjunto con el contenido de otro fichero (cuya ruta se proporciona en filePath del cuerpo de la solicitud). Después de lo cual el contenido del adjunto puede verse en /api/attachments/{attachmentId}/download. Esto expone ficheros de sistema sensibles como claves SSH, credenciales, configuraciones y ficheros del sistema operativo, lo que podría conducir a la ejecución remota de código y al compromiso de aplicaciones co-alojadas. Este problema ha sido solucionado en la versión 0.102.2.

20 May 2026, 14:16

Type Values Removed Values Added
References () https://github.com/TriliumNext/Trilium/security/advisories/GHSA-hf4x-22rg-pjjp - () https://github.com/TriliumNext/Trilium/security/advisories/GHSA-hf4x-22rg-pjjp -

20 May 2026, 00:16

Type Values Removed Values Added
New CVE

Information

Published : 2026-05-20 00:16

Updated : 2026-07-24 09:10


NVD link : CVE-2026-35593

Mitre link : CVE-2026-35593

CVE.ORG link : CVE-2026-35593


JSON object : View

Products Affected

No product.

CWE
CWE-22

Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

CWE-73

External Control of File Name or Path