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

- Severity: High 7.5 (CVSS:3.1, scored by JFROG) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.05%, higher than 65% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2022-08-31T12:00:00.000Z
- Modified: 2026-06-17T04:59:05.120Z
- Also known as: GHSA-m77f-652q-wwp4, RUSTSEC-2022-0055
- Weaknesses: CWE-770
- Assigned by: JFROG

## 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

(As written by CVE List.)

## Affected

- tokio-rs axum-core: 0.3.0-rc.1; from unspecified before 0.2.8
- axum-core (crates.io): before 0.2.8; from 0.3.0-rc.1 before 0.3.0-rc.2; from 0.0.0-0 before 0.2.8
- axum-core_project axum-core: before 0.2.8; 0.3.0

## Every score

- JFROG: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://research.jfrog.com/vulnerabilities/axum-core-dos/> (exploit, third-party-advisory)
- <https://rustsec.org/advisories/RUSTSEC-2022-0055.html> (exploit, advisory, issue-tracking, patch, third-party-advisory, web)
- <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)

## Sources

- CVE List: [CVE-2022-3212](https://www.cve.org/CVERecord?id=CVE-2022-3212), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-m77f-652q-wwp4](https://github.com/advisories/GHSA-m77f-652q-wwp4), CC-BY-4.0, modified 2023-11-08
- RustSec Advisory Database: [RUSTSEC-2022-0055](https://rustsec.org/advisories/RUSTSEC-2022-0055.html), CC0-1.0, modified 2023-11-08
- NVD: [CVE-2022-3212](https://nvd.nist.gov/vuln/detail/CVE-2022-3212), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-3212 · Whole record: https://cve.day/CVE-2022-3212.json · Rebuilt by cve.day 2026-11-25T22:58:14.930Z
