Skip to content
OpenAdvisories
High · 7.5 CVE-2022-3212 EUVD-2022-6873GHSA-m77f-652q-wwp4RUSTSEC-2022-0055

DoS in axum-core due to missing request size limit

Published Sep 14, 2022 · Updated Aug 3, 2024 · Assigned by JFROG

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

VendorProductAffectedFixed
tokio-rs axum-core 0.3.0-rc.1, unspecified – < 0.2.8 0.2.8

Affected packages

EcosystemPackageAffectedFixedRecord
crates.io axum-core < 0.2.8 0.2.8 GHSA-m77f-652q-wwp4
crates.io axum-core >= 0.3.0-rc.1, < 0.3.0-rc.2 0.3.0-rc.2 GHSA-m77f-652q-wwp4
crates.io axum-core >= 0.0.0-0, < 0.2.8 · >= 0.3.0-rc.1, < 0.3.0-rc.2 0.2.8, 0.3.0-rc.2 RUSTSEC-2022-0055

References