CVE-2022-3212Axum-core Project Axum-core
High 7.5 No auth needed
Follow: this CVE · Axum-core Project · Axum-core Project Axum-core We alert you by email or Slack (account required).
- 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
What to do
- Apply the vendor's security update for Axum-core.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How 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)
| Vendor | Product | Versions |
|---|---|---|
| axum-core_project | axum-core | < 0.2.8 |
| axum-core_project | axum-core | 0.3.0 |
Official sources
References
Links published by the sources. Open them with care.
- research.jfrog.com Exploit Third Party Advisory
- rustsec.org Exploit Issue Tracking Patch