In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applicationsLearn about Arbitrary Command Injection vulnerabilities in an interactive lesson.
Start learningUpgrade surrealdb-core
to version 2.0.5, 2.1.5, 2.2.2 or higher.
Affected versions of this package are vulnerable to Arbitrary Command Injection via the export
and import
operations. An attacker can escalate privileges and gain root access to the SurrealDB instance by injecting malicious SurrealQL code into table or field names, which are then exported and reimported without proper sanitisation.
Note:
This is only exploitable if the attacker has authenticated access with OWNER
or EDITOR
roles and the ability to create or modify table or field names.
This vulnerability can be mitigated by manually inspecting the exported data for injected statements, prior to importing.