CVE-2026-15957: smithy-rs generated deserializers allow unauthenticated DoS via recursion
AWS disclosed CVE-2026-15957, an uncontrolled recursion flaw in JSON, CBOR, and XML deserializer code generated by smithy-rs, which underlies the AWS SDK for Rust and custom Smithy-based services. A small request with deeply nested data for a recursive model shape can trigger stack exhaustion and process abort, causing denial of service without authentication.
SECURITY · DEVOPS · VULNERABILITY · SECURITY ADVISORY
PUBLISHED OCT 13, 2026 18:52 UTC
WHAT CHANGED
Code generated by smithy-rs for JSON, CBOR, and XML deserialization did not bound recursion depth when parsing recursive model shapes, allowing a crafted small payload with deep nesting to exhaust the call stack and crash the process. The issue affects aws-sdk-rust crates prior to release-2026-06-02. AWS states the issue has been addressed in release-2026-06-02 and recommends upgrading, including patching any forked or derivative generated code.
WHY IT MATTERS
Any generated SDK client or server built with vulnerable smithy-rs versions is exposed to an unauthenticated remote denial-of-service attack triggered by a tiny malicious request, with no available workaround other than upgrading. Services or clients that process untrusted JSON, CBOR, or XML input using affected deserializers could be crashed repeatedly, impacting availability.
WHO IS AFFECTED
- PRODUCTS
- smithy-rsaws-sdk-rust cratesAWS SDK for Rust
- FEATURES
- JSON deserializerCBOR deserializerXML deserializergenerated HTTP clients and servers
- CONFIGURATIONS
- Recursive model shapes used in Smithy interface definitions
WHAT TO DO
- 01HIGHAUTOMATABLE
Upgrade aws-sdk-rust crates to release-2026-06-02 or later to remediate CVE-2026-15957.
DOCUMENTATION - 02HIGH
Audit any forked or derivative smithy-rs generated code and apply the equivalent patch for the uncontrolled recursion fix.
DOCUMENTATION
TIMELINE
- ANNOUNCED
- JUL 21, 2026
SOURCES
- PRIMARY SOURCEAWS
CVE-2026-15957 - Uncontrolled recursion in smithy-rs generated JSON, CBOR, and XML deserializers allows unauthenticated remote denial of service via recursive shapes
PUBLISHED JUL 21, 2026VIEW SOURCE
VERIFICATION
ShiftWire summarizes and analyzes changes from the cited sources. Always review the primary source before implementing material changes.