CVE-2026-121416
SurrealDB 2.0.0 before 3.3.1 does not enforce --deny-funcs restrictions on method-style function calls in the streaming engine, because MethodPart::evaluate in…
Impact
SurrealDB 2.0.0 before 3.3.1 does not enforce --deny-funcs restrictions on method-style function calls in the streaming engine, because MethodPart::evaluate invokes resolved functions without a capability check. Authenticated users who can submit queries can run denied functions via method syntax, e.g. [1,2].map() or $f.put()/$f.get() to write and read file bucket data despite file::* denials.
An attacker can exploit this over the network, with a regular user account, without any action by a user. If it succeeds: high risk of data being read, low risk of data or systems being changed.
Affected products · Surrealdb
| Product | Affected versions |
|---|---|
| Surrealdb | from 2.0.0 before 3.3.1 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/surrealdb/surrealdb/security/advisories/GHSA-p296-7pr4-87rr
- https://www.vulncheck.com/advisories/surrealdb-2.0.0-before-3.3.1-deny-funcs-capability-bypass-via-method-style-invocations
- https://github.com/advisories/GHSA-347j-rmf7-f74x
- https://nvd.nist.gov/vuln/detail/CVE-2026-121416