CVE-2021-22569: Denial of Service of protobuf-java parsing procedure
Summary
A potential Denial of Service issue in protobuf-java was discovered in the parsing procedure for binary data.
Reporter: OSS-Fuzz
Affected versions: All versions of Java Protobufs (including Kotlin and JRuby) prior to the versions listed below. Protobuf "javalite" users (typically Android) are not affected.
Severity
CVE-2021-22569 High - CVSS Score: 7.5, An implementation weakness in how unknown fields are parsed in Java. A small (~800 KB) malicious payload can occupy the parser for several minutes by creating large numbers of short-lived objects that cause frequent, repeated GC pauses.
Proof of Concept
For reproduction details, please refer to the oss-fuzz issue that identifies the specific inputs that exercise this parsing weakness.
Remediation and Mitigation
Please update to the latest available versions of the following packages:
- protobuf-java (3.16.1, 3.18.2, 3.19.2) - protobuf-kotlin (3.18.2, 3.19.2) - google-protobuf [JRuby gem only] (3.19.2)
Other sources
A flaw was found in protobuf-java. Google Protocol Buffer (protobuf-java) allows the interleaving of com.google.protobuf.UnknownFieldSet fields. By persuading a victim to open specially-crafted content, a remote attacker could cause a timeout in the ProtobufFuzzer function, resulting in a denial of service.
An issue in protobuf-java allowed the interleaving of com.google.protobuf.UnknownFieldSet fields in such a way that would be processed out of order. A small malicious payload can occupy the parser for several minutes by creating large numbers of short-lived objects that cause frequent, repeated pauses. We recommend upgrading libraries beyond the vulnerable versions.
Denial of Service of protobuf-java parsing procedure
— Microsoft
Google Protocol Buffer (protobuf-java) is vulnerable to a denial of service, caused by an issue with allow interleaving of com.google.protobuf.UnknownFieldSet fields. By persuading a victim to open a specially-crafted content, a remote attacker could exploit this vulnerability to cause a timeout in ProtobufFuzzer function, and results in a denial of service condition.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
redhat/protobufto a version that resolves this vulnerability.Fixed in 3.16.1 - Upgrade
Upgrade
redhat/protobufto a version that resolves this vulnerability.Fixed in 3.18.2 - Upgrade
Upgrade
redhat/protobufto a version that resolves this vulnerability.Fixed in 3.19.2 - Upgrade
Upgrade
maven/com.google.protobuf:protobuf-kotlinto a version that resolves this vulnerability.Fixed in 3.19.2 - Upgrade
Upgrade
maven/com.google.protobuf:protobuf-kotlinto a version that resolves this vulnerability.Fixed in 3.18.2 - Upgrade
Upgrade
maven/com.google.protobuf:protobuf-javato a version that resolves this vulnerability.Fixed in 3.19.2 - Upgrade
Upgrade
maven/com.google.protobuf:protobuf-javato a version that resolves this vulnerability.Fixed in 3.18.2 - Upgrade
Upgrade
rubygems/google-protobufto a version that resolves this vulnerability.Fixed in 3.19.2 - Upgrade
Upgrade
maven/com.google.protobuf:protobuf-javato a version that resolves this vulnerability.Fixed in 3.16.1 - Upgrade
Upgrade
debian/protobufto a version that resolves this vulnerability.Fixed in 3.19.3-1Fixed in 3.6.1.3-2+deb10u1Fixed in 3.12.4-1+deb11u1Fixed in 3.21.9-3
Event History
Parent advisories
This vulnerability appears in the following advisories.
Frequently Asked Questions
What is the vulnerability ID?
The vulnerability ID is CVE-2021-22569.
What is the severity of CVE-2021-22569?
The severity of CVE-2021-22569 is medium with a severity value of 5.5.
What is the affected software of CVE-2021-22569?
The affected software of CVE-2021-22569 is Google Protocol Buffer (protobuf-java) versions 3.16.1, 3.18.2, and 3.19.2, as well as IBM Disconnected Log Collector versions v1.0 to v1.8.2.
How can the vulnerability CVE-2021-22569 be exploited?
The vulnerability CVE-2021-22569 can be exploited by persuading a victim to open a specially-crafted content, causing a timeout.
Is there a fix available for CVE-2021-22569?
Yes, there are fixes available for CVE-2021-22569. For Google Protocol Buffer (protobuf-java), the recommended fix is to upgrade to version 3.16.1, 3.18.2, or 3.19.2. For IBM Disconnected Log Collector, the recommended fix is to upgrade to a version higher than v1.8.2.