Miggo Logo

CVE-2021-22569: A potential Denial of Service issue in protobuf-java

7.5

CVSS Score
3.1

Basic Information

EPSS Score
0.64125%
Published
1/7/2022
Updated
1/24/2023
KEV Status
No
Technology
TechnologyJava

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Package NameEcosystemVulnerable VersionsFirst Patched Version
com.google.protobuf:protobuf-javamaven< 3.16.13.16.1
google-protobufrubygems< 3.19.23.19.2
com.google.protobuf:protobuf-javamaven>= 3.18.0, < 3.18.23.18.2
com.google.protobuf:protobuf-javamaven>= 3.19.0, < 3.19.23.19.2
com.google.protobuf:protobuf-kotlinmaven>= 3.18.0, < 3.18.23.18.2
com.google.protobuf:protobuf-kotlinmaven>= 3.19.0, < 3.19.23.19.2

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot 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.

Vulnerable functions

Only Mi**o us*rs **n s** t*is s**tion

WAF Protection Rules

WAF Rule

## Summ*ry * pot*nti*l **ni*l o* S*rvi** issu* in proto*u*-j*v* w*s *is*ov*r** in t** p*rsin* pro***ur* *or *in*ry **t*. R*port*r: [OSS-*uzz](*ttps://*it*u*.*om/*oo*l*/oss-*uzz) *****t** v*rsions: *ll v*rsions o* J*v* Proto*u*s (in*lu*in* Kotlin *

Reasoning

T** vuln*r**ility st*ms *rom *ow unknown *i*l*s *r* p*rs** in J*v* Proto*u*. K*y *un*tions in t** p*rsin* pip*lin* (m*r***i*l**rom, p*rs*Unknown*i*l*, *n* *is**r*Unknown*i*l*sP*rs*r) **n*l* unknown *i*l* pro**ssin*. T**s* *un*tions w*r* lik*ly optimi