# CVE-2026-134303: SurrealKV before 1.1.0 Out-of-Bounds Read via InternalKeyRef Decoder

> Short or corrupted keys in SurrealKV SSTable blocks cause heap out-of-bounds reads or panics; SurrealDB operators should upgrade.

- **Severity:** High 8.3 (`CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:L/SC:H/SI:N/SA:L`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Local or same network only
- **Victim action needed:** Not needed
- **Harmful if only installed:** No
- **Needs a specific call:** No
- **Fix available:** No
- **Published:** 21 Nov 2026
- **Updated:** 23 Nov 2026
- **Also known as:** GHSA-2xmc-95h3-hcrm, GHSA-9fm9-c4h4-8g93, RUSTSEC-2026-0452

## What is CVE-2026-134303?

CVE-2026-134303 is a high-severity memory corruption vulnerability in surrealdb surrealkv, published on 21 Nov 2026. It can only be exploited from the same machine or local network, with no action from the victim.

### Official description

SurrealKV before 1.1.0 contains an out-of-bounds read vulnerability in the safe InternalKeyRef::from_encoded constructor, which only checks key length with a debug-only assertion. Callers passing keys shorter than 16 bytes, or crafted or corrupted SSTable blocks, trigger unchecked length underflow in timestamp(), seq_num() and trailer(), reading heap bytes before the allocation or panicking.

Weakness: CWE-125 (Out-of-bounds Read)

## Which versions are affected by CVE-2026-134303?

1 open source package ship an affected version, including surrealkv.

An affected version is exposed as installed. No special setting or call is needed.


| Package | Ecosystem | PURL | Affected | Fixed in |
| --- | --- | --- | --- | --- |
| `surrealkv` | crates.io | `pkg:cargo/surrealkv` | From 0.0.0-0 | 1.2.0 |

Status by vendor (upstream, then each distribution release and vendor build):

| Who | Release | Status | Packages | Fixed in |
| --- | --- | --- | --- | --- |
| Upstream |  | fixed | `surrealkv` | 1.2.0 |

## How do I fix CVE-2026-134303?

Upgrade surrealkv to 1.2.0 or later.

## Is CVE-2026-134303 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-134303 exists.

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2026-134303 and fix it if it is affected.

What it is: CVE-2026-134303 is a high-severity memory corruption vulnerability in surrealdb surrealkv, published on 21 Nov 2026. It can only be exploited from the same machine or local network, with no action from the victim.
Exploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-134303 exists.
Exposure: An affected version is exposed as installed. No special setting or call is needed.

Affected packages and fixed versions:
- surrealkv (crates.io): affected from 0.0.0-0; fixed in 1.2.0

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-2026-134303/ (Markdown: https://insights.sbomify.com/CVE-2026-134303/index.md)
```

## Sources

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

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