Advisory

RUSTSEC-2020-0097

Also known as: CVE-2020-36205, GHSA-c8hq-x4mm-p6q6

Summary

Soundness issue with base::Error

Details

base::Error type contains public field named ptr.
With this definition, it is possible to create a base::Error with an invalid pointer and trigger memory safety errors
such as use-after-free or double-free with safe Rust.

The users of xcb crate are advised not to manipulate the field.

Severity

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

Dates

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

Affected packages and fixes

xcb

crates.io · All systems

Affected

  • introduced 0.0.0-0, fixed 1.0.0 (semver)

Fixed versions

1.0.0

Fix

  • Fixed version 1.0.0
    cargo update -p xcb --precise 1.0.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