Vulnerability · Published Sep 14, 2022 · Assigned by JFROG
CVE-2022-3212DoS in axum-core due to missing request size limit
High 7.5
In plain English
A high-severity resource allocation without limits in axum-core from tokio-rs. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.0% (higher than 63% of all known vulnerabilities).
Official description
<bytes::Bytes as axum_core::extract::FromRequest>::from_request would not, by default, set a limit for the size of the request body. That meant if a malicious peer would send a very large (or infinite) body your server might run out of memory and crash. This also applies to these extractors which used Bytes::from_request internally: axum::extract::Form axum::extract::Json String
Affected products (as reported)
Weakness: CWE-770 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
References
- https://research.jfrog.com/vulnerabilities/axum-core-dos/ x_refsource_MISC
- https://rustsec.org/advisories/RUSTSEC-2022-0055.html x_refsource_MISC