{"id":"CVE-2024-58367","published":"2026-07-18T13:10:07Z","modified":"2026-07-28T01:47:53Z","title":"SurrealDB before 2.0.4 Improper Authorization via SELECT Permissions","vendor":"surrealdb","product":"surrealdb","tier":"tail","description":{"text":"SurrealDB versions before 2.0.4 fail to properly enforce field permissions during SELECT, UPDATE, and DELETE operations, allowing authorized users to access unauthorized field values through various query techniques. Attackers can exploit SELECT VALUE operations, field aliasing, function arguments, WHERE clause filtering, RETURN BEFORE clauses, and SET clause references to leak protected field contents despite lacking SELECT permissions.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.1,"severity":"HIGH","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00358,"percentile":0.303,"provenance":"source"},"cwes":[{"id":"CWE-285","name":"Improper Authorization"}],"references":[{"url":"https://github.com/surrealdb/surrealdb/security/advisories/GHSA-9722-9j67-vjcr","tags":["vendor-advisory"]},{"url":"https://www.vulncheck.com/advisories/surrealdb-before-improper-authorization-via-select-permissions","tags":["third-party-advisory"]}],"priority":{"score":11.0,"factors":[{"name":"EPSS percentile","points":6.06},{"name":"CVSS severity","points":4.97}]},"vendorSlug":"surrealdb","affectedVersions":[{"vendor":"surrealdb","product":"surrealdb","versions":["< 2.0.4"]},{"vendor":"surrealdb","product":"surrealdb","versions":["< 2.0.4"]}],"fixedVersions":[{"vendor":"surrealdb","product":"surrealdb","versions":["2.0.4"]},{"vendor":"surrealdb","product":"surrealdb","versions":["2.0.4"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-07-21T02:37:44.863726Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"crates.io","package":"surrealdb","vulnerableRanges":["<2.0.4"],"patched":["2.0.4"],"from":["GHSA-9722-9j67-vjcr"],"provenance":"source"},{"ecosystem":"crates.io","package":"surrealdb-core","vulnerableRanges":["<2.0.4"],"patched":["2.0.4"],"from":["GHSA-9722-9j67-vjcr"],"provenance":"source"}],"summary":{"text":"SurrealDB versions before 2.0.4 fail to properly enforce field-level permissions during SELECT, UPDATE, and DELETE operations in the surrealdb product. An authenticated user can read protected field values they lack SELECT permission for by using techniques such as SELECT VALUE, field aliasing, function arguments, WHERE filtering, RETURN BEFORE, and SET clause references, and no special configuration or user interaction is required beyond holding a valid account.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:57:37Z"},"euvd":{"id":"EUVD-2024-55683","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-surrealdb-cve-2024-58362","parents":[{"from":"CVE-2024-58362","to":"CVE-2024-58367","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["core/src/err/mod.rs","core/src/sql/value/value.rs"],"commits":["https://github.com/surrealdb/surrealdb/commit/b7583a653a2c495a60630dffd663f506426db330","https://github.com/surrealdb/surrealdb/commit/eab7ef5354168d4039f7f7b77042c99a52f770a6","https://github.com/surrealdb/surrealdb/commit/439ab99e15314ec5cf87047bf58246db646e3f8c","https://github.com/surrealdb/surrealdb/commit/c382fa158dc84b329328606f663efe574f102a7d"],"basis":"rarely changed file"}]}],"packageHistory":[{"cve":"CVE-2024-58367","published":"2026-07-18","fixed":"2.0.4","kev":false},{"cve":"CVE-2024-58358","published":"2026-07-18","fixed":"2.1.0","kev":false,"link":{"from":"CVE-2024-58367","to":"CVE-2024-58358","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"crates.io:surrealdb-core","fromFixed":"2.0.4","toFixed":"2.1.0","daysApart":0}]}},{"cve":"CVE-2024-58356","published":"2026-07-18","fixed":"2.1.4","kev":false},{"cve":"CVE-2026-63733","published":"2026-07-20","fixed":"3.2.0","kev":false}],"package":"crates.io:surrealdb-core"}}