CVE-2026-134303
Received Received - Intake

Out-of-Bounds Read in SurrealKV Database

Vulnerability report for CVE-2026-134303, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-11-21

Last updated on: 2026-11-21

Assigner: VulnCheck

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-11-21
Last Modified
2026-11-21
Generated
2026-11-21
AI Q&A
2026-11-21
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 2 associated CPEs
Vendor Product Version / Range
surrealdb surrealkv to 1.1.0 (exc)
surrealkv surrealkv to 1.1.0 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-125 The product reads data past the end, or before the beginning, of the intended buffer.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This is an out-of-bounds read vulnerability in SurrealKV before version 1.1.0. The issue occurs in the InternalKeyRef::from_encoded constructor, which only checks key length with a debug assertion that is removed in release builds. This allows keys shorter than 16 bytes or corrupted SSTable blocks to trigger unchecked length underflow in functions like timestamp(), seq_num(), and trailer(). In debug builds, this causes panics, but in release builds, it leads to reading heap memory before the allocation.

Detection Guidance

Detecting this vulnerability requires checking the version of SurrealKV installed on your system. Run the command 'surrealkv --version' or inspect the version in your package manager. If the version is below 1.1.0, the system is vulnerable. Additionally, use tools like AddressSanitizer during compilation to detect heap-buffer-overflow errors in debug builds.

Impact Analysis

An attacker could exploit this to read sensitive memory contents, potentially exposing confidential data. It may also cause crashes or undefined behavior in applications using SurrealKV. The vulnerability can be triggered by crafted or corrupted SSTable blocks, affecting any downstream Rust code using the public API without requiring unsafe code at the call site.

Compliance Impact

This vulnerability could potentially affect compliance with GDPR and HIPAA by enabling unauthorized memory access, which may lead to data leaks or corruption. Out-of-bounds reads might expose sensitive data stored in memory, violating confidentiality requirements under these regulations.

Mitigation Strategies

Immediately upgrade SurrealKV to version 1.1.0 or later. If upgrading is not possible, validate key lengths before calling accessor methods like timestamp(), seq_num(), or trailer(). Avoid using corrupted SSTable blocks and ensure all keys are at least 16 bytes long. Monitor for crashes or memory corruption in debug builds.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-134303. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...