Vulnerability · Published Jan 7, 2022 · Assigned by Google
CVE-2021-22569Denial of Service of protobuf-java parsing procedure
High 7.5
In plain English
A high-severity security flaw in google-protobuf [JRuby Gem] from Google LLC. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 1.8% (higher than 79% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | protobuf | 3.21.9-3 | DEBIAN-CVE-2021-22569 |
| Debian:13 | protobuf | 3.21.9-3 | DEBIAN-CVE-2021-22569 |
| Debian:14 | protobuf | 3.21.9-3 | DEBIAN-CVE-2021-22569 |
| Maven | com.google.protobuf:protobuf-java | 3.18.2 | GHSA-wrvw-hg22-4m67 |
| Maven | com.google.protobuf:protobuf-java | 3.19.2 | GHSA-wrvw-hg22-4m67 |
| Maven | com.google.protobuf:protobuf-java | 3.16.1 | GHSA-wrvw-hg22-4m67 |
| Maven | com.google.protobuf:protobuf-kotlin | 3.18.2 | GHSA-wrvw-hg22-4m67 |
| Maven | com.google.protobuf:protobuf-kotlin | 3.19.2 | GHSA-wrvw-hg22-4m67 |
| RubyGems | google-protobuf | 3.19.2 | GHSA-wrvw-hg22-4m67 |
| Ubuntu:22.04:LTS | protobuf | 3.12.4-1ubuntu7.22.04.1 | UBUNTU-CVE-2021-22569 |
| Ubuntu:22.04:LTS | protobuf | 3.12.4-1ubuntu7.22.04.1 | USN-5945-1 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Google LLC | protobuf-java | unspecified – before 3.16.1unspecified – before 3.18.2unspecified – before 3.19.2 |
| Google LLC | protobuf-kotlin | unspecified – before 3.18.2unspecified – before 3.19.2 |
| Google LLC | google-protobuf [JRuby Gem] | unspecified – before 3.19.2 |
Weakness: CWE-696 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
References
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=39330
- https://cloud.google.com/support/bulletins#gcp-2022-001
- [oss-security] 20220112 CVE-2021-22569: Protobuf Java, Kotlin, JRuby DoS mailing-list
- [oss-security] 20220112 Re: CVE-2021-22569: Protobuf Java, Kotlin, JRuby DoS mailing-list
- https://www.oracle.com/security-alerts/cpuapr2022.html
- [debian-lts-announce] 20230418 [SECURITY] [DLA 3393-1] protobuf security update mailing-list