Skip to main content
VulnerabilityPublished Updated

Surrealkv: Out-of-bounds read when decoding internal keys shorter than 16 bytes

Affects surrealkvSource GCVE Database

0

CVSS 7.9 High : upgrade to 1.2.0 soon.

Data as of 6 Nov 2026, 16:48 UTC

CVSS 3.1 base score
7.9High
How severe the flaw is on the 0–10 CVSS scale.
Patch
Available – fixed in 1.2.0
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:L

What to do

Upgrade surrealkv to 1.2.0.

Affected software

ProductAffectedFixed in
crates.iosurrealkvpkg:cargo/surrealkvOther threatsAffected
  • >=0.0.0-0 <1.2.0
Fixed in
  • 1.2.0

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

Upgrade to surrealkv version 1.2.0 or later, which includes the fix rejecting internal keys shorter than the required length and adds bounds checking to prevent out-of-bounds reads. No additional mitigation is required as the vulnerability is addressed by this official fix.

Description

Surrealkv versions prior to 1.2.0 contain an out-of-bounds read vulnerability when decoding internal keys shorter than 16 bytes. The safe constructor InternalKeyRef::from_encoded performs a length check only in debug builds, which is omitted in release builds, leading to unchecked slice arithmetic and reading memory before the buffer. This can cause undefined behavior and heap-buffer-overflow. The vulnerability can be triggered by crafted or corrupted SSTables. Version 1.2.0 fixes this by rejecting internal keys shorter than their 8-byte trailer and adding bounds checks to accessors.

References

Community reviews

Loading reviews…