SurrealDB before 1.5.4 Authentication Bypass via Database Switch
Impact
SurrealDB before 1.5.4 and 2.0.0-alpha.1 before 2.0.0-alpha.6 has an authentication bypass vulnerability. Attackers with an authenticated session can impersonate users in different databases if a user record with an identical identifier exists. This allows unauthorized actions if permissions rely solely on the $auth parameter.
Summarized by @cf/meta/llama-3.3-70b-instruct-fp8-fast. Verify details against the original sources.Affected packages
Affected products
Vendor version evidence. Product records are separate from automatic dependency matching.
surrealdb · VulnCheck
surrealdb
2 ranges
surrealdb · VulnCheck
surrealdb
Package identity
pkg:cargo/surrealdbExplore surrealdb →Identity supplied by VulnCheck. Version matching requires compatible range evidence.
Compare with this publisher’s ranges. This does not inspect your installation.
affected
0 → before 1.5.4
semver versions
unaffected
1.5.4
semver versions
Other versions: unaffected
surrealdb · VulnCheck
surrealdb
2 ranges
surrealdb · VulnCheck
surrealdb
Package identity
pkg:cargo/surrealdbExplore surrealdb →Identity supplied by VulnCheck. Version matching requires compatible range evidence.
Compare with this publisher’s ranges. This does not inspect your installation.
affected
2.0.0-alpha.1 → before 2.0.0-alpha.6
semver versions
unaffected
2.0.0-alpha.6
semver versions
Other versions: unaffected
surrealdb · VulnCheck
surrealdb-core
2 ranges
surrealdb · VulnCheck
surrealdb-core
Package identity
pkg:cargo/surrealdb-coreExplore surrealdb-core →Identity supplied by VulnCheck. Version matching requires compatible range evidence.
Compare with this publisher’s ranges. This does not inspect your installation.
affected
0 → before 1.5.1
semver versions
unaffected
1.5.1
semver versions
Other versions: unaffected
Original source description
SurrealDB before 1.5.4 and 2.0.0-alpha.1 before 2.0.0-alpha.6 fails to properly validate authentication when a scope user switches databases using the USE clause or use method. Attackers with an authenticated session can impersonate an unrelated user in a different database if a user record with an identical identifier exists, allowing unauthorized actions if permissions rely solely on the $auth parameter.
Inside the record
Evidence available
Describes the evidence in this view, not whether the product is safe.
Original records
CVE-2024-58363View the latest unmodified CVE JSON from the official source. It may be newer than this imported page.
cve.new JSON →Underlying weaknesses
The source’s classification of what caused the vulnerability.
Environment requirements
These conditions apply together as specified by the publisher. A matching product name alone does not establish exposure.
VulnCheck · platform conditions
Any condition may hold
Vulnerable product
cpe:2.3:a:surrealdb:surrealdb:*:*:*:*:*:*:*:*Before: 1.5.4
Vulnerable product
cpe:2.3:a:surrealdb:surrealdb:*:*:*:*:*:*:*:*From (inclusive): 2.0.0-alpha.1
Before: 2.0.0-alpha.6
Vulnerable product
cpe:2.3:a:surrealdb:surrealdb:*:*:*:*:*:*:*:*Before: 1.5.1
Original applicability statements
[
{
"nodes": [
{
"operator": "OR",
"negate": false,
"cpeMatch": [
{
"vulnerable": true,
"criteria": "cpe:2.3:a:surrealdb:surrealdb:*:*:*:*:*:*:*:*",
"versionEndExcluding": "1.5.4"
},
{
"vulnerable": true,
"criteria": "cpe:2.3:a:surrealdb:surrealdb:*:*:*:*:*:*:*:*",
"versionStartIncluding": "2.0.0-alpha.1",
"versionEndExcluding": "2.0.0-alpha.6"
},
{
"vulnerable": true,
"criteria": "cpe:2.3:a:surrealdb:surrealdb:*:*:*:*:*:*:*:*",
"versionEndExcluding": "1.5.1"
}
]
}
]
}
]Contributing organizations · 2
Assigning organization
Additional data publisher
What changed
Follow changesLarge field values are marked as truncated previews. Original source snapshots remain retained.