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)
| Artifact | Affected versions | Fixed 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
61% of the dependent artifacts (17,495) still pull an affected version in their latest release.
| Depth | Dependent 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
- mysql » mysql-connector-java8,858 usages
- org.apache.hadoop » hadoop-common3,482 usages
- net.alchim31.maven » scala-maven-plugin3,328 usages
- org.apache.spark » spark-sql3,174 usages
- io.grpc » grpc-protobuf3,009 usages
- redis.clients » jedis2,971 usages
- org.apache.spark » spark-core2,899 usages
- com.android.tools.build » gradle2,197 usages
- com.mysql » mysql-connector-j2,127 usages
- com.typesafe.play » play-test1,902 usages
- com.google.protobuf » protobuf-java-util1,813 usages
- org.apache.hadoop » hadoop-client1,796 usages
- com.google.api.grpc » proto-google-common-protos1,565 usages
- com.typesafe.akka » akka-stream1,502 usages
- org.apache.kafka » kafka1,450 usages
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.
References
- Advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2022-3509
- Webhttps://github.com/protocolbuffers/protobuf/commit/a3888f53317a8018e7a439bac4abeb8f3425d5e9
- Webhttps://github.com/protocolbuffers/protobuf/blob/v2.6.1/java/core/src/main/java/com/google/protobuf/MessageReflection.java
- Webhttps://github.com/protocolbuffers/protobuf/blob/v3.0.0/java/core/src/main/java/com/google/protobuf/MessageReflection.java
- Packagehttps://github.com/protocolbuffers/protobuf/tree/main/java
