CVE-2021-22569
JSON

7.5high

Denial of Service of protobuf-java parsing procedure

Severity
7.5high CVSS:3.1 by Google
Exploit likelihood
1.80% (higher than 79% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Google
Also known as
GHSA-wrvw-hg22-4m67

Description

An issue in protobuf-java allowed the interleaving of com.google.protobuf.UnknownFieldSet fields in such a way that would be processed out of order. A small malicious payload can occupy the parser for several minutes by creating large numbers of short-lived objects that cause frequent, repeated pauses. We recommend upgrading libraries beyond the vulnerable versions.

Affected

Product or packageVersionsReported by
Google LLC protobuf-javafrom unspecified before 3.16.1, from unspecified before 3.18.2, from unspecified before 3.19.2CVE List
Google LLC protobuf-kotlinfrom unspecified before 3.18.2, from unspecified before 3.19.2CVE List
Google LLC google-protobuf [JRuby Gem]from unspecified before 3.19.2CVE List
com.google.protobuf:protobuf-java (Maven)before 3.16.1, from 3.18.0 before 3.18.2, from 3.19.0 before 3.19.2GitHub Advisory Database
google-protobuf (RubyGems)before 3.19.2GitHub Advisory Database
com.google.protobuf:protobuf-kotlin (Maven)from 3.18.0 before 3.18.2, from 3.19.0 before 3.19.2GitHub Advisory Database
google google-protobufbefore 3.19.2NVD
google protobuf-javabefore 3.16.1, from 3.18.0 before 3.18.2, from 3.19.0 before 3.19.2NVD
google protobuf-kotlinbefore 3.18.2, from 3.19.0 before 3.19.2NVD
oracle communications_cloud_native_core_console1.9.0NVD
oracle communications_cloud_native_core_network_repository_function1.15.0, 1.15.1NVD
oracle communications_cloud_native_core_policy1.15.0NVD

All scores

Google7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
GitHub7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
NVD4.3medium CVSS:2.0AV:N/AC:M/Au:N/C:N/I:N/A:P

Classification

CWE-696

SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial.

What each source says

CVE List

An issue in protobuf-java allowed the interleaving of com.google.protobuf.UnknownFieldSet fields in such a way that would be processed out of order. A small malicious payload can occupy the parser for several minutes by creating large numbers of short-lived objects that cause frequent, repeated pauses. We recommend upgrading libraries beyond the vulnerable versions.

GitHub Advisory Database

Summary

A potential Denial of Service issue in protobuf-java was discovered in the parsing procedure for binary data.

Reporter: OSS-Fuzz

Affected versions: All versions of Java Protobufs (including Kotlin and JRuby) prior to the versions listed below. Protobuf "javalite" users (typically Android) are not affected.

Severity

CVE-2021-22569 High - CVSS Score: 7.5, An implementation weakness in how unknown fields are parsed in Java. A small (~800 KB) malicious payload can occupy the parser for several minutes by creating large numbers of short-lived objects that cause frequent, repeated GC pauses.

Proof of Concept

For reproduction details, please refer to the oss-fuzz issue that identifies the specific inputs that exercise this parsing weakness.

Remediation and Mitigation

Please update to the latest available versions of the following packages:

  • protobuf-java (3.16.1, 3.18.2, 3.19.2)
  • protobuf-kotlin (3.18.2, 3.19.2)
  • google-protobuf [JRuby gem only] (3.19.2)
NVD (es)

Un problema en protobuf-java permitía intercalar campos com.google.protobuf.UnknownFieldSet de tal manera que eran procesados fuera de orden. Una pequeña carga útil maliciosa puede ocupar el analizador durante varios minutos al crear un gran número de objetos de corta duración que causan frecuentes y repetidas pausas. Recomendamos actualizar las bibliotecas más allá de las versiones vulnerables

References

Sources

SourceRecordLicence
CVE ListCVE-2021-22569 changed 2025-04-21CVE Terms of Use
GitHub Advisory DatabaseGHSA-wrvw-hg22-4m67 changed 2026-09-10CC-BY-4.0
NVDCVE-2021-22569 changed 2026-06-17Public domain