Live threats

All CVEs / Axum-core Project

CVE-2022-3212Axum-core Project Axum-core

High 7.5 No auth needed

Priority
60
CVSS 3.1
7.5
EPSS
1.1%
probability of exploitation in 30 days · percentile 65
Auth required
No
Published
Sep 14, 2022
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-770
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

What happens

<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

Original NVD text.

What to do

  1. Apply the vendor's security update for Axum-core.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
crates.io axum-core < 0.2.8 0.2.8 cargo update -p axum-core --precise 0.2.8
crates.io axum-core ≥ 0.3.0-rc.1 < 0.3.0-rc.2 0.3.0-rc.2 cargo update -p axum-core --precise 0.3.0-rc.2
crates.io axum-core ≥ 0.0.0-0 < 0.2.8 0.2.8 cargo update -p axum-core --precise 0.2.8
crates.io axum-core ≥ 0.3.0-rc.1 < 0.3.0-rc.2 0.3.0-rc.2 cargo update -p axum-core --precise 0.3.0-rc.2

Per OSV / GitHub Advisories (GHSA-m77f-652q-wwp4, RUSTSEC-2022-0055). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
axum-core_projectaxum-core< 0.2.8
axum-core_projectaxum-core0.3.0

Official sources

References

Links published by the sources. Open them with care.