CVE-2024-58362: SurrealDB before 1.5.5 Query Injection via RPC API

Published Jul 18, 2026
·
Updated

SurrealDB before 1.5.5 (and 2.0.0-beta before 2.0.0-beta.3) accepts an arbitrary object in the signin and signup operations of the RPC API without recursively validating it for non-computed values. When a record access method defines a SIGNIN or SIGNUP query and the RPC API is exposed to untrusted users, an unauthenticated attacker can encode a binary object containing a subquery using the bincode serialization format and supply it in place of credentials. The subquery is then executed within the database owner's SIGNIN/SIGNUP query under a system user session with the editor role, allowing the attacker to select, create, update, and delete non-IAM resources (though not view the query results directly, and not affect IAM resources, which require the owner role).

Affected Software

4 affected components
SurrealDB SurrealDB<1.5.5, >2.0.0-beta<2.0.0-beta.3
SurrealDB SurrealDB<1.5.5
SurrealDB SurrealDB=2.0.0-beta1
SurrealDB SurrealDB=2.0.0-beta2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade SurrealDB to a version that resolves this vulnerability.

    Fixed in 1.5.5
  2. Upgrade

    Upgrade SurrealDB to a version that resolves this vulnerability.

    Fixed in 2.0.0-beta.3
  3. Compensating control

    If the RPC API is exposed to untrusted users, do not expose it; restrict network access to the RPC API so only trusted users/systems can reach endpoints used for SIGNIN/SIGNUP.

Event History

Jul 18, 2026
CVE Published
via MITRE·01:10 PM
Data Sourced
via MITRE·01:10 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·02:17 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2024-58362?

The severity of CVE-2024-58362 is rated high with a CVSS score of 8.8.

2

How do I fix CVE-2024-58362?

To fix CVE-2024-58362, update SurrealDB to version 1.5.5 or later, or 2.0.0-beta to version 2.0.0-beta.3 or later.

3

What are the risks associated with CVE-2024-58362?

CVE-2024-58362 poses a risk of query injection via the RPC API, which could allow an untrusted user to access or manipulate data.

4

What versions of SurrealDB are affected by CVE-2024-58362?

Versions of SurrealDB prior to 1.5.5 and 2.0.0-beta before 2.0.0-beta.3 are affected by CVE-2024-58362.

5

What types of operations are vulnerable in CVE-2024-58362?

The signin and signup operations of the RPC API are vulnerable in CVE-2024-58362.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203