CVE-2021-22569: A potential Denial of Service issue in protobuf-java
7.5
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.64125%
CWE
Published
1/7/2022
Updated
1/24/2023
KEV Status
No
Technology
Java
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 |
---|---|---|---|
com.google.protobuf:protobuf-java | maven | < 3.16.1 | 3.16.1 |
google-protobuf | rubygems | < 3.19.2 | 3.19.2 |
com.google.protobuf:protobuf-java | maven | >= 3.18.0, < 3.18.2 | 3.18.2 |
com.google.protobuf:protobuf-java | maven | >= 3.19.0, < 3.19.2 | 3.19.2 |
com.google.protobuf:protobuf-kotlin | maven | >= 3.18.0, < 3.18.2 | 3.18.2 |
com.google.protobuf:protobuf-kotlin | maven | >= 3.19.0, < 3.19.2 | 3.19.2 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from how unknown fields are parsed in Java Protobuf. Key functions in the parsing pipeline (mergeFieldFrom, parseUnknownField, and DiscardUnknownFieldsParser) handle unknown field processing. These functions were likely optimized in patched versions to prevent excessive object creation and recursion. The OSS-Fuzz PoC demonstrates that interleaved unknown fields trigger the issue, implicating these core parsing mechanisms. The CWE-696 (incorrect order) suggests improper handling of parsing steps, leading to resource exhaustion.