CVE-2022-3212
Rust vulnerability analysis and mitigation

Overview

CVE-2022-3212 is a vulnerability in axum-core, a Rust package, discovered and reported by Ori Hollander from the JFrog Security Research Team on August 31, 2022. The vulnerability affects axum-core versions up to 0.2.7 and 0.3.0-rc.1, where the ::from_request function did not set a default limit for HTTP request body sizes. This vulnerability also impacts several extractors that use Bytes::from_request internally, including axum::extract::Form, axum::extract::Json, and String (JFrog Advisory, RustSec Advisory).

Technical details

The vulnerability stems from the ::from_request function's failure to implement request size limits by default. When processing HTTP requests, if a malicious actor sends a request with a very large Content-Length header (even with a relatively small body), it could cause the Rust allocator to panic due to failed allocation attempts. The vulnerability has been assigned a CVSS v3.1 base score of 7.5 (HIGH) and is categorized under CWE-770 (Allocation of Resources Without Limits or Throttling) (NVD).

Impact

The primary impact of this vulnerability is the potential for denial of service attacks. When exploited, an attacker can cause the server to run out of memory and crash by sending requests with extremely large or infinite body sizes. This could lead to service disruption and system instability (JFrog Advisory, RustSec Advisory).

Mitigation and workarounds

The vulnerability has been patched in axum-core version 0.2.8 and 0.3.0-rc.2. The fixed versions implement a default 2 MB limit on request body sizes. For axum users, versions 0.5.16 and 0.6.0-rc.2 or later contain the fix. It is strongly recommended to upgrade to these patched versions as no alternative mitigations are provided (RustSec Advisory).

Additional resources


SourceThis report was generated using AI

Related Rust vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-22863CRITICAL9.2
  • RustRust
  • deno
NoYesJan 15, 2026
CVE-2026-23519HIGH8.9
  • RustRust
  • yazi
NoYesJan 15, 2026
RUSTSEC-2026-0003HIGH8.9
  • RustRust
  • cmov
NoYesJan 14, 2026
CVE-2026-22864HIGH8.1
  • RustRust
  • deno
NoYesJan 15, 2026
CVE-2026-22782LOW2.9
  • RustRust
  • rustfs
NoYesJan 16, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management