Advisory

RUSTSEC-2020-0104

Also known as: CVE-2020-36211, GHSA-xp6v-qx65-4pp7

Summary

ImageChunkMut needs bounds on its Send and Sync traits

Details

In the affected versions of this crate, ImageChunkMut<'_, T> unconditionally implements Send and Sync, allowing to create data races.

This can result in a memory corruption or undefined behavior when non thread-safe types are moved and referenced across thread boundaries.

The flaw was corrected in commit e7fb2f5 by adding T: Send bound to the Send impl and adding T: Sync bound to the Sync impl.

Severity

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

Dates

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

Affected packages and fixes

gfwx

crates.io · All systems

Affected

  • introduced 0.0.0-0, fixed 0.3.0 (semver)

Fixed versions

0.3.0

Fix

  • Fixed version 0.3.0
    cargo update -p gfwx --precise 0.3.0

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