Vulnerability · Published Nov 30, 2022 · Assigned by GitHub_M
CVE-2022-46149Cap'n Proto vulnerable to out-of-bounds read due to logic error handling list-of-list.
Medium 5.4
In plain English
A medium-severity out-of-bounds read in capnproto from capnproto. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.0% (higher than 61% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
Cap'n Proto is a data interchange format and remote procedure call (RPC) system. Cap'n Proro prior to versions 0.7.1, 0.8.1, 0.9.2, and 0.10.3, as well as versions of Cap'n Proto's Rust implementation prior to 0.13.7, 0.14.11, and 0.15.2 are vulnerable to out-of-bounds read due to logic error handling list-of-list. This issue may lead someone to remotely segfault a peer by sending it a malicious message, if the victim performs certain actions on a list-of-pointer type. Exfiltration of memory is possible if the victim performs additional certain actions on a list-of-pointer type. To be vulnerable, an application must perform a specific sequence of actions, described in the GitHub Security Advisory. The bug is present in inlined code, therefore the fix will require rebuilding dependent applications. Cap'n Proto has C++ fixes available in versions 0.7.1, 0.8.1, 0.9.2, and 0.10.3. The `capnp` Rust crate has fixes available in versions 0.13.7, 0.14.11, and 0.15.2.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | capnproto | 0.9.2-2 | DEBIAN-CVE-2022-46149 |
| Debian:13 | capnproto | 0.9.2-2 | DEBIAN-CVE-2022-46149 |
| Debian:14 | capnproto | 0.9.2-2 | DEBIAN-CVE-2022-46149 |
| Debian:12 | rust-capnp | 0.14.11-1.1 | DEBIAN-CVE-2022-46149 |
| Debian:13 | rust-capnp | 0.14.11-1.1 | DEBIAN-CVE-2022-46149 |
| Debian:14 | rust-capnp | 0.14.11-1.1 | DEBIAN-CVE-2022-46149 |
| Ubuntu:22.04:LTS | capnproto | no fix listed | UBUNTU-CVE-2022-46149 |
Affected products (as reported)
Weakness: CWE-125 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:N/A:L
References
- https://github.com/capnproto/capnproto/security/advisories/GHSA-qqff-4vw4-f6hx
- https://github.com/capnproto/capnproto/commit/25d34c67863fd960af34fc4f82a7ca3362ee74b9
- FEDORA-2022-5d37367673 vendor-advisory
- FEDORA-2022-18023b665f vendor-advisory
- FEDORA-2022-fd7eeedd02 vendor-advisory
- FEDORA-2022-7002ec8b22 vendor-advisory