rustsec-2019-0008
Vulnerability from osv_rustsec
Published
2019-06-24 12:00
Modified
2023-06-13 13:10
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.
{
"affected": [
{
"database_specific": {
"categories": [],
"cvss": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
"informational": null
},
"ecosystem_specific": {
"affected_functions": null,
"affects": {
"arch": [
"x86",
"x86_64"
],
"functions": [],
"os": []
}
},
"package": {
"ecosystem": "crates.io",
"name": "simd-json",
"purl": "pkg:cargo/simd-json"
},
"ranges": [
{
"events": [
{
"introduced": "0.1.14-0"
},
{
"fixed": "0.1.15"
}
],
"type": "SEMVER"
}
],
"versions": []
}
],
"aliases": [
"CVE-2019-15550",
"GHSA-gwfj-pw2x-h6c2"
],
"database_specific": {
"license": "CC0-1.0"
},
"details": "The affected version of this crate did not guard against accessing memory\nbeyond the range of its input data. A pointer cast to read the data into\na 256-bit register could lead to a segmentation fault when the end plus\nthe 32 bytes (256 bit) read would overlap into the next page during string\nparsing.\n\n```\npage | ... page 1 ... | ... page 2 ... |\ndata | x[n * 32 byte]xx__ | |\naccess | ..][ 32 byte ] | |\nsegflt | [ 32 | byte ] |\n```\n\nThis allows an attacker to eventually crash a service.\n\nThe flaw was corrected by using a padding buffer for the last read from the\ninput. So that we are we never read over the boundary of the input data.",
"id": "RUSTSEC-2019-0008",
"modified": "2023-06-13T13:10:24Z",
"published": "2019-06-24T12:00:00Z",
"references": [
{
"type": "PACKAGE",
"url": "https://crates.io/crates/simd-json"
},
{
"type": "ADVISORY",
"url": "https://rustsec.org/advisories/RUSTSEC-2019-0008.html"
},
{
"type": "WEB",
"url": "https://github.com/Licenser/simdjson-rs/pull/27"
}
],
"related": [],
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
"type": "CVSS_V3"
}
],
"summary": "Flaw in string parsing can lead to crashes due to invalid memory access."
}
Loading…
Loading…
Sightings
| Author | Source | Type | Date |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Loading…
Loading…