CVE-2021-22569 — Vulnerability in protobuf-kotlin — CVE Details
A potential Denial of Service issue in protobuf-java
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (1.80%). Schedule for your next planned update.
Does your project use an affected com.google.protobuf:protobuf-kotlin version?
Paste your pom.xml to check it for CVE-2021-22569 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
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)
Advisory Timeline
- First published January 7, 2022 (1784 days ago).
- Last revised September 10, 2026 — 1706 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
<!-- Update pom.xml dependency version to 3.19.2 for com.google.protobuf:protobuf-kotlin -->
<!-- Update pom.xml dependency version to 3.18.2 for com.google.protobuf:protobuf-kotlin -->
<!-- Update pom.xml dependency version to 3.16.1 for com.google.protobuf:protobuf-java -->
<!-- Update pom.xml dependency version to 3.19.2 for com.google.protobuf:protobuf-java -->
<!-- Update pom.xml dependency version to 3.18.2 for com.google.protobuf:protobuf-java -->
gem install google-protobuf -v 3.19.2
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (6)
Affects 2 ecosystems: Maven (2), RubyGems (1).
| Package | Fixed In |
|---|---|
| com.google.protobuf:protobuf-kotlin Maven · Affected: 3.19.0, 3.19.1 | 3.19.2 |
| com.google.protobuf:protobuf-kotlin Maven · Affected: 3.18.0, 3.18.1 | 3.18.2 |
| com.google.protobuf:protobuf-java Maven · Affected: 2.0.1, 2.0.3, 2.1.0, 2.2.0 (+69 more) | 3.16.1 |
| com.google.protobuf:protobuf-java Maven · Affected: 3.19.0, 3.19.1 | 3.19.2 |
| com.google.protobuf:protobuf-java Maven · Affected: 3.18.0, 3.18.1 | 3.18.2 |
| google-protobuf RubyGems · Affected: 3.0.0, 3.0.0.alpha.1.0, 3.0.0.alpha.1.1, 3.0.0.alpha.2.0 (+86 more) | 3.19.2 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-696
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 7.5 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
References
- https://github.com/protocolbuffers/protobuf/security/advisories/GHSA-wrvw-hg22-4m67WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-22569ADVISORY
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=39330WEB
- https://cloud.google.com/support/bulletins#gcp-2022-001WEB
- https://github.com/protocolbuffers/protobufPACKAGE
- https://www.oracle.com/security-alerts/cpuapr2022.htmlWEB
- https://www.openwall.com/lists/oss-security/2022/01/12/4WEB
- https://www.openwall.com/lists/oss-security/2022/01/12/7WEB
Frequently Asked Questions
- What is CVE-2021-22569?
- A potential Denial of Service issue in protobuf-java. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 7.5/10).
- How do I check if my project is affected by CVE-2021-22569?
- CVE-2021-22569 affects com.google.protobuf:protobuf-kotlin, com.google.protobuf:protobuf-java and google-protobuf. It has a 1.8% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2021-22569 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Significant impact if exploited, or exploitable with modest effort.
This places it in the top quartile of EPSS-scored vulnerabilities — 78.9% of tracked vulnerabilities score at or below it, so it is more likely to be exploited than most of the tracked corpus.
Also Known As
Related CVEs
- CVE-2024-7254HIGH
protobuf-java has potential Denial of Service issue
- CVE-2026-61689HIGH
XWiki Platform: HQL injection in search allows unauthenticated database extraction including password hashes
- CVE-2015-5237HIGH
protobuf susceptible to buffer overflow
- CVE-2026-107725HIGH
Hazelcast has an authorization bypass in IMap Predicates API
- CVE-2022-3171MEDIUM
protobuf-java has a potential Denial of Service issue