Vulnerability in surrealdb
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.
A vulnerability tracked as CVE-2024-58367 has been found in surrealdb.
Attackers can target a specific entry point like SELECT over the network to misuse the product.
Confidential information can be exposed externally. CVSS score: 6.5/10.
What to do: upgrade surrealdb to 2.0.4 or later.
If unsure, ask your IT team or search "surrealdb CVE-2024-58367" on the vendor's site.
CVE-2024-58367 (surrealdb) — CWE-285 / CVSS v3 6.5
Attack vector: remote (network-reachable) / no user interaction
Attack surface: SELECT / WHERE / UPDATE / DELETE
Patched: 2.0.4 — apply immediately
Workaround: Users affected by this issue and unable to update should not rely on the authorization provided by field permissions when it comes to the SELECT permission.
Plan: 1) Audit SBOM/dependencies, 2) Stage→prod upgrade, 3) Add WAF/proxy monitoring on affected endpoints, 4) Hunt IOCs in logs.
Refs: see the GHSA / vendor advisory / patched release linked on this page.
A vulnerability (CWE-285) exists in surrealdb. Attackers reach the vulnerable code path via SELECT.
Check the vendor advisory for the affected versions of surrealdb. Attack surface: SELECT / WHERE / UPDATE / DELETE.
Severity: Medium (CVSS 6.5/10). Confidential information can be exposed externally.
Update to 2.0.4.
Workaround: Users affected by this issue and unable to update should not rely on the authorization provided by field permissions when it comes to the SELECT permission.
Search webserver/proxy logs for unusual request patterns matching this CVE's known IOCs. Run grep -r 'surrealdb' . against your dependency files (package-lock.json, requirements.txt, go.sum) to find affected services.
Response actions
Concrete steps and command examples for SOC/SRE teams to execute in order
-
1
Identify exposureidentify
grep -r 'surrealdb' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
surrealdbを grep し、稼働しているサービス・バージョンを把握する。 -
2
Apply temporary workaroundmitigate
Users affected by this issue and unable to update should not rely on the authorization provided by field permissions when it comes to the `SELECT` permission.パッチが適用されるまでの応急処置として、Users affected by this issue and unable to update should not rely on the authorization provided by field permissions when it comes to the
SELECTpermission. を実施。回避策の副作用 (機能低下) を確認した上で。 -
3
Apply patchpatch
Upgrade surrealdb to 2.0.4ステージング環境で 2.0.4 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。
-
4
Post-deployment verificationverify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| rustsurrealdb |
< 2.0.4→ 2.0.4 |
2.0.4 |
| rustsurrealdb-core |
< 2.0.4→ 2.0.4 |
2.0.4 |
| crates.iosurrealdb |
< 2.0.4→ 2.0.4 |
2.0.4 |
| crates.iosurrealdb-core |
< 2.0.4→ 2.0.4 |
2.0.4 |
Original description The description as published by the source.
SurrealDB versions before 2.0.4 fail to properly enforce field permissions during SELECT, UPDATE, and DELETE operations, allowing authorized users to access unauthorized field values through various query techniques. Attackers can exploit SELECT VALUE operations, field aliasing, function arguments, WHERE clause filtering, RETURN BEFORE clauses, and SET clause references to leak protected field contents despite lacking SELECT permissions.
Source: NIST National Vulnerability Database NVD GitHub Advisory
References
- advisory disclosure@vulncheck.com
- advisory nvd.nist.gov
- advisory github.com
- package github.com
- patch disclosure@vulncheck.com
- web github.com
- web github.com
- web github.com
- web github.com
- web github.com
- web github.com
- web github.com
- web github.com
- web github.com
- web surrealdb.com
- web surrealdb.com
- web surrealdb.com
- web github.com