Files
advisory-db/crates/simd-json/RUSTSEC-2019-0008.md
Tony Arcieri ac125ee29a Translate database into V3 advisory format (#420)
As proposed in #240 and tracked in #414, this PR translates all
advisories into the new "V3" advisory format, which is based on Markdown
with leading TOML front matter.

This format makes it easier to see rendered Markdown syntax
descriptions, whether rendered by an IDE or GitHub. This should help
with both crafting advisories initially as well as review, and ideally
encourages more lengthy descriptions.

Support for this format shipped in `cargo-audit` v0.12.0 on
May 6th, 2020.
2020-10-01 18:29:11 -07:00

1.1 KiB

[advisory]
id = "RUSTSEC-2019-0008"
package = "simd-json"
aliases = ["CVE-2019-15550"]
date = "2019-06-24"
keywords = ["simd"]
url = "https://github.com/Licenser/simdjson-rs/pull/27"

[affected]
arch = ["x86", "x86_64"]

[versions]
patched = [">= 0.1.15"]
unaffected = ["<= 0.1.13"]

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

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.