Vulnérabilité dans github.com/nezhahq/nezha (CVE-2026-100394)
Résumé
Vulnérabilité dans github.com/nezhahq/nezha (CVE-2026-100394). Risque d'opérations non autorisées ou de divulgation. Exploitable via POST /api/v1/service. Atténuation : mise à jour vers 2.2.11 ou plus.
Description d'origine
La description telle que publiée par la source (souvent en anglais).
Summary
A single low-privilege RoleMember can take the entire Nezha dashboard offline, and with it every tenant's web UI, REST API, and agent connections, by racing two ordinary operations on their own service. The crash is a nil pointer dereference in the service-monitor worker at service/singleton/servicesentinel.go:601. The worker checks a service exists under one lock and later writes to two pointer-valued status maps under a different lock; a concurrent delete removes the entries in the gap. Because the gRPC server has no recovery interceptor, the worker-goroutine panic kills the whole process. Availability only: nothing is read or modified.
Affected versions
Confirmed in v2.2.7 through v2.2.10. service/singleton/servicesentinel.go has the same vulnerable implementation in all four releases. The issue is fixed in v2.2.11 and later; users should upgrade to the latest release, v2.3.0.
The bug
The worker validates an incoming report and later writes it to two status maps, but the check and the write are guarded by two different locks taken at two different times. Between them, the same member can delete the service and pull the map entries out from under the worker.
The maps hold pointers, so a missing key returns nil and the first field write through it panics:
73: serviceStatusToday map[uint64]*_TodayStatsOfService
74: serviceCurrentStatusData map[uint64]*serviceTaskStatus
The worker checks presence via Get, which takes `s…
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-100394 a été découverte dans github.com/nezhahq/nezha.
Des attaquants peuvent cibler un point d'entrée spécifique comme POST /api/v1/service à distance pour détourner le produit.
Risque d'opérations non autorisées ou de divulgation. Score CVSS : 6.5/10.
Action : mettez à jour github.com/nezhahq/nezha vers 2.2.11 ou supérieur.
En cas de doute, contactez votre service informatique ou cherchez « github.com/nezhahq/nezha CVE-2026-100394 » sur le site de l'éditeur.
CVE-2026-100394 (github.com/nezhahq/nezha) — CWE-362 / CVSS v3 6.5
Vecteur d'attaque : distant (réseau) / sans interaction utilisateur
Surface d'attaque : POST /api/v1/service / POST /api/v1/batch-delete/service / GET /api/v1/user / RoleMember
Correctif : 2.2.11 — 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-362) affecte github.com/nezhahq/nezha. Les attaquants atteignent le code vulnérable via POST /api/v1/service.
Consultez l'avis de l'éditeur pour les versions affectées de github.com/nezhahq/nezha. Surface d'attaque : POST /api/v1/service / POST /api/v1/batch-delete/service / GET /api/v1/user / RoleMember.
Gravité : Moyenne (CVSS 6.5/10). Risque d'opérations non autorisées ou de divulgation.
Mettre à jour vers 2.2.11.
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 webserver/proxy/WAF des requêtes anormales vers POST /api/v1/service (en-têtes d'auth malformés, méta-caractères SQL). Auditez les fichiers de dépendances pour trouver github.com/nezhahq/nezha.
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/nezhahq/nezha' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
github.com/nezhahq/nezhaを grep し、稼働しているサービス・バージョンを把握する。 -
2Hunt for indicators of compromise detect
grep 'POST /api/v1/service' /var/log/nginx/access.log | grep -E '(unusual_payload|sqli_pattern)'アクセスログで
POST /api/v1/serviceへの異常なリクエスト (不正な認証ヘッダ・SQLメタ文字)を過去 30〜90日分捜索。WAF/SIEM があれば該当パスのアラート発火履歴を確認。 -
3Apply patch patch
Upgrade github.com/nezhahq/nezha to 2.2.11ステージング環境で 2.2.11 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスと、Step 2 で見つけた異常検知の続報チェックを含めること。
-
4Post-deployment verification verify
Replay attack against POST /api/v1/service on staging to confirm patch closes the vectorパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番では Step 2 と同じログクエリでアラート再発が無いか継続監視。