Advisory

RUSTSEC-2019-0008

Also known as: CVE-2019-15550, GHSA-gwfj-pw2x-h6c2

Summary

Flaw in string parsing can lead to crashes due to invalid memory access.

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.

page   |  ...  page 1  ...  | ... page 2  ... |
data   | x[n * 32 byte]xx__ |                 |
access | ..][ 32 byte ]     |                 |
segflt |               [ 32 | byte ]          |

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: 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-06-24 12:00 UTC
Modified
2023-11-08 04:01 UTC

Affected packages and fixes

simd-json

crates.io · All systems

Affected

  • introduced 0.1.14-0, 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: RustSec Advisory Database · CC0-1.0

Sources & licences