Advisory

RUSTSEC-2020-0048

Also known as: CVE-2020-35901, GHSA-v3j6-xf77-8r9c

Summary

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

Details

Affected versions of this crate did not require the buffer wrapped in BodyStream 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 trait MessageBody require Unpin
and making poll_next() function accept Pin<&mut Self> instead of &mut self.

Severity

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

Dates

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

Affected packages and fixes

actix-http

crates.io · All systems

Affected

  • introduced 0.0.0-0, fixed 2.0.0-alpha.1 (semver)

Fixed versions

2.0.0-alpha.1

Fix

  • Fixed version 2.0.0-alpha.1
    cargo update -p actix-http --precise 2.0.0-alpha.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