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
- 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 package | Versions | Reported by |
|---|---|---|
| Google LLC protobuf-java | from unspecified before 3.16.1, from unspecified before 3.18.2, from unspecified before 3.19.2 | CVE List |
| Google LLC protobuf-kotlin | from unspecified before 3.18.2, from unspecified before 3.19.2 | CVE List |
| Google LLC google-protobuf [JRuby Gem] | from unspecified before 3.19.2 | CVE 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.2 | GitHub Advisory Database |
| google-protobuf (RubyGems) | before 3.19.2 | GitHub Advisory Database |
| com.google.protobuf:protobuf-kotlin (Maven) | from 3.18.0 before 3.18.2, from 3.19.0 before 3.19.2 | GitHub Advisory Database |
| google google-protobuf | before 3.19.2 | NVD |
| google protobuf-java | before 3.16.1, from 3.18.0 before 3.18.2, from 3.19.0 before 3.19.2 | NVD |
| google protobuf-kotlin | before 3.18.2, from 3.19.0 before 3.19.2 | NVD |
| oracle communications_cloud_native_core_console | 1.9.0 | NVD |
| oracle communications_cloud_native_core_network_repository_function | 1.15.0, 1.15.1 | NVD |
| oracle communications_cloud_native_core_policy | 1.15.0 | NVD |
| oracle spatial_and_graph_mapviewer | 19c, 21c | NVD |
All scores
| 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H | |
| GitHub | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 5.5medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H |
| NVD | 4.3medium CVSS:2.0 | AV:N/AC:M/Au:N/C:N/I:N/A:P |
Classification
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
| https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=39330 | exploit, issue-tracking, mailing-list, vendor-advisory, web | |
| https://cloud.google.com/support/bulletins#gcp-2022-001 | vendor-advisory, web | |
| http://www.openwall.com/lists/oss-security/2022/01/12/4 | mailing-list, third-party-advisory, web | |
| http://www.openwall.com/lists/oss-security/2022/01/12/7 | mailing-list, third-party-advisory, web | |
| https://www.oracle.com/security-alerts/cpuapr2022.html | patch, third-party-advisory, web | |
| https://lists.debian.org/debian-lts-announce/2023/04/msg00019.html | mailing-list | |
| https://github.com/protocolbuffers/protobuf/security/advisories/GHSA-wrvw-hg22-4m67 | web | |
| https://nvd.nist.gov/vuln/detail/CVE-2021-22569 | advisory | |
| https://github.com/protocolbuffers/protobuf | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-22569 changed 2025-04-21 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-wrvw-hg22-4m67 changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2021-22569 changed 2026-06-17 | Public domain |