CVE-2022-3212 HIGH

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

Vendor Tokio-Rs
Product axum-core
Weakness CWE-770 · Uncontrolled resource consumption
Published September 14, 2022
Last update August 3, 2024

CVSS base score

7.5/10
Attack vector Network
Attack complexity Low
Privileges required None
User interaction None
Confidentiality None
Integrity None

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

What the vulnerability does

01Description

<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

Key dates

02Disclosure timeline

September 14, 2022 CVE published
August 3, 2024 Record updated