{"id":"CVE-2022-3212","published":"2022-09-14T16:05:09Z","modified":"2024-08-03T01:00:10Z","title":"DoS in axum-core due to missing request size limit","vendor":"tokio-rs","product":"axum-core","tier":"tail","description":{"text":"<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","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01104,"percentile":0.65381,"provenance":"source"},"cwes":[{"id":"CWE-770","name":"Allocation of Resources Without Limits or Throttling"}],"references":[{"url":"https://research.jfrog.com/vulnerabilities/axum-core-dos/","tags":["x_refsource_MISC"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2022-0055.html","tags":["x_refsource_MISC"]}],"priority":{"score":18.3,"factors":[{"name":"EPSS percentile","points":13.08},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"tokio-rs","affectedVersions":[{"vendor":"tokio-rs","product":"axum-core","versions":["0.3.0-rc.1",">= unspecified, < 0.2.8"]}],"affected":[{"ecosystem":"crates.io","package":"axum-core","vulnerableRanges":["<0.2.8",">=0.3.0-rc.1, <0.3.0-rc.2",">=0.0.0-0, <0.2.8"],"patched":["0.2.8","0.3.0-rc.2"],"from":["GHSA-m77f-652q-wwp4","RUSTSEC-2022-0055"],"provenance":"source"}],"summary":{"text":"The axum-core crate from tokio-rs has a flaw in its Bytes request extractor (<bytes::Bytes as FromRequest>::from_request), which sets no default limit on request body size, and the same weakness reaches the Form, Json and String extractors built on it. An unauthenticated remote attacker who sends a very large or unbounded request body can exhaust server memory and crash the service, with no user interaction or special configuration required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:35:50Z"},"euvd":{"id":"EUVD-2022-6873","exploited":false,"provenance":"source"}}