CVE-2022-3212
HIGH 7.5CVSS 3.1axum-core has no default limit put on request bodies
<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
- Published
- 14 Sep 2022
- Last modified
- 17 Jun 2026
- Assigned by
- reefs@jfrog.com
- NVD status
- Modified
- Weakness
- CWE-770
- Also known as
- GHSA-m77f-652q-wwp4RUSTSEC-2022-0055
- Sources
- NVDJSONOSV GHSA-m77f-652q-wwp4JSONOSV RUSTSEC-2022-0055JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | reefs@jfrog.com (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | axum-core_project | axum-corecpe:2.3:a:axum-core_project:axum-core:*:*:*:*:*:rust:*:* |
< 0.2.8 | 0.2.8 |
| NVD | axum-core_project | axum-corecpe:2.3:a:axum-core_project:axum-core:0.3.0:rc1:*:*:*:rust:*:* |
= 0.3.0 | |
| OSV | crates.io | axum-core | < 0.2.8 | 0.2.8 |
| OSV | crates.io | axum-core | >= 0.3.0-rc.1, < 0.3.0-rc.2 | 0.3.0-rc.2 |
| OSV | crates.io | axum-core | >= 0.0.0-0, < 0.2.8; >= 0.3.0-rc.1, < 0.3.0-rc.2 | 0.2.8, 0.3.0-rc.2 |
References
- https://research.jfrog.com/vulnerabilities/axum-core-dos/ · Exploit, Third Party Advisory
- https://rustsec.org/advisories/RUSTSEC-2022-0055.html · Exploit, Issue Tracking, Patch, Third Party Advisory, WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2022-3212 · ADVISORY
- https://github.com/tokio-rs/axum/pull/1346 · WEB
- https://github.com/tokio-rs/axum · PACKAGE
- https://crates.io/crates/axum-core · PACKAGE
History
- 25 Nov 2026 20:35 UTC · NVD: first stored (published 14 Sep 2022)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 31 Aug 2022)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 15 Sep 2022)