CVE-2024-58363
Full vulnerability record from the local CVENow database.
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.
Severity
MEDIUM
CVSS score
5.3
(v4.0)
Vulnerability status
Modified
Source identifier
Published
2026-07-18 14:17:09.187000
Last modified
2026-10-29 21:17:03.273000
View original CVE JSON
{
"id": "CVE-2024-58363",
"sourceIdentifier": "[email protected]",
"published": "2026-07-18T14:17:09.187",
"lastModified": "2026-10-29T21:17:03.273",
"vulnStatus": "Modified",
"cveTags": [],
"descriptions": [
{
"lang": "en",
"value": "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."
},
{
"lang": "es",
"value": "SurrealDB antes de 1.5.4 no valida correctamente la autenticación cuando un usuario de ámbito cambia de bases de datos usando la cláusula USE o el método use. Los atacantes con una sesión autenticada pueden suplantar a un usuario no relacionado en una base de datos diferente si existe un registro de usuario con un identificador idéntico, permitiendo acciones no autorizadas si los permisos dependen únicamente del parámetro $auth."
}
],
"affected": [
{
"source": "[email protected]",
"affectedData": [
{
"vendor": "surrealdb",
"product": "surrealdb",
"defaultStatus": "unaffected",
"packageURL": "pkg:cargo/surrealdb",
"versions": [
{
"version": "0",
"lessThan": "1.5.4",
"versionType": "semver",
"status": "affected"
},
{
"version": "1.5.4",
"versionType": "semver",
"status": "unaffected"
}
]
},
{
"vendor": "surrealdb",
"product": "surrealdb",
"defaultStatus": "unaffected",
"packageURL": "pkg:cargo/surrealdb",
"versions": [
{
"version": "2.0.0-alpha.1",
"lessThan": "2.0.0-alpha.6",
"versionType": "semver",
"status": "affected"
},
{
"version": "2.0.0-alpha.6",
"versionType": "semver",
"status": "unaffected"
}
]
},
{
"vendor": "surrealdb",
"product": "surrealdb-core",
"defaultStatus": "unaffected",
"packageURL": "pkg:cargo/surrealdb-core",
"versions": [
{
"version": "0",
"lessThan": "1.5.1",
"versionType": "semver",
"status": "affected"
},
{
"version": "1.5.1",
"versionType": "semver",
"status": "unaffected"
}
]
}
]
}
],
"metrics": {
"cvssMetricV40": [
{
"source": "[email protected]",
"type": "Secondary",
"cvssData": {
"version": "4.0",
"vectorString": "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X",
"baseScore": 5.3,
"baseSeverity": "MEDIUM",
"attackVector": "NETWORK",
"attackComplexity": "LOW",
"attackRequirements": "NONE",
"privilegesRequired": "LOW",
"userInteraction": "NONE",
"vulnConfidentialityImpact": "LOW",
"vulnIntegrityImpact": "LOW",
"vulnAvailabilityImpact": "LOW",
"subConfidentialityImpact": "NONE",
"subIntegrityImpact": "NONE",
"subAvailabilityImpact": "NONE",
"exploitMaturity": "NOT_DEFINED",
"confidentialityRequirement": "NOT_DEFINED",
"integrityRequirement": "NOT_DEFINED",
"availabilityRequirement": "NOT_DEFINED",
"modifiedAttackVector": "NOT_DEFINED",
"modifiedAttackComplexity": "NOT_DEFINED",
"modifiedAttackRequirements": "NOT_DEFINED",
"modifiedPrivilegesRequired": "NOT_DEFINED",
"modifiedUserInteraction": "NOT_DEFINED",
"modifiedVulnConfidentialityImpact": "NOT_DEFINED",
"modifiedVulnIntegrityImpact": "NOT_DEFINED",
"modifiedVulnAvailabilityImpact": "NOT_DEFINED",
"modifiedSubConfidentialityImpact": "NOT_DEFINED",
"modifiedSubIntegrityImpact": "NOT_DEFINED",
"modifiedSubAvailabilityImpact": "NOT_DEFINED",
"Safety": "NOT_DEFINED",
"Automatable": "NOT_DEFINED",
"Recovery": "NOT_DEFINED",
"valueDensity": "NOT_DEFINED",
"vulnerabilityResponseEffort": "NOT_DEFINED",
"providerUrgency": "NOT_DEFINED"
}
}
],
"cvssMetricV31": [
{
"source": "[email protected]",
"type": "Secondary",
"cvssData": {
"version": "3.1",
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L",
"baseScore": 6.3,
"baseSeverity": "MEDIUM",
"attackVector": "NETWORK",
"attackComplexity": "LOW",
"privilegesRequired": "LOW",
"userInteraction": "NONE",
"scope": "UNCHANGED",
"confidentialityImpact": "LOW",
"integrityImpact": "LOW",
"availabilityImpact": "LOW"
},
"exploitabilityScore": 2.8,
"impactScore": 3.4
}
],
"ssvcV203": [
{
"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"ssvcData": {
"timestamp": "2026-07-20T19:23:37.733571Z",
"id": "CVE-2024-58363",
"options": [
{
"exploitation": "none"
},
{
"automatable": "no"
},
{
"technicalImpact": "partial"
}
],
"role": "CISA Coordinator",
"version": "2.0.3"
}
}
]
},
"weaknesses": [
{
"source": "[email protected]",
"type": "Secondary",
"description": [
{
"lang": "en",
"value": "CWE-287"
}
]
}
],
"configurations": [
{
"nodes": [
{
"operator": "OR",
"negate": false,
"cpeMatch": [
{
"vulnerable": true,
"criteria": "cpe:2.3:a:surrealdb:surrealdb:*:*:*:*:*:*:*:*",
"versionEndExcluding": "1.5.4",
"matchCriteriaId": "33F42DB2-F1C3-45F5-8A64-422B88C1B427"
},
{
"vulnerable": true,
"criteria": "cpe:2.3:a:surrealdb:surrealdb:2.0.0:alpha1:*:*:*:*:*:*",
"matchCriteriaId": "99F8D681-E9F0-4E55-8A6B-7E7C6F557190"
},
{
"vulnerable": true,
"criteria": "cpe:2.3:a:surrealdb:surrealdb:2.0.0:alpha2:*:*:*:*:*:*",
"matchCriteriaId": "331C25FF-BDEC-4742-B72C-03F0EFCCCA7E"
},
{
"vulnerable": true,
"criteria": "cpe:2.3:a:surrealdb:surrealdb:2.0.0:alpha3:*:*:*:*:*:*",
"matchCriteriaId": "8E4EEED5-E06B-4471-AC83-40B3C0663F0D"
},
{
"vulnerable": true,
"criteria": "cpe:2.3:a:surrealdb:surrealdb:2.0.0:alpha4:*:*:*:*:*:*",
"matchCriteriaId": "78897598-3DB4-40B6-872A-003AC9A90B43"
},
{
"vulnerable": true,
"criteria": "cpe:2.3:a:surrealdb:surrealdb:2.0.0:alpha5:*:*:*:*:*:*",
"matchCriteriaId": "69CD88A2-C8DD-49F2-AC81-ACD79D9047C1"
}
]
}
]
}
],
"references": [
{
"url": "https://github.com/surrealdb/surrealdb/security/advisories/GHSA-gh9f-6xm2-c4j2",
"source": "[email protected]",
"tags": [
"Vendor Advisory"
]
},
{
"url": "https://www.vulncheck.com/advisories/surrealdb-before-authentication-bypass-via-database-switch",
"source": "[email protected]",
"tags": [
"Third Party Advisory"
]
}
]
}