SurrealDBに認証を回避される脆弱性、権限のないデータを読み書き・削除される恐れ
Summary
SurrealDB 1.0.0以降4.0.0未満に、認証済みの利用者が FOR ループ変数で $access・$auth・$token を上書きし、閲覧者(VIEWER)の権限でデータを読み書き・削除できる脆弱性があります。影響を受ける版は4.0.0で修正されているため、4.0.0以降へ更新してください。深刻度はCVSS v3.1で8.8と高く、早めの対応をおすすめします。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
SurrealDB 1.0.0以降4.0.0未満に、認証済みの利用者が FOR ループ変数で $access・$auth・$token を上書きし、閲覧者(VIEWER)の権限でデータを読み書き・削除できる脆弱性があります。影響を受ける版は4.0.0で修正されているため、4.0.0以降へ更新してください。深刻度はCVSS v3.1で8.8と高く、早めの対応をおすすめします。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| surrealdbsurrealdb |
≥ 1.0.0, < 4.0.0→ 4.0.0 |
4.0.0 |
Original description The description as published by the source.
SurrealDB 1.0.0 before 4.0.0 contains an authorization bypass vulnerability that allows authenticated users to shadow protected $access, $auth, and $token variables by binding them as FOR loop variables. Attackers can wrap queries in nested FOR loops with forged values to satisfy table permission predicates, enabling unauthorized reads, modifications, or deletions as a VIEWER.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory vulncheck.com
- advisory github.com
- advisory nvd.nist.gov
- web github.com