Advisory

RUSTSEC-2019-0025

Also known as: CVE-2019-25001, GHSA-xr7r-88qv-q7hm

Summary

Flaw in CBOR deserializer allows stack overflow

Details

Affected versions of this crate did not properly check if semantic tags were nested excessively during deserialization.

This allows an attacker to craft small (< 1 kB) CBOR documents that cause a stack overflow.

The flaw was corrected by limiting the allowed number of nested tags.

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
2019-10-03 12:00 UTC
Modified
2023-11-08 04:01 UTC

Affected packages and fixes

serde_cbor

crates.io · All systems

Affected

  • introduced 0.0.0-0, fixed 0.10.2 (semver)

Fixed versions

0.10.2

Fix

  • Fixed version 0.10.2
    cargo update -p serde_cbor --precise 0.10.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