Vulnerability MediumRUSTSEC-2022-0068 · capnp
RUSTSEC-2022-0068: out-of-bounds read possible when setting list-of-pointers
Short answerA security vulnerability in the capnp crate: out-of-bounds read possible when setting list-of-pointers. GitHub rates it Medium. Fixed in 0.13.7, 0.14.11, 0.15.2: update to a fixed version.
| Crate | capnp |
|---|---|
| Type | Vulnerability (memory-exposure) |
| Affected versions | Before 0.13.7; from 0.14.0 before 0.14.11; from 0.15.0 before 0.15.2. |
| Fixed in | 0.13.7, 0.14.11, 0.15.2 |
| Severity | Medium (GitHub rating) |
| Published | 2022-11-30 |
| Last changed | 2023-11-08 |
| Also known as | CVE-2022-46149, GHSA-qqff-4vw4-f6hx |
What to do
- See which version you have:
cargo tree -i capnp(it also shows which of your dependencies pulls it in). - Update within your version requirement:
cargo update -p capnp. If the fix is a newer major or minor than your requirement allows, raise it in Cargo.toml (for examplecapnp = "0.15.2") or update the dependency that pulls it in. - Check again with
cargo audit, or paste your Cargo.lock into our Cargo.toml checker.
Details from the advisory
If a message consumer expects data of type "list of pointers", and if the consumer performs certain specific actions on such data, then a message producer can cause the consumer to read out-of-bounds memory. This could trigger a process crash in the consumer, or in some cases could allow exfiltration of private in-memory data.
The C++ Cap'n Proto library is also affected by this bug. See the advisory on the main Cap'n Proto repo for a succinct description of the exact circumstances in which the problem can arise.
References
- Package: crates.io/crates/capnp
- Advisory: rustsec.org/advisories/RUSTSEC-2022-0068.html
- Web: github.com/capnproto/capnproto/tree/master/security-advisories/2022-11-30-0-pointer-list-bounds.md
- Web: dwrensha.github.io/capnproto-rust/2022/11/30/out_of_bounds_memory_access_bug.html
- Advisory: github.com/capnproto/capnproto/security/advisories/GHSA-qqff-4vw4-f6hx
From the RustSec Advisory Database (CC0-1.0) via the OSV export, downloaded Oct 24, 2026. Severity score computed from the published CVSS vector.
Other advisories for capnp
Up next
Same cratecapnp: security historyEvery advisory for this crate, and whether it is safe to use today.Read it next →Did this answer your question?