CVE-2022-3171: protobuf-java has a potential Denial of Service issue
5.7
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.22366%
CWE
Published
10/4/2022
Updated
4/27/2023
KEV Status
No
Technology
Java
Technical Details
CVSS Vector
CVSS:3.1/AV:A/AC:L/PR:L/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.21.0-rc-1, < 3.21.7 | 3.21.7 |
com.google.protobuf:protobuf-kotlin | maven | >= 3.21.0-rc-1, < 3.21.7 | 3.21.7 |
google-protobuf | rubygems | >= 3.21.0.rc.1, < 3.21.7 | 3.21.7 |
com.google.protobuf:protobuf-javalite | maven | >= 3.21.0-rc-1, < 3.21.7 | 3.21.7 |
com.google.protobuf:protobuf-kotlin-lite | maven | >= 3.21.0-rc-1, < 3.21.7 | 3.21.7 |
com.google.protobuf:protobuf-java | maven | >= 3.20.0-rc-1, < 3.20.3 | 3.20.3 |
com.google.protobuf:protobuf-java | maven | >= 3.17.0-rc-1, < 3.19.6 | 3.19.6 |
com.google.protobuf:protobuf-java | maven | < 3.16.3 | 3.16.3 |
com.google.protobuf:protobuf-kotlin | maven | >= 3.20.0-rc-1, < 3.20.3 | 3.20.3 |
com.google.protobuf:protobuf-kotlin | maven | >= 3.17.0-rc-1, < 3.19.6 | 3.19.6 |
com.google.protobuf:protobuf-kotlin | maven | < 3.16.3 | 3.16.3 |
google-protobuf | rubygems | >= 3.20.0.rc.1, < 3.20.3 | 3.20.3 |
google-protobuf | rubygems | >= 3.17.0.rc.1, < 3.19.6 | 3.19.6 |
google-protobuf | rubygems | < 3.16.3 | 3.16.3 |
com.google.protobuf:protobuf-javalite | maven | >= 3.20.0-rc-1, < 3.20.3 | 3.20.3 |
com.google.protobuf:protobuf-javalite | maven | >= 3.17.0-rc-1, < 3.19.6 | 3.19.6 |
com.google.protobuf:protobuf-javalite | maven | < 3.16.3 | 3.16.3 |
com.google.protobuf:protobuf-kotlin-lite | maven | >= 3.20.0-rc-1, < 3.20.3 | 3.20.3 |
com.google.protobuf:protobuf-kotlin-lite | maven | >= 3.17.0-rc-1, < 3.19.6 | 3.19.6 |
com.google.protobuf:protobuf-kotlin-lite | maven | < 3.16.3 | 3.16.3 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from inefficient parsing logic that created excessive object conversions between mutable/immutable forms. Release notes specifically mention:
- Migration of parsing from constructors to Builder classes
- Changes in Lite runtime merging behavior
- TextFormat parser optimizations These functions are central to message parsing and merging operations. The patch focused on reducing allocations by reusing builders instead of creating new immutable instances, directly addressing the GC pressure issue caused by repeated conversions.