Skip to main content

CVE-2021-22569 — Vulnerability in protobuf-kotlin — CVE Details

HIGH

A potential Denial of Service issue in protobuf-java

Published January 7, 2022Updated September 10, 2026Source: OSV

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.

Check my pom.xml

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.

Maven
Update com.google.protobuf:protobuf-kotlin to 3.19.2 or later
<!-- Update pom.xml dependency version to 3.19.2 for com.google.protobuf:protobuf-kotlin -->
Maven
Update com.google.protobuf:protobuf-kotlin to 3.18.2 or later
<!-- Update pom.xml dependency version to 3.18.2 for com.google.protobuf:protobuf-kotlin -->
Maven
Update com.google.protobuf:protobuf-java to 3.16.1 or later
<!-- Update pom.xml dependency version to 3.16.1 for com.google.protobuf:protobuf-java -->
Maven
Update com.google.protobuf:protobuf-java to 3.19.2 or later
<!-- Update pom.xml dependency version to 3.19.2 for com.google.protobuf:protobuf-java -->
Maven
Update com.google.protobuf:protobuf-java to 3.18.2 or later
<!-- Update pom.xml dependency version to 3.18.2 for com.google.protobuf:protobuf-java -->
Bundler
Update google-protobuf to 3.19.2 or later
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).

PackageFixed In
com.google.protobuf:protobuf-kotlin Maven · Affected: 3.19.0, 3.19.13.19.2
com.google.protobuf:protobuf-kotlin Maven · Affected: 3.18.0, 3.18.13.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.13.19.2
com.google.protobuf:protobuf-java Maven · Affected: 3.18.0, 3.18.13.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.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 7.5 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

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

CVSS Score
7.5

Significant impact if exploited, or exploitable with modest effort.

EPSS Score (30-day exploit probability)
1.80%
EPSS percentile: 78.9

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

GHSA-wrvw-hg22-4m67

Related CVEs

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my pom.xml