{"id":"CVE-2022-3212","aliases":["CVE-2022-3212","GHSA-m77f-652q-wwp4","RUSTSEC-2022-0055"],"related":[],"kind":"vulnerability","state":"published","title":"DoS in axum-core due to missing request size limit","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","summarySource":"cvelist","descriptions":[{"lang":"en","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","source":"cvelist"},{"lang":"en","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.\n\nThis also applies to these extractors which used `Bytes::from_request` internally:\n- `axum::extract::Form`\n- `axum::extract::Json`\n- `String`\n\nThe fix is also in `axum-core` `0.3.0.rc.2` but `0.3.0.rc.1` _is_ vulnerable.\n\nBecause `axum` depends on `axum-core` it is vulnerable as well. The vulnerable versions of `axum` are `<= 0.5.15` and `0.6.0.rc.1`. `axum` `>= 0.5.16` and `>= 0.6.0.rc.2` does have the fix and are not vulnerable.\n\nThe patched versions will set a 2 MB limit by default.","format":"markdown","source":"ghsa"},{"lang":"es","text":"(bytes::Bytes como axum_core::extract::FromRequest)::from_request no establecía, por defecto, un límite para el tamaño del cuerpo de la petición. Esto significaba que si un compañero malicioso enviaba un cuerpo muy grande (o infinito) su servidor podría quedarse sin memoria y colapsar. Esto también se aplica a estos extractores que usan Bytes::from_request internamente: axum::extract::Form axum::extract::Json String","source":"nvd"}],"published":"2022-08-31T12:00:00.000Z","modified":"2026-06-17T04:59:05.120Z","severity":{"scorer":"JFROG","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"JFROG","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"}],"cwes":["CWE-770"],"affected":[{"ranges":[{"version":"0.3.0-rc.1","status":"affected"},{"type":"custom","introduced":"unspecified","fixed":"0.2.8","status":"affected"}],"vendor":"tokio-rs","product":"axum-core","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.2.8"}],"ecosystem":"crates.io","package":"axum-core","purl":"pkg:cargo/axum-core","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.3.0-rc.1","status":"affected","fixed":"0.3.0-rc.2"}],"ecosystem":"crates.io","package":"axum-core","purl":"pkg:cargo/axum-core","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.0.0-0","status":"affected","fixed":"0.2.8"},{"type":"semver","introduced":"0.3.0-rc.1","status":"affected","fixed":"0.3.0-rc.2"}],"ecosystem":"crates.io","package":"axum-core","purl":"pkg:cargo/axum-core","source":"rustsec"},{"ranges":[{"status":"affected","fixed":"0.2.8"},{"status":"affected","version":"0.3.0"}],"vendor":"axum-core_project","product":"axum-core","cpe":"cpe:2.3:a:axum-core_project:axum-core:*:*:*:*:*:rust:*:*","source":"nvd"}],"references":[{"url":"https://research.jfrog.com/vulnerabilities/axum-core-dos/","tags":["exploit","third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2022-0055.html","tags":["advisory","exploit","issue-tracking","patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","rustsec","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-3212","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/tokio-rs/axum/pull/1346","tags":["web"],"sources":["ghsa","rustsec"]},{"url":"https://github.com/tokio-rs/axum","tags":["package"],"sources":["ghsa"]},{"url":"https://crates.io/crates/axum-core","tags":["package"],"sources":["rustsec"]}],"credits":[],"assigner":"JFROG","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-3212","url":"https://www.cve.org/CVERecord?id=CVE-2022-3212","licence":"CVE Terms of Use","modified":"2024-08-03T01:00:10.862Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-m77f-652q-wwp4","url":"https://github.com/advisories/GHSA-m77f-652q-wwp4","licence":"CC-BY-4.0","modified":"2023-11-08T04:09:34.414Z"},{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2022-0055","url":"https://rustsec.org/advisories/RUSTSEC-2022-0055.html","licence":"CC0-1.0","modified":"2023-11-08T04:09:34.414Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-3212","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-3212","licence":"Public domain","modified":"2026-06-17T04:59:05.120Z"}],"updatedAt":"2026-11-25T22:58:14.930Z","epss":{"score":0.01054,"percentile":0.65331,"date":"2026-12-01T12:00:22.000Z"}}