CVE-2026-69084
SiYuan: Unauthenticated arbitrary SQL execution via searchEmbedBlock (publish mode) : reader-reachable raw statement on read-write handle, cross-notebook read/write
Beschreibung
SiYuan-Versionen bis einschließlich v3.7.2 legen die /api/search/searchEmbedBlock-Endpunkt offen, der eine von einem Client bereitgestellte SQL-Anweisung unverändert an den Haupt-Lese-/Schreib-Zugriff siyuan.db weiterleitet, ohne Einschränkungen für einzelne Anweisungen, Lesezugriff oder Admin-Beschränkungen. Der Endpunkt ist nur durch CheckAuth geschützt und kann mit dem publish RoleReader-Token sowie von anonymen Benutzern erreicht werden, wenn die Veröffentlichungsauthentifizierung deaktiviert ist. Da der zugrunde liegende Treiber gestapelte Anweisungen ausführt, kann ein Angreifer Inhalte in allen geöffneten Klartext-Notizbüchern lesen und ändern (verschlüsselte Notizbücher pro Box sind ausgenommen). In v3.7.3 behoben.
Metriken
Weakness-Klassen (CWE)
CWE-89Base
Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component. Without sufficient removal or quoting of SQL syntax in user-controllable inputs, the generated SQL query can cause those inputs to be interpreted as SQL instead of ordinary user data.
cwe.mitre.org →
Re-Analyse & Statuswechsel
Chronologie der NVD-Audit-Events für diese CVE — Reanalyses, CVSS-Updates, CPE-Diffs.
- New CVE Received2026-08-03 14:16 UTC· disclosure@vulncheck.com
- Affected: siyuan
- Description: SiYuan versions <= v3.7.2 expose the /api/search/searchEmbedBlock endpoint, which passes a client-supplied SQL statement verbatim to the main read-write siyuan.db handle with no single-statement, read-only, or admin restrictions. The endpoint is gated only by CheckAuth, making it reachable by the publish RoleReader token and by anonymous users when publish authentication is disabled. Because the underlying driver executes stacked statements, an attacker can read and modify content across all opened cleartext notebooks (encrypted per-box notebooks are excluded). Fixed in v3.7.3.
- CVSS V4.0: AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:H/SI:H/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
- CVSS V3.1: AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N
Betroffene Produkte
Aus der Hersteller-/CERT-Meldung extrahierte Produkte und Versionsbereiche. Ein Version-Range wie „<4.14.6“ impliziert die Update-Empfehlung „auf 4.14.6 oder höher aktualisieren“.
go
github.com/siyuan-note/siyuan/kernel
Quellen & Referenzen
- https://github.com/siyuan-note/siyuan/security/advisories/GHSA-vh22-h7hf-www7vendor-advisory
- https://www.vulncheck.com/advisories/siyuan-before-sql-injection-via-searchembedblockthird-party-advisory
- https://nvd.nist.gov/vuln/detail/CVE-2026-69084advisory
- https://github.com/siyuan-note/siyuan/commit/0015cbafbf685363b217bbc46283a3c0f51c79faweb
- https://github.com/siyuan-note/siyuan/commit/23a17d44b5f3da59c85e7fbee11236e6c12386b9web
- https://github.com/siyuan-note/siyuanpackage