Advisory

GHSA-gwfj-pw2x-h6c2

Also known as: CVE-2019-15550, RUSTSEC-2019-0008

Summary

Out of bounds read in simd-json

Details

The affected version of this crate did not guard against accessing memory beyond the range of its input data. A pointer cast to read the data into a 256-bit register could lead to a segmentation fault when the end plus the 32 bytes (256 bit) read would overlap into the next page during string parsing. This allows an attacker to eventually crash a service. The flaw was corrected by using a padding buffer for the last read from the input. So that we are we never read over the boundary of the input data.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2021-08-25 20:43 UTC
Modified
2023-11-08 04:01 UTC

Affected packages and fixes

simd-json

crates.io · All systems

Affected

  • introduced 0.1.13, fixed 0.1.15 (semver)

Fixed versions

0.1.15

Fix

  • Fixed version 0.1.15
    cargo update -p simd-json --precise 0.1.15

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: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences