Advisory

RUSTSEC-2020-0049

Also known as: CVE-2020-35902, GHSA-rqgx-hpg4-456r

Summary

Use-after-free in Framed due to lack of pinning

Details

Affected versions of this crate did not require the buffer wrapped in Framed to be pinned,
but treated it as if it had a fixed location in memory. This may result in a use-after-free.

The flaw was corrected by making the affected functions accept Pin<&mut Self> instead of &mut self.

Severity

Critical Basis: CVSS v3 score 9.8, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Dates

Published
2020-01-30 12:00 UTC
Modified
2023-11-08 04:03 UTC

Affected packages and fixes

actix-codec

crates.io · All systems

Affected

  • introduced 0.0.0-0, fixed 0.3.0-beta.1 (semver)

Fixed versions

0.3.0-beta.1

Fix

  • Fixed version 0.3.0-beta.1
    cargo update -p actix-codec --precise 0.3.0-beta.1

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