Advisory

RUSTSEC-2022-0068

Also known as: CVE-2022-46149, GHSA-qqff-4vw4-f6hx

Summary

out-of-bounds read possible when setting list-of-pointers

Details

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.

Severity

Not rated by the source.

Dates

Published
2022-11-30 12:00 UTC
Modified
2026-11-09 11:00 UTC

Affected packages and fixes

capnp

crates.io · All systems

Affected

  • introduced 0.0.0-0, fixed 0.13.7, introduced 0.14.0-0, fixed 0.14.11, introduced 0.15.0-0, fixed 0.15.2 (semver)

Fixed versions

0.13.7, 0.14.11, 0.15.2

Fix

  • Fixed version 0.13.7
    cargo update -p capnp --precise 0.13.7
  • Fixed version 0.14.11
    cargo update -p capnp --precise 0.14.11
  • Fixed version 0.15.2
    cargo update -p capnp --precise 0.15.2

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: RustSec Advisory Database · CC0-1.0

Sources & licences