Description
SurrealDB 1.0.0 before 4.0.0 contains a denial of service vulnerability that allows any user able to run queries to crash the server by triggering unchecked decimal overflow in math::sum or math::product. Attackers can submit a query summing or multiplying large decimal literals or aggregate stored decimals with GROUP ALL, causing a rust_decimal panic that terminates the entire server process.
Affected products and versions
surrealdb surrealdb1.0.0 – < 4.0.0Fixed in: 4.0.0
CVSS vector, explained
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- Attack vector
- Network (from the internet)
- Attack complexity
- Low
- Privileges required
- Regular user
- User interaction
- Not required
- Scope
- Vulnerable component only
- Confidentiality
- None
- Integrity
- None
- Availability
- High impact
Weakness type (CWE)
- CWE-190 Integer Overflow or Wraparound
References
- github.com/surrealdb/surrealdb/security/advisories/GHSA-g422-fj9r-m92g vendor advisory
- www.vulncheck.com/advisories/surrealdb-1.0.0-before-4.0.0-dos-via-decimal-overflow-in-math
Sources: CVE.org (CNA and CISA ADP), CISA KEV, FIRST EPSS. Always check the vendor's official advisory.