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.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| 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
| Product | Affected versions | Fixed 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
- github.com patch
- rustsec.org exploit issue-tracking patch third-party-advisory vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com
- github.com product
- crates.io product
- research.jfrog.com exploit third-party-advisory