Stack overflow in rustc_serialize when parsing deeply nested JSON
Key facts
- Attack vector
- —
- Privileges required
- —
- User interaction
- —
- Attack complexity
- —
- Impact type
- —
- Confidentiality · integrity · availability
- —
- Fix status
- No fix listed
No CVSS vector from any source. Fix status from GitHub.
Summary
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | rustc-serialize (crates.io) | up to 0.3.24 | — | No fix listed | GHSA-2226-4v3c-cff8 |
- rustc-serialize (crates.io) Vendor— Affected up to 0.3.24 Fixed in — No fix listed GHSA-2226-4v3c-cff8
Remediation
No fixed version listed by the sources yet.
Timeline
- 2026-10-03 Threatist record created from GHSA-2226-4v3c-cff8
References
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences