Protobuf Java vulnerable to Uncontrolled Resource Consumption
Published 12 Dec 2022 · Updated 10 Sept 2026
Is your project on an affected com.google.protobuf:protobuf-java?
Look after several Java apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected packages
- Affected
- >=3.0.0 <3.16.3
- Fixed in
- 3.16.3
mvn versions:use-dep-version -Dincludes=com.google.protobuf:protobuf-java -DdepVersion=3.16.3 -DforceVersion=true- Affected
- >=3.17.0 <3.19.6
- Fixed in
- 3.19.6
mvn versions:use-dep-version -Dincludes=com.google.protobuf:protobuf-java -DdepVersion=3.19.6 -DforceVersion=true- Affected
- >=3.20.0 <3.20.3
- Fixed in
- 3.20.3
mvn versions:use-dep-version -Dincludes=com.google.protobuf:protobuf-java -DdepVersion=3.20.3 -DforceVersion=true- Affected
- >=3.21.0 <3.21.7
- Fixed in
- 3.21.7
mvn versions:use-dep-version -Dincludes=com.google.protobuf:protobuf-java -DdepVersion=3.21.7 -DforceVersion=true- Affected
- >=3.0.0 <3.16.3
- Fixed in
- 3.16.3
mvn versions:use-dep-version -Dincludes=com.google.protobuf:protobuf-javalite -DdepVersion=3.16.3 -DforceVersion=true- Affected
- >=3.17.0 <3.19.6
- Fixed in
- 3.19.6
mvn versions:use-dep-version -Dincludes=com.google.protobuf:protobuf-javalite -DdepVersion=3.19.6 -DforceVersion=true- Affected
- >=3.20.0 <3.20.3
- Fixed in
- 3.20.3
mvn versions:use-dep-version -Dincludes=com.google.protobuf:protobuf-javalite -DdepVersion=3.20.3 -DforceVersion=true- Affected
- >=3.21.0 <3.21.7
- Fixed in
- 3.21.7
mvn versions:use-dep-version -Dincludes=com.google.protobuf:protobuf-javalite -DdepVersion=3.21.7 -DforceVersion=trueDetails
A parsing issue similar to CVE-2022-3171, but with Message-Type Extensions 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.
Is GHSA-4gg5-vx3j-xwc7 in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected com.google.protobuf:protobuf-java, and gives you the command that fixes it.
More advisories for com.google.protobuf:protobuf-java
- HighCVE-2024-7254protobuf-java has potential Denial of Service issue · 19 Sept 2024
- HighCVE-2022-3509Protobuf Java vulnerable to Uncontrolled Resource Consumption · 12 Dec 2022
- MediumCVE-2022-3171protobuf-java has a potential Denial of Service issue · 4 Oct 2022
- HighCVE-2021-22569A potential Denial of Service issue in protobuf-java · 7 Jan 2022
References
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.