CVE-2026-18140
JSON

8.7high

Uncontrolled recursion in the aws-smithy-json unknown-key skip path allows unauthenticated remote denial of service in smithy-rs generated servers

Severity
8.7high CVSS:4.0 by AMZN
Exploit likelihood
0.43% (higher than 39% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
AMZN
Also known as
GHSA-8ffr-xgwf-xj56

Description

Uncontrolled recursion in the unknown-key skip path of the aws-smithy-json runtime crate before 0.62.7, which the smithy-rs code generator invokes from every generated struct deserializer, might allow remote unauthenticated users to cause a denial of service (process abort via stack exhaustion) via a single small HTTP request containing deeply nested JSON to a smithy-rs generated server. To remediate this issue, users should upgrade to aws-smithy-json 0.62.7 or later and rebuild.

Affected

Product or packageVersionsReported by
AWS aws-smithy-jsonfrom 0.32.0 up to 0.62.6CVE List
aws-smithy-json (crates.io)before 0.62.7GitHub Advisory Database
amazon aws-smithy-jsonbefore 0.62.7NVD

All scores

AMZN7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
AMZN8.7high CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
GitHub7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
GitHubhigh CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Classification

CWE-674

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.

What each source says

CVE List

Uncontrolled recursion in the unknown-key skip path of the aws-smithy-json runtime crate before 0.62.7, which the smithy-rs code generator invokes from every generated struct deserializer, might allow remote unauthenticated users to cause a denial of service (process abort via stack exhaustion) via a single small HTTP request containing deeply nested JSON to a smithy-rs generated server. To remediate this issue, users should upgrade to aws-smithy-json 0.62.7 or later and rebuild.

GitHub Advisory Database
Summary

Smithy-RS is a Rust code generation and runtime framework that generates HTTP clients and servers from Smithy interface definitions, powering the AWS SDK for Rust and custom service implementations. An issue exists which allows uncontrolled recursion in the unknown-key skip path of the Amazon aws-smithy-json runtime crate in versions 0.62.6 and earlier.

Impact

Uncontrolled recursion in the unknown-key skip path of the aws-smithy-json runtime crate before 0.62.7, which the smithy-rs code generator invokes from every generated struct deserializer, might allow remote unauthenticated users to cause a denial of service (process abort via stack exhaustion) via a single small HTTP request containing deeply nested JSON to a smithy-rs generated server.

Impacted versions: aws-smithy-json <= 0.62.6

Patches

This issue has been addressed in aws-smithy-json version 0.62.7. We recommend upgrading to the latest version and ensuring any forked or derivative code is patched to incorporate the new fixes.

Workarounds

There are no workarounds besides updating to the patched version.

References

If you have any questions or comments about this advisory, AWS asks that you contact [AWS/Amazon] Security via their vulnerability reporting page or directly via email to aws-security@amazon.com. Please do not create a public GitHub issue.

NVD (es)

Recursión incontrolada en la ruta de omisión de clave desconocida del crate de tiempo de ejecución aws-smithy-json anterior a 0.62.7, que el generador de código smithy-rs invoca desde cada deserializador de estructura generado, podría permitir a usuarios remotos no autenticados causar una denegación de servicio (aborto de proceso por agotamiento de pila) a través de una única pequeña solicitud HTTP que contiene JSON profundamente anidado a un servidor generado por smithy-rs. Para remediar este problema, los usuarios deberían actualizar a aws-smithy-json 0.62.7 o posterior y reconstruir.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-18140 changed 2026-07-30CVE Terms of Use
GitHub Advisory DatabaseGHSA-8ffr-xgwf-xj56 changed 2026-10-02CC-BY-4.0
NVDCVE-2026-18140 changed 2026-10-23Public domain