{"id":"CVE-2025-71392","aliases":[],"cve":{"records":[{"id":"CVE-2025-71392","source":"VulnCheck","state":"PUBLISHED","reasons":[],"replacements":[],"disputed":false,"unsupportedWhenAssigned":false,"reserved":"2026-07-16T12:14:41.770Z","published":"2026-07-18T13:10:11.661Z","modified":"2026-10-29T21:15:20.082Z"}],"publishers":[{"name":"VulnCheck","role":"CNA","organizationId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","modified":"2026-10-29T21:15:20.082Z"},{"name":"CISA-ADP","role":"ADP","organizationId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","modified":"2026-07-21T02:40:45.502Z"}],"references":[{"url":"https://github.com/surrealdb/surrealdb/security/advisories/GHSA-ccj3-5p93-8p42","tags":["vendor-advisory"],"source":"VulnCheck"},{"url":"https://www.vulncheck.com/advisories/surrealdb-before-surrealql-injection-via-export","tags":["third-party-advisory"],"source":"VulnCheck"}],"weaknesses":[{"id":"CWE-77","description":"Improper Neutralization of Special Elements used in a Command ('Command Injection')","source":"VulnCheck"}],"applicability":[{"source":"VulnCheck","statements":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:a:surrealdb:surrealdb:*:*:*:*:*:*:*:*","versionEndExcluding":"2.2.2","versionStartIncluding":"2.2.0"},{"vulnerable":true,"criteria":"cpe:2.3:a:surrealdb:surrealdb:*:*:*:*:*:*:*:*","versionEndExcluding":"2.1.5","versionStartIncluding":"2.1.0"},{"vulnerable":true,"criteria":"cpe:2.3:a:surrealdb:surrealdb:*:*:*:*:*:*:*:*","versionEndExcluding":"2.0.5"}]}]}]}],"prioritization":[{"source":"CISA-ADP","type":"SSVC","role":"CISA Coordinator","timestamp":"2026-07-21T02:39:28.967494Z","decisions":[{"name":"Exploitation","value":"none"},{"name":"Automatable","value":"no"},{"name":"Technical Impact","value":"total"}]}]},"title":"SurrealDB before 2.2.2 SurrealQL Injection via export","titleSource":"VulnCheck","descriptionSource":"VulnCheck","description":"SurrealDB before 2.0.5, 2.1.x before 2.1.5, and 2.2.x before 2.2.2 fails to properly escape table and field names in the command-line export command. An authenticated System User with OWNER or EDITOR roles can create tables or fields with malicious names containing SurrealQL. When a higher-privileged user subsequently imports the exported backup, the injected SurrealQL executes, enabling privilege escalation and root-level takeover of the SurrealDB instance. Applications that let users define custom tables or fields are also exposed to a universal second-order SurrealQL injection even when query parameters are sanitized.","score":9.4,"severity":"critical","published":"2026-07-18T13:10:11.661Z","modified":"2026-10-29T21:15:20.082Z","withdrawn":false,"knownExploited":false,"affected":[],"products":[{"vendor":"surrealdb","name":"surrealdb","platforms":[],"versions":[{"version":"2.2.0","status":"affected","lessThan":"2.2.2","versionType":"semver"},{"version":"2.2.2","status":"unaffected","versionType":"semver"}],"defaultStatus":"unaffected","packageURL":"pkg:cargo/surrealdb","packageIdentity":{"ecosystem":"crates.io","name":"surrealdb"},"cpes":[],"source":"VulnCheck","url":"https://www.cve.org/CVERecord?id=CVE-2025-71392"},{"vendor":"surrealdb","name":"surrealdb","platforms":[],"versions":[{"version":"2.1.0","status":"affected","lessThan":"2.1.5","versionType":"semver"},{"version":"2.1.5","status":"unaffected","versionType":"semver"}],"defaultStatus":"unaffected","packageURL":"pkg:cargo/surrealdb","packageIdentity":{"ecosystem":"crates.io","name":"surrealdb"},"cpes":[],"source":"VulnCheck","url":"https://www.cve.org/CVERecord?id=CVE-2025-71392"},{"vendor":"surrealdb","name":"surrealdb","platforms":[],"versions":[{"version":"0","status":"affected","lessThan":"2.0.5","versionType":"semver"},{"version":"2.0.5","status":"unaffected","versionType":"semver"}],"defaultStatus":"unaffected","packageURL":"pkg:cargo/surrealdb","packageIdentity":{"ecosystem":"crates.io","name":"surrealdb"},"cpes":[],"source":"VulnCheck","url":"https://www.cve.org/CVERecord?id=CVE-2025-71392"}],"remediation":[],"references":["https://github.com/surrealdb/surrealdb/security/advisories/GHSA-ccj3-5p93-8p42","https://www.vulncheck.com/advisories/surrealdb-before-surrealql-injection-via-export"],"sources":[{"name":"CVE","id":"CVE-2025-71392","modified":"2026-10-29T21:15:20.082Z","url":"https://www.cve.org/CVERecord?id=CVE-2025-71392"}],"assessments":[{"source":"VulnCheck","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H","score":9.4}],"sourceAffected":[],"observedAt":"2026-10-29T21:39:15.855Z","kev":{"status":"not-listed","checkedAt":"2026-10-31T14:10:32.801Z"},"coverage":[{"source":"NVD","status":"available","checkedAt":"2026-10-30T00:40:37.120Z","attemptedAt":"2026-10-30T00:40:37.120Z"},{"source":"GHSA","status":"available","checkedAt":"2026-10-30T00:40:37.397Z","attemptedAt":"2026-10-30T00:40:37.397Z"},{"source":"EUVD","status":"available","checkedAt":"2026-10-30T00:40:37.711Z","attemptedAt":"2026-10-30T00:40:37.711Z"},{"source":"EPSS","status":"available","checkedAt":"2026-10-30T00:40:36.936Z","attemptedAt":"2026-10-30T00:40:36.936Z"}],"evidence":[{"source":"FIRST EPSS","id":"CVE-2025-71392","url":"https://www.first.org/epss/","probability":0.00442,"percentile":0.38392,"date":"2026-10-29","checkedAt":"2026-10-30T00:40:36.936Z"},{"source":"NVD","id":"CVE-2025-71392","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-71392","modified":"2026-10-29T21:17:05.793","score":9.4,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/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","checkedAt":"2026-10-30T00:40:37.120Z"},{"source":"NVD","id":"CVE-2025-71392","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-71392","modified":"2026-10-29T21:17:05.793","score":8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H","checkedAt":"2026-10-30T00:40:37.120Z"},{"source":"GitHub Advisory Database","id":"GHSA-ccj3-5p93-8p42","url":"https://github.com/advisories/GHSA-ccj3-5p93-8p42","modified":"2026-09-04T19:36:34Z","checkedAt":"2026-10-30T00:40:37.397Z"},{"source":"ENISA EUVD","id":"EUVD-2025-210483","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2025-210483","modified":"Oct 29, 2026, 9:15:20 PM","score":9.4,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H","checkedAt":"2026-10-30T00:40:37.711Z"}],"aiSummary":{"text":"SurrealDB before 2.2.2 has a SurrealQL injection vulnerability via export, allowing an authenticated System User with OWNER or EDITOR roles to create tables or fields with malicious names, potentially enabling privilege escalation. The weakness is due to improper neutralization of special elements. Affected versions include 2.2.x before 2.2.2, 2.1.x before 2.1.5, and before 2.0.5.","model":"@cf/meta/llama-3.3-70b-instruct-fp8-fast","generatedAt":"2026-10-30T09:39:26.720Z","sources":[{"name":"CVE","url":"https://www.cve.org/CVERecord?id=CVE-2025-71392"}]}}