# CVE-2024-58367: SurrealDB before 2.0.4 Improper Authorization via SELECT Permissions

- Severity: High 7.1 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 11% of CVEs (2026-12-01)
- Published: 2024-10-08T22:21:09.000Z
- Modified: 2026-10-27T18:10:00.130Z
- Also known as: GHSA-9722-9j67-vjcr
- Weaknesses: CWE-285
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: VulnCheck

## Description

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.

(As written by CVE List.)

## Affected

- surrealdb surrealdb: before 2.0.4 (not affected: 2.0.4)
- surrealdb (crates.io): before 2.0.4
- surrealdb-core (crates.io): before 2.0.4

## Every score

- VulnCheck: CVSS:4.0 7.1 High `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`
- GitHub: CVSS:3.1 6.5 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:4.0 High `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`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://github.com/surrealdb/surrealdb/security/advisories/GHSA-9722-9j67-vjcr> (vendor-advisory, web)
- <https://www.vulncheck.com/advisories/surrealdb-before-improper-authorization-via-select-permissions> (third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-58367> (advisory)
- <https://github.com/surrealdb/surrealdb/issues/2161> (web)
- <https://github.com/surrealdb/surrealdb/issues/3924> (web)
- <https://github.com/surrealdb/surrealdb/pull/4785> (web)
- <https://github.com/surrealdb/surrealdb/pull/4800> (web)
- <https://github.com/surrealdb/surrealdb/pull/4873> (web)
- <https://github.com/surrealdb/surrealdb/commit/439ab99e15314ec5cf87047bf58246db646e3f8c> (web)
- <https://github.com/surrealdb/surrealdb/commit/c382fa158dc84b329328606f663efe574f102a7d> (web)
- <https://github.com/surrealdb/surrealdb/commit/e75e7736b3a028c4b6a4a4bdf00791d76f77e339> (web)
- <https://github.com/surrealdb/surrealdb> (package)
- <https://surrealdb.com/docs/surrealdb/security/summary#permissions> (web)
- <https://surrealdb.com/docs/surrealql/statements/define/field#setting-permissions-on-fields> (web)
- <https://surrealdb.com/docs/surrealql/statements/define/table#defining-permissions> (web)

## Sources

- CVE List: [CVE-2024-58367](https://www.cve.org/CVERecord?id=CVE-2024-58367), CVE Terms of Use, modified 2026-07-28
- GitHub Advisory Database: [GHSA-9722-9j67-vjcr](https://github.com/advisories/GHSA-9722-9j67-vjcr), CC-BY-4.0, modified 2026-09-04
- NVD: [CVE-2024-58367](https://nvd.nist.gov/vuln/detail/CVE-2024-58367), Public domain, modified 2026-10-27

---

Page: https://cve.day/CVE-2024-58367 · Whole record: https://cve.day/CVE-2024-58367.json · Rebuilt by cve.day 2026-11-25T22:58:53.051Z
