CVE-2026-18140: aws-smithy-json Denial of Service Vulnerability
HIGHCVE-2026-18140 is a HIGH (CVSS 7.5) denial of service vulnerability (CWE-674: Uncontrolled Recursion) affecting aws-smithy-json libraries in the crates.io ecosystem. The issue involves uncontrolled recursion in the aws-smithy-json unknown-key skip path allows unauthenticated remote denial of service in smithy-rs generated servers. Remediation is available by upgrading affected packages to version 0.62.7.
CVE-2026-18140 at a Glance
Security Impact
CVSS: 7.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H).
How to Fix CVE-2026-18140
To remediate this vulnerability, upgrade all affected aws-smithy-json dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade aws-smithy-json to 0.62.7
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for aws-smithy-json
How to Check if You Are Affected
To determine whether your application is affected by CVE-2026-18140, inspect your project dependencies for aws-smithy-json:
inspect dependencies for aws-smithy-json
Analyze the terminal output to locate any version of aws-smithy-json in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.62.7), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-674: Uncontrolled Recursion, where the product does not properly control the amount of recursion that takes place, consuming excessive resources, such as allocated memory or the program stack. In aws-smithy-json, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-18140 Affected aws-smithy-json Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
aws-smithy-json
|
crates.io |
< 0.62.7
|
0.62.7
|
References
Frequently Asked Questions
What is CVE-2026-18140?
Which aws-smithy-json versions are affected?
What version fixes CVE-2026-18140?
Is aws-smithy-json affected?
What is the CVSS score of CVE-2026-18140?
What CWE is associated with CVE-2026-18140?
How can I check crates.io dependencies for CVE-2026-18140?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-8ffr-xgwf-xj56",
"modified" : "2026-10-02T22:44:52Z",
"published" : "2026-10-02T22:44:52Z",
"aliases" : [ "CVE-2026-18140" ],
"summary" : "aws-smithy-json: Uncontrolled recursion in the aws-smithy-json unknown-key skip path allows unauthenticated remote denial of service in smithy-rs generated servers",
"details" : "### Summary\nSmithy-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.\n\n### Impact\nUncontrolled 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.\n\nImpacted versions: aws-smithy-json <= 0.62.6\n\n### Patches\nThis 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.\n\n### Workarounds\nThere are no workarounds besides updating to the patched version.\n\n### References\nIf you have any questions or comments about this advisory, AWS asks that you contact [AWS/Amazon] Security via their [vulnerability reporting page](https://aws.amazon.com/security/vulnerability-reporting) or directly via email to [aws-security@amazon.com](mailto:aws-security@amazon.com). Please do not create a public GitHub issue.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "crates.io",
"name" : "aws-smithy-json"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.62.7"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 0.62.6"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/smithy-lang/smithy-rs/security/advisories/GHSA-8ffr-xgwf-xj56"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-18140"
}, {
"type" : "WEB",
"url" : "https://github.com/smithy-lang/smithy-rs/pull/4685"
}, {
"type" : "WEB",
"url" : "https://github.com/smithy-lang/smithy-rs/commit/8f0882046c467981ba5b4fd91a10befa96bd262f"
}, {
"type" : "WEB",
"url" : "https://aws.amazon.com/security/security-bulletins/2026-067-aws"
}, {
"type" : "WEB",
"url" : "https://crates.io/crates/aws-smithy-json/0.62.7"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/smithy-lang/smithy-rs"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-674" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2026-10-02T22:44:52Z",
"nvd_published_at" : "2026-07-30T19:17:26Z"
}
}