SurrealDBに脆弱性、認証済みの利用者が storage root 内の任意のファイルを読み書き・削除できるおそれ
Summary
SurrealDB 3.0.0以降4.0.0より前のバージョンには、ダイレクトファイルシステムバケットでパストラバーサルの脆弱性があります。キーに「..」を含めるとアクセス制御を迂回され、許可されていないキーのファイルを読み書きや削除されるおそれがあります。修正版は4.0.0で、影響するバージョンを使っている場合は4.0.0への更新を検討してください。
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 3.0.0以降4.0.0より前のバージョンには、ダイレクトファイルシステムバケットでパストラバーサルの脆弱性があります。キーに「..」を含めるとアクセス制御を迂回され、許可されていないキーのファイルを読み書きや削除されるおそれがあります。修正版は4.0.0で、影響するバージョンを使っている場合は4.0.0への更新を検討してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| surrealdbsurrealdb |
≥ 3.0.0, < 4.0.0→ 4.0.0 |
4.0.0 |
Original description The description as published by the source.
SurrealDB 3.0.0 before 4.0.0 contains a path traversal vulnerability in direct filesystem buckets because BucketController::check_permission evaluates key-based ACLs against the un-normalized object key, while FileStore::to_os_path collapses '..' sequences without a traversal check. An authenticated tenant permitted only for certain keys can supply a key such as /public/../private/confidential.txt to read, write, or delete arbitrary files within the storage root.
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