{"id":"CVE-2026-35593","aliases":["CVE-2026-35593"],"related":[],"kind":"vulnerability","state":"published","title":"Trilium Notes has Local File Inclusion via upload modified file API endpoint","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2026-05-19T23:32:54.466Z","modified":"2026-07-24T09:10:00.153Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:N/A:N","score":6.8,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:N/A:N","score":6.8,"rating":"MEDIUM"}],"cwes":["CWE-22","CWE-73"],"affected":[{"ranges":[{"version":"< 0.102.2","status":"affected"}],"vendor":"TriliumNext","product":"Trilium","source":"cvelist"}],"references":[{"url":"https://github.com/TriliumNext/Trilium/security/advisories/GHSA-hf4x-22rg-pjjp","tags":["exploit","x-refsource-confirm"],"sources":["cvelist","nvd"]},{"url":"https://github.com/TriliumNext/Trilium/releases/tag/v0.102.2","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2026-05-20T13:20:03.275Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-35593","url":"https://www.cve.org/CVERecord?id=CVE-2026-35593","licence":"CVE Terms of Use","modified":"2026-05-20T13:20:31.268Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-35593","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-35593","licence":"Public domain","modified":"2026-07-24T09:10:00.153Z"}],"updatedAt":"2026-11-25T22:59:22.006Z","epss":{"score":0.00621,"percentile":0.51136,"date":"2026-12-02T12:00:21.000Z"}}