GHSA-2226-4v3c-cff8 – rustc-serialize
Package
Manager: cargo
Name: rustc-serialize
Vulnerable Version: >=0 <=0.3.24
Severity
Level: Medium
CVSS v3.1: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L/E:U/RL:O/RC:C
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
EPSS: N/A pctlN/A
Details
Stack overflow in rustc_serialize when parsing deeply nested JSON When parsing JSON using `json::Json::from_str`, there is no limit to the depth of the stack, therefore deeply nested objects can cause a stack overflow, which aborts the process. Example code that triggers the vulnerability is ```rust fn main() { let _ = rustc_serialize::json::Json::from_str(&"[0,[".repeat(10000)); } ``` [serde](https://crates.io/crates/serde) is recommended as a replacement to rustc_serialize.
Metadata
Created: 2022-06-17T00:18:24Z
Modified: 2022-06-17T00:18:24Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/06/GHSA-2226-4v3c-cff8/GHSA-2226-4v3c-cff8.json
CWE IDs: []
Alternative ID: N/A
Finding: F067
Auto approve: 1