Skip to content

CVE-2022-3212 DoS in axum-core due to missing request size limit

HighCVSS 7.5 EPSS 1.0%
Published
Updated
Exploit status
No public exploit known

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

Upgrade path

3 packages: 3 fixed.

PackageAffectedFixed inStatus
axum-core project axum-core < 0.2.8; = 0.3.0-rc1 0.2.8 Fixed
crates.io axum-core(crates.io) < 0.2.8; = 0.3.0-rc.1; >= 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 Fixed
tokio-rs axum-core < 0.2.8; = 0.3.0-rc.1 0.2.8 Fixed

Affected products

ProductAffected versionsFixed in
crates.io axum-core(crates.io) < 0.2.8 0.2.8
crates.io axum-core(crates.io) = 0.3.0-rc.1 No fix listed
crates.io axum-core(crates.io) >= 0.3.0-rc.1, < 0.3.0-rc.2 0.3.0-rc.2
crates.io axum-core(crates.io) >= 0.0.0-0, < 0.2.8 0.2.8
tokio-rs axum-core = 0.3.0-rc.1 No fix listed
tokio-rs axum-core < 0.2.8 0.2.8
axum-core project axum-core < 0.2.8 0.2.8
axum-core project axum-core = 0.3.0-rc1 No fix listed

References