CVE-2026-65607

SiYuan before v3.7.2 contains a path traversal vulnerability in the /export/temp/ short-circuit branch of the serveExport handler (kernel/server/serve.go). Unlike the main export branch, this branch joins the raw, percent-decoded request path with util.TempDir and serves the file without the IsSubPath or IsSensitivePath checks added in the earlier export-disclosure hardening (GHSA-6865-qjcf-286f). An authenticated attacker can send percent-encoded traversal sequences (e.g. /export/temp/%2e%2e/.../etc/passwd, where %2e%2e is decoded to '..') to read arbitrary files outside TempDir, including /etc/passwd, SSH keys (~/.ssh/*), and SiYuan workspace *.db and *.log files, bypassing the sensitive-file protection.
Configurations

No configuration.

History

24 Oct 2026, 13:10

Type Values Removed Values Added
Summary
  • (es) SiYuan antes de la v3.7.2 contiene una vulnerabilidad de salto de ruta en la rama de cortocircuito /export/temp/ del gestor serveExport (kernel/server/serve.go). A diferencia de la rama de exportación principal, esta rama une la ruta de solicitud cruda, decodificada por porcentaje, con util.TempDir y sirve el archivo sin las comprobaciones IsSubPath o IsSensitivePath añadidas en el endurecimiento anterior de divulgación de exportación (GHSA-6865-qjcf-286f). Un atacante autenticado puede enviar secuencias de salto codificadas por porcentaje (p. ej., /export/temp/%2e%2e/... / etc/p4ssd, donde %2e%2e se decodifica a ’..’) para leer archivos arbitrarios fuera de TempDir, incluyendo /etc/p4ssd, claves SSH (~/.ssh/*), y archivos *.db y *.log del espacio de trabajo de SiYuan, eludiendo la protección de archivos sensibles.

Information

Published : 2026-07-23 12:18

Updated : 2026-10-24 13:10


NVD link : CVE-2026-65607

Mitre link : CVE-2026-65607

CVE.ORG link : CVE-2026-65607


JSON object : View

Products Affected

No product.

CWE
CWE-22

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