HIGH 7.5

CVE-2022-3509

Protobuf Java vulnerable to Uncontrolled Resource Consumption

Description

A parsing issue similar to CVE-2022-3171, but with textformat 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.

Affected Maven artifacts (2)

ArtifactAffected versionsFixed in
com.google.protobuf » protobuf-java
>= 3.0.0, < 3.16.3>= 3.17.0, < 3.19.6>= 3.20.0, < 3.20.3>= 3.21.0, < 3.21.7
3.16.3, 3.19.6, 3.20.3, 3.21.7
com.google.protobuf » protobuf-javalite
>= 3.0.0, < 3.16.3>= 3.20.0, < 3.20.3>= 3.21.0, < 3.21.7
3.16.3, 3.20.3, 3.21.7

Blast radius

2affected artifacts
155affected versions
28,593dependent artifacts (est.)
1,366,076dependent versions

61% of the dependent artifacts (17,495) still pull an affected version in their latest release.

DepthDependent versions
Direct
134,635
2 hops
412,394
3 hops
343,426
4 hops
229,214
5 hops
157,089
6 hops
89,318

Most used dependents

Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.