CVE-2026-134303: Out-of-bounds read when decoding internal keys shorter than 16 bytes
Published 2026-11-03 · Updated 2026-11-21 · Also known as GHSA-9fm9-c4h4-8g93, RUSTSEC-2026-0452
Summary
The surrealkv crate contains an out-of-bounds read vulnerability due to improper length validation in InternalKeyRef constructors. Users should upgrade to version 1.2.0 or later to patch the underlying memory safety issue.
Who is affected
The vulnerability affects applications utilizing the surrealkv crate for storage operations. An attacker providing a maliciously crafted or corrupted SSTable can trigger an out-of-bounds read, potentially leading to heap buffer overflows, undefined behavior, or application crashes.
Exploitability
The vulnerability is rated as High severity (CVSS 7.9) and can be triggered locally with low attack complexity and no user interaction. There is currently no evidence of active exploitation via CISA KEV, and EPSS data is not yet available.
Remediation
- Upgrade the surrealkv dependency to version 1.2.0 or later.
- Update surrealdb to version 4.0.0 or later to ensure the inclusion of the patched surrealkv version.
How to check your project
- Inspect Cargo.lock or Cargo.toml files for dependencies on surrealkv versions prior to 1.2.0.
- Verify the surrealdb version in use to determine if it incorporates the patched surrealkv backend.
Automated analysis of the published advisory data, generated 2026-11-21. Not human-reviewed; verify against the official advisory. How this works.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | Upgrade |
|---|---|---|---|---|
| crates.io | surrealkv |
>= 0.0.0-0, < 1.2.0 | 1.2.0 | cargo update -p surrealkv --precise 1.2.0 |
CVSS 3.1 vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:L
| Attack vector | Local |
|---|---|
| Attack complexity | Low |
| Privileges required | None |
| User interaction | None |
| Scope | Changed |
| Confidentiality | High |
| Integrity | None |
| Availability | Low |
FAQ
What causes the out-of-bounds read?
The InternalKeyRef structure relied on debug-only assertions for length validation, causing release builds to perform unchecked slice arithmetic that leads to memory access outside the allocated buffer.
Does this require unsafe code in my own application?
No. The vulnerability exists within the library's internal logic and can be triggered by processing a crafted or corrupted SSTable, even if the calling code does not utilize unsafe blocks.
Is this vulnerability being actively exploited?
Not documented. The CISA Known Exploited Vulnerabilities catalog does not currently list this vulnerability.
Original advisory description
References
- PACKAGE https://crates.io/crates/surrealkv
- ADVISORY https://rustsec.org/advisories/RUSTSEC-2026-0452.html
- WEB https://github.com/surrealdb/surrealkv/commit/ac642f945d63c9c9f7ad35f480995fd516f83fb6
- WEB https://github.com/surrealdb/surrealkv/pull/497
Source records: RUSTSEC-2026-0452 (OSV.dev) · EPSS by FIRST, 2026-11-26.