CVE-2022-36124: Apache Avro Rust SDK's Reader could consume memory beyond allowed constraints
7.5
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.85964%
CWE
Published
8/10/2022
Updated
1/28/2023
KEV Status
No
Technology
Rust
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
apache-avro | rust | < 0.14.0 | 0.14.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from uncontrolled memory allocation during Avro data block processing. Avro's block-based format includes a header with record count and size. The Reader's read_block function would be responsible for parsing this header and allocating memory for records. Without validation of these values (e.g., maximum allowed records/size), a malicious block with a large count would force the SDK to allocate proportional memory, matching CWE-770's pattern. The high confidence comes from: 1) The vulnerability's direct association with Reader memory consumption 2) The critical role of block reading in Avro's architecture 3) The CWE-770 alignment with unvalidated block size/count parsing.