CVE-2022-3212

published 14 Sep 2022 · updated 3 Aug 2024

DoS in axum-core due to missing request size limit

7.5HighCVSS 7.5EPSS 1%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in 0.2.8.

<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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
tokio-rs<0.2.8, =0.3.0-rc.10.2.8

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2022-3212 severity on Zeptric[![CVE-2022-3212](https://zeptric.io/badge/cve/CVE-2022-3212.svg)](https://zeptric.io/cve/CVE-2022-3212)