CVE-2022-3212

DoS in axum-core due to missing request size limit

Published Sep 14, 2022 CVSS 3.1 · 7.5 High EPSS 1.0% KEV · Not listed
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

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2022-6873 <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
Github GHSA Github GHSA GHSA-m77f-652q-wwp4 axum-core has no default limit put on request bodies
History
Type Values Removed Values Added
Metrics epss

{'score': 0.00104}

epss

{'score': 0.00111}

Weaknesses

Sources

Status
PUBLISHED
Assigner
JFROG
Published
Updated
Aug 3, 2024, 1:00 AM
Reserved
Sep 14, 2022, 12:00 AM
Status
Modified
Published
Sep 14, 2022, 4:15 PM
Modified
Jun 17, 2026, 4:59 AM