Skip to content
Fencer Intel
high 7.5

CVE-2022-3212 json

DoS in axum-core due to missing request size limit

published 4y ago modified 4mo ago also GHSA-m77f-652q-wwp4 , RUSTSEC-2022-0055 , EUVD-2022-6873

cvss
7.5
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
1.0%
EPSS 1.0% chance of exploitation in 30 days, percentile 63%
public exploits
0
none known

Summary

<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

Patch / fix

  • crates.io axum-core 0.2.8, 0.3.0-rc.2
  • tokio-rs axum-core 0.2.8

Is CVE-2022-3212 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.

Check with Fencer

Exploit prediction

1.02% chance of exploitation in the next 30 days, higher than 63% of all scored CVEs (FIRST EPSS, 2026-11-09).

Exploits and checks

  • rustsec.org https://rustsec.org/advisories/RUSTSEC-2022-0055.html referenced PoC, tagged "exploit" by a source, unverified
  • research.jfrog.com https://research.jfrog.com/vulnerabilities/axum-core-dos/ referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
CNA 3.1 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD 3.1 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
GitHub 3.1 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected packages

ecosystem package affected fixed in
crates.io axum-core
<0.2.8
>=0.3.0-rc.1, <0.3.0-rc.2
>=0.0.0-0, <0.2.8
0.2.8
0.3.0-rc.2

Affected products

  • tokio-rs axum-core

Classification

Weakness
  • CWE-770 Allocation of Resources Without Limits or Throttling

References

Sources

Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.