# CVE-2025-11060: Surrealdb: surrealdb is vulnerable to unauthorized data exposure via live query subscriptions

> Attackers can bypass access controls to view unauthorized records in SurrealDB via crafted live query subscriptions.

- **Severity:** Medium 5.7 (`CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N`)
- **Exploited in the wild:** Not known
- **Login needed:** Any signed-in user
- **Attackable:** Over the internet
- **Victim action needed:** A user has to click or open something
- **Fix available:** Yes
- **Published:** 26 Sep 2025
- **Updated:** 7 Nov 2025
- **Also known as:** GHSA-7vm2-j586-vcvc

## What is CVE-2025-11060?

CVE-2025-11060 is a medium-severity missing authorization vulnerability in Red Hat OpenShift Service Mesh 3, published on 26 Sep 2025. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

### Official description

A flaw was found in the live query subscription mechanism of the database engine. This vulnerability allows record or guest users to observe unauthorized records within the same table, bypassing access controls, via crafted LIVE SELECT subscriptions when other users alter or delete records.

Weakness: CWE-863 (Incorrect Authorization)

## Which versions are affected by CVE-2025-11060?

8 open source packages ship an affected version, including SurrealDB.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `SurrealDB` | crates.io | All versions | 2.1.9 |
| `SurrealDB` | crates.io | All versions | 2.1.9 |
| `SurrealDB` | crates.io | From 2.2.0 | 2.2.8 |
| `SurrealDB` | crates.io | From 2.2.0 | 2.2.8 |
| `SurrealDB` | crates.io | From 2.3.0 | 2.3.8 |
| `SurrealDB` | crates.io | From 2.3.0 | 2.3.8 |
| `SurrealDB` | crates.io | From 3.0.0-alpha.0 | 3.0.0-alpha.8 |
| `SurrealDB` | crates.io | From 3.0.0-alpha.0 | 3.0.0-alpha.8 |

## How do I fix CVE-2025-11060?

Upgrade SurrealDB to a fixed version for your release line: 2.1.9, 2.2.8, 2.3.8 or 3.0.0-alpha.8.

## Is CVE-2025-11060 being exploited?

There is no known exploitation of CVE-2025-11060 in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2025-11060 and fix it if it is affected.

What it is: CVE-2025-11060 is a medium-severity missing authorization vulnerability in Red Hat OpenShift Service Mesh 3, published on 26 Sep 2025. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.
Exploitation: There is no known exploitation of CVE-2025-11060 in the wild and no public exploit code.

Affected packages and fixed versions:
- SurrealDB (crates.io): affected all versions; fixed in 2.1.9
- SurrealDB (crates.io): affected all versions; fixed in 2.1.9
- SurrealDB (crates.io): affected from 2.2.0; fixed in 2.2.8
- SurrealDB (crates.io): affected from 2.2.0; fixed in 2.2.8
- SurrealDB (crates.io): affected from 2.3.0; fixed in 2.3.8
- SurrealDB (crates.io): affected from 2.3.0; fixed in 2.3.8
- SurrealDB (crates.io): affected from 3.0.0-alpha.0; fixed in 3.0.0-alpha.8
- SurrealDB (crates.io): affected from 3.0.0-alpha.0; fixed in 3.0.0-alpha.8

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2025-11060/ (Markdown: https://insights.sbomify.com/CVE-2025-11060/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2025-11060
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2025-11060
- OSV: https://osv.dev/vulnerability/CVE-2025-11060

---
From sbomify Insights: https://insights.sbomify.com/CVE-2025-11060/
Summaries are generated and may contain mistakes; the official description above is the record.
