RUSTSEC-2019-0008

Source
https://rustsec.org/advisories/RUSTSEC-2019-0008
Import Source
https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2019-0008.json
JSON Data
https://api.osv.dev/v1/vulns/RUSTSEC-2019-0008
Aliases
Published
2019-06-24T12:00:00Z
Modified
2023-11-08T04:01:14.101340Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
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.

Database specific
{
    "license": "CC0-1.0"
}
References

Affected packages

crates.io / simd-json

Package

Affected ranges

Type
SEMVER
Events
Introduced
0.1.14-0
Fixed
0.1.15

Ecosystem specific

{
    "affected_functions": null,
    "affects": {
        "os": [],
        "functions": [],
        "arch": [
            "x86",
            "x86_64"
        ]
    }
}

Database specific

{
    "cvss": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
    "informational": null,
    "categories": []
}