Live threats

All CVEs / Google

CVE-2022-3171Google-protobuf

High 7.5 No auth needed

Priority
60
CVSS 3.1
7.5
EPSS
1.0%
probability of exploitation in 30 days · percentile 61
Auth required
No
Published
Oct 12, 2022
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-20
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

What happens

A parsing issue with binary data in protobuf-java core and lite versions prior to 3.21.7, 3.20.3, 3.19.6 and 3.16.3 can lead to a denial of service attack. Inputs containing multiple instances of non-repeated embedded messages with repeated or unknown fields causes objects to be converted back-n-forth between mutable and immutable forms, resulting in potentially long garbage collection pauses. We recommend updating to the versions mentioned above.

Original NVD text.

What to do

  1. Apply the vendor's security update for Google-protobuf.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Maven com.google.protobuf:protobuf-java ≥ 3.21.0-rc-1 < 3.21.7 3.21.7 —
Maven com.google.protobuf:protobuf-java ≥ 3.20.0-rc-1 < 3.20.3 3.20.3 —
Maven com.google.protobuf:protobuf-java ≥ 3.17.0-rc-1 < 3.19.6 3.19.6 —
Maven com.google.protobuf:protobuf-java < 3.16.3 3.16.3 —
Maven com.google.protobuf:protobuf-javalite ≥ 3.21.0-rc-1 < 3.21.7 3.21.7 —
Maven com.google.protobuf:protobuf-javalite ≥ 3.20.0-rc-1 < 3.20.3 3.20.3 —
Maven com.google.protobuf:protobuf-javalite ≥ 3.17.0-rc-1 < 3.19.6 3.19.6 —
Maven com.google.protobuf:protobuf-javalite < 3.16.3 3.16.3 —
Maven com.google.protobuf:protobuf-kotlin ≥ 3.21.0-rc-1 < 3.21.7 3.21.7 —
Maven com.google.protobuf:protobuf-kotlin ≥ 3.20.0-rc-1 < 3.20.3 3.20.3 —
Maven com.google.protobuf:protobuf-kotlin ≥ 3.17.0-rc-1 < 3.19.6 3.19.6 —
Maven com.google.protobuf:protobuf-kotlin < 3.16.3 3.16.3 —
Maven com.google.protobuf:protobuf-kotlin-lite ≥ 3.21.0-rc-1 < 3.21.7 3.21.7 —
Maven com.google.protobuf:protobuf-kotlin-lite ≥ 3.20.0-rc-1 < 3.20.3 3.20.3 —
Maven com.google.protobuf:protobuf-kotlin-lite ≥ 3.17.0-rc-1 < 3.19.6 3.19.6 —
Maven com.google.protobuf:protobuf-kotlin-lite < 3.16.3 3.16.3 —
RubyGems google-protobuf ≥ 3.21.0.rc.1 < 3.21.7 3.21.7 gem "google-protobuf", ">= 3.21.7"
RubyGems google-protobuf ≥ 3.20.0.rc.1 < 3.20.3 3.20.3 gem "google-protobuf", ">= 3.20.3"
RubyGems google-protobuf ≥ 3.17.0.rc.1 < 3.19.6 3.19.6 gem "google-protobuf", ">= 3.19.6"
RubyGems google-protobuf < 3.16.3 3.16.3 gem "google-protobuf", ">= 3.16.3"

Per OSV / GitHub Advisories (GHSA-h4h5-3hr4-j3g2). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
googlegoogle-protobuf< 3.16.3
googlegoogle-protobuf≥ 3.17.0 < 3.19.6
googlegoogle-protobuf≥ 3.20.0 < 3.20.3
googlegoogle-protobuf≥ 3.21.0 < 3.21.7
googleprotobuf-java< 3.16.3
googleprotobuf-java≥ 3.17.0 < 3.19.6
googleprotobuf-java≥ 3.20.0 < 3.20.3
googleprotobuf-java≥ 3.21.0 < 3.21.7
googleprotobuf-javalite< 3.16.3
googleprotobuf-javalite≥ 3.17.0 < 3.19.6
googleprotobuf-javalite≥ 3.20.0 < 3.20.3
googleprotobuf-javalite≥ 3.21.0 < 3.21.7
googleprotobuf-kotlin< 3.16.3
googleprotobuf-kotlin≥ 3.17.0 < 3.19.6
googleprotobuf-kotlin≥ 3.20.0 < 3.20.3
googleprotobuf-kotlin≥ 3.21.0 < 3.21.7
googleprotobuf-kotlin-lite< 3.16.3
googleprotobuf-kotlin-lite≥ 3.17.0 < 3.19.6
googleprotobuf-kotlin-lite≥ 3.20.0 < 3.20.3
googleprotobuf-kotlin-lite≥ 3.21.0 < 3.21.7
fedoraprojectfedora37

Official sources

References

Links published by the sources. Open them with care.