VDB
Sign up
HIGH7.5

GHSA-4gg5-vx3j-xwc7

Protobuf Java vulnerable to Uncontrolled Resource Consumption

Quick fix

GHSA-4gg5-vx3j-xwc7 — com.google.protobuf:protobuf-java: upgrade to the fixed version with the command below.

# pom.xml: bump <version>3.16.3</version> for com.google.protobuf:protobuf-java

Details

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

Maven/com.google.protobuf:protobuf-java
Introduced in: 3.0.0Fixed in: 3.16.3
Fix# pom.xml: bump <version>3.16.3</version> for com.google.protobuf:protobuf-java
Maven/com.google.protobuf:protobuf-java
Introduced in: 3.17.0Fixed in: 3.19.6
Fix# pom.xml: bump <version>3.19.6</version> for com.google.protobuf:protobuf-java
Maven/com.google.protobuf:protobuf-java
Introduced in: 3.20.0Fixed in: 3.20.3
Fix# pom.xml: bump <version>3.20.3</version> for com.google.protobuf:protobuf-java
Maven/com.google.protobuf:protobuf-java
Introduced in: 3.21.0Fixed in: 3.21.7
Fix# pom.xml: bump <version>3.21.7</version> for com.google.protobuf:protobuf-java
Maven/com.google.protobuf:protobuf-javalite
Introduced in: 3.0.0Fixed in: 3.16.3
Fix# pom.xml: bump <version>3.16.3</version> for com.google.protobuf:protobuf-javalite
Maven/com.google.protobuf:protobuf-javalite
Introduced in: 3.17.0Fixed in: 3.19.6
Fix# pom.xml: bump <version>3.19.6</version> for com.google.protobuf:protobuf-javalite
Maven/com.google.protobuf:protobuf-javalite
Introduced in: 3.20.0Fixed in: 3.20.3
Fix# pom.xml: bump <version>3.20.3</version> for com.google.protobuf:protobuf-javalite
Maven/com.google.protobuf:protobuf-javalite
Introduced in: 3.21.0Fixed in: 3.21.7
Fix# pom.xml: bump <version>3.21.7</version> for com.google.protobuf:protobuf-javalite

References