CVE-2022-46149
Rust vulnerability analysis and mitigation

Overview

CVE-2022-46149 is an out-of-bounds read vulnerability discovered in Cap'n Proto's list-of-list handling mechanism. The vulnerability was identified on November 30, 2022, by David Renshaw, the maintainer of Cap'n Proto's Rust implementation, during fuzzing tests. The issue affects both C++ versions prior to 0.10.3 and Rust implementations (capnp crate) versions below 0.15.2, 0.14.11, and 0.13.7 (GitHub Advisory).

Technical details

The vulnerability stems from inconsistent handling of pointers when a list-of-structs is downgraded to a list-of-pointers. A specially-crafted pointer could bypass bounds checking, potentially leading to out-of-bounds memory reads. The bug is present in inlined code, which means fixing it requires rebuilding dependent applications. The vulnerability has a CVSS v3.1 base score of 5.4 (Moderate) with vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:N/A:L (GitHub Advisory).

Impact

If successfully exploited, the vulnerability could allow attackers to remotely trigger a segmentation fault or potentially exfiltrate up to 512 KiB of memory immediately following the message buffer. The attack is only possible if the application performs specific actions on a list-of-pointer type and the exfiltrated data must be followed by a valid Cap'n Proto pointer (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in multiple versions: C++ versions 0.5.4, 0.7.1, 0.8.1, 0.9.2, and 0.10.3, and Rust capnp crate versions 0.15.2, 0.14.11, and 0.13.7. Users are advised to upgrade to these patched versions. Due to the bug being present in inlined code, affected applications need to be rebuilt after updating to the fixed versions (GitHub Advisory, Red Hat).

Additional resources


SourceThis report was generated using AI

Related Rust vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-66627HIGH8.4
  • RustRust
  • wasmi
NoYesDec 09, 2025
GHSA-xrv8-2pf5-f3q7MEDIUM6
  • RustRust
  • nitro-tpm-pcr-compute
NoYesDec 05, 2025
CVE-2025-67487MEDIUM5.5
  • RustRust
  • static-web-server
NoYesDec 09, 2025
CVE-2025-66622LOW1.3
  • RustRust
  • matrix-sdk-base
NoYesDec 09, 2025
RUSTSEC-2025-0135N/AN/A
  • RustRust
  • matrix-sdk-base
NoYesDec 08, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management