Stack overflow in rustc_serialize when parsing deeply nested JSON
Moderate severity
GitHub Reviewed
Published
Jun 17, 2022
to the GitHub Advisory Database
•
Updated Jan 12, 2023
Description
Published to the GitHub Advisory Database
Jun 17, 2022
Reviewed
Jun 17, 2022
Last updated
Jan 12, 2023
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
serde is recommended as a replacement to rustc_serialize.
References