Vulnérabilité dans github.com/siyuan-note/siyuan/kernel (CVE-2026-73605)
Résumé
Vulnérabilité dans github.com/siyuan-note/siyuan/kernel (CVE-2026-73605). Risque d'opérations non autorisées ou de divulgation. Exploitable via CheckAuth. Atténuation : mise à jour vers 0.0.0-20260812083335-251596fc0de2 ou plus.
Description d'origine
La description telle que publiée par la source (souvent en anglais).
Summary
/api/file/getUniqueFilename takes a path from the request body and passes it to a filesystem existence check with no validation, confinement or authorization. The response distinguishes paths that exist from paths that do not, so an anonymous reader in publish mode can probe arbitrary locations on the host, one request per probe. Files and directories both work.
Every neighbouring file route either requires an administrator or confines the path first.
Details
Route. kernel/api/router.go:289 on master, :292 on the development branch, CheckAuth only.
Handler, kernel/api/file.go:84, in full:
util.ParseJsonArgs(arg, ret, util.BindJsonArg("path", &filePath, true, true))
ret.Data = map[string]any{"path": util.GetUniqueFilename(filePath)}
The argument binder does no path handling. util.BindJsonArg (kernel/util/net.go:365) takes two booleans, required (the key must be present) and rejectEmpty (the value must be non-empty). That is its entire contract. There is no filepath.Clean, no workspace join, no traversal check. An absolute path outside the workspace reaches gulu.File.IsExist unmodified.
The oracle. util/file.go:67:
if !gulu.File.IsExist(filePath) {
return filePath
}
// otherwise loop, returning the first non-existent dir/base (i).ext
Input echoed back means the path does not exist. A (1) suffix means it does.
The asymmetry.
| Route | Middleware |
|---|---|
putFile, copyFile,… |
Source: GitHub Security Advisories (Global) NVD GitHub Advisory
Résumé généré automatiquement
Assemblé par SecPulse à partir des données sources (CVSS, CWE, versions affectées) à l'aide de modèles, sans IA. Vérifiez la description d'origine et les références ci-dessous.
Une vulnérabilité référencée CVE-2026-73605 a été découverte dans github.com/siyuan-note/siyuan/kernel.
Des attaquants peuvent cibler un point d'entrée spécifique comme CheckAuth à distance pour détourner le produit.
Risque d'opérations non autorisées ou de divulgation. Score CVSS : 5.8/10.
Action : mettez à jour github.com/siyuan-note/siyuan/kernel vers 0.0.0-20260812083335-251596fc0de2 ou supérieur.
En cas de doute, contactez votre service informatique ou cherchez « github.com/siyuan-note/siyuan/kernel CVE-2026-73605 » sur le site de l'éditeur.
CVE-2026-73605 (github.com/siyuan-note/siyuan/kernel) — CWE-862 / CVSS v3 5.8
Vecteur d'attaque : distant (réseau) / non authentifié / sans interaction utilisateur
Surface d'attaque : CheckAuth / util.BindJsonArg / required / rejectEmpty
Correctif : 0.0.0-20260812083335-251596fc0de2 — appliquer immédiatement
Plan : 1) Audit SBOM, 2) Mise à jour staging→prod, 3) Surveillance WAF/proxy sur les endpoints affectés, 4) Recherche d'IOC dans les logs.
Réfs : voir GHSA / avis éditeur / version corrigée liés sur cette page.
Une vulnérabilité (CWE-862) affecte github.com/siyuan-note/siyuan/kernel. Les attaquants atteignent le code vulnérable via CheckAuth sans authentification.
Consultez l'avis de l'éditeur pour les versions affectées de github.com/siyuan-note/siyuan/kernel. Surface d'attaque : CheckAuth / util.BindJsonArg / required / rejectEmpty.
Gravité : Moyenne (CVSS 5.8/10). Risque d'opérations non autorisées ou de divulgation.
Mettre à jour vers 0.0.0-20260812083335-251596fc0de2.
En attendant le correctif : désactivez la fonctionnalité concernée, appliquez des règles WAF, ou restreignez l'accès par ACL réseau.
Recherchez dans les logs des requêtes correspondant aux IOC connus de cette CVE. Auditez les SBOM/dépendances.
Actions de réponse
Étapes concrètes et exemples de commandes que les équipes SOC/SRE doivent exécuter dans l'ordre
-
1Identify exposure identify
grep -r 'github.com/siyuan-note/siyuan/kernel' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
github.com/siyuan-note/siyuan/kernelを grep し、稼働しているサービス・バージョンを把握する。 -
2Apply patch patch
Upgrade github.com/siyuan-note/siyuan/kernel to 0.0.0-20260812083335-251596fc0de2ステージング環境で 0.0.0-20260812083335-251596fc0de2 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。
-
3Post-deployment verification verify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。
Paquets affectés
Références
- advisory nvd.nist.gov
- package github.com
- web github.com
- web vulncheck.com
- web github.com
- web github.com