Skip to main content

Surrealkv

1 CVEs product

Monthly

CVE-2026-134303 Nov 21, 16:35 HIGH PATCH This Week

Out-of-bounds heap read in SurrealKV's crate-root, safe InternalKeyRef decoder: the constructor InternalKeyRef::from_encoded only enforces its 16-byte minimum with a debug-only assertion, so in release builds a short slice makes the len-16 / len-8 arithmetic wrap and read_u64_be loads 8 bytes from before the allocation. The library API is reachable from ordinary downstream Rust code, and the same missing invariant exists at the on-disk boundary, so a crafted or corrupted SSTable block whose reconstructed key is 1-15 bytes can reach the accessors through SurrealDB's kv-surrealkv wrapper (verified against surrealkv 0.21.2 as pinned by surrealdb 3.3.0-nightly); advisory package metadata lists 1.2.0 as the fixed version while the CVE text refers to releases before 1.1.0. Exposure is local only - no remote vector is claimed, debug builds panic rather than read out of bounds, and the SSTable path requires control over or corruption of the database files, with the end-to-end crafted-block case not reproduced by the reporter. The issue is not in CISA KEV and is not reported as actively exploited; a PoC reference with AddressSanitizer output is inlined in the GHSA advisory demonstrating the library path, and the report itself notes the crafted-SSTable variant was not built end to end.

Buffer Overflow Information Disclosure Surrealdb Surrealkv
NVD GitHub
CVSS 4.0
8.3
EPSS
0.4%
EPSS 0% CVSS 8.3
HIGH PATCH This Week

Out-of-bounds heap read in SurrealKV's crate-root, safe InternalKeyRef decoder: the constructor InternalKeyRef::from_encoded only enforces its 16-byte minimum with a debug-only assertion, so in release builds a short slice makes the len-16 / len-8 arithmetic wrap and read_u64_be loads 8 bytes from before the allocation. The library API is reachable from ordinary downstream Rust code, and the same missing invariant exists at the on-disk boundary, so a crafted or corrupted SSTable block whose reconstructed key is 1-15 bytes can reach the accessors through SurrealDB's kv-surrealkv wrapper (verified against surrealkv 0.21.2 as pinned by surrealdb 3.3.0-nightly); advisory package metadata lists 1.2.0 as the fixed version while the CVE text refers to releases before 1.1.0. Exposure is local only - no remote vector is claimed, debug builds panic rather than read out of bounds, and the SSTable path requires control over or corruption of the database files, with the end-to-end crafted-block case not reproduced by the reporter. The issue is not in CISA KEV and is not reported as actively exploited; a PoC reference with AddressSanitizer output is inlined in the GHSA advisory demonstrating the library path, and the report itself notes the crafted-SSTable variant was not built end to end.

Buffer Overflow Information Disclosure Surrealdb +1
NVD GitHub

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy