CVE-2022-3171
HIGH 7.5CVSS 3.1protobuf-java has a potential Denial of Service issue
A parsing issue with binary data 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.
- Published
- 12 Oct 2022
- Last modified
- 10 Sep 2026
- Assigned by
- cve-coordination@google.com
- NVD status
- Modified
- Weakness
- CWE-20
- Also known as
- GHSA-h4h5-3hr4-j3g2
- Sources
- NVDJSONOSV GHSA-h4h5-3hr4-j3g2JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.7 | CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| NVD | cve-coordination@google.com (Secondary) | CVSS 3.1 | MEDIUM 4.3 | CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | google-protobufcpe:2.3:a:google:google-protobuf:*:*:*:*:*:ruby:*:* |
< 3.16.3 | 3.16.3 | |
| NVD | google-protobufcpe:2.3:a:google:google-protobuf:*:*:*:*:*:ruby:*:* |
>= 3.17.0, < 3.19.6 | 3.19.6 | |
| NVD | google-protobufcpe:2.3:a:google:google-protobuf:*:*:*:*:*:ruby:*:* |
>= 3.20.0, < 3.20.3 | 3.20.3 | |
| NVD | google-protobufcpe:2.3:a:google:google-protobuf:*:*:*:*:*:ruby:*:* |
>= 3.21.0, < 3.21.7 | 3.21.7 | |
| NVD | protobuf-javacpe:2.3:a:google:protobuf-java:*:*:*:*:*:*:*:* |
< 3.16.3 | 3.16.3 | |
| NVD | protobuf-javacpe:2.3:a:google:protobuf-java:*:*:*:*:*:*:*:* |
>= 3.17.0, < 3.19.6 | 3.19.6 | |
| NVD | protobuf-javacpe:2.3:a:google:protobuf-java:*:*:*:*:*:*:*:* |
>= 3.20.0, < 3.20.3 | 3.20.3 | |
| NVD | protobuf-javacpe:2.3:a:google:protobuf-java:*:*:*:*:*:*:*:* |
>= 3.21.0, < 3.21.7 | 3.21.7 | |
| NVD | protobuf-javalitecpe:2.3:a:google:protobuf-javalite:*:*:*:*:*:*:*:* |
< 3.16.3 | 3.16.3 | |
| NVD | protobuf-javalitecpe:2.3:a:google:protobuf-javalite:*:*:*:*:*:*:*:* |
>= 3.17.0, < 3.19.6 | 3.19.6 | |
| NVD | protobuf-javalitecpe:2.3:a:google:protobuf-javalite:*:*:*:*:*:*:*:* |
>= 3.20.0, < 3.20.3 | 3.20.3 | |
| NVD | protobuf-javalitecpe:2.3:a:google:protobuf-javalite:*:*:*:*:*:*:*:* |
>= 3.21.0, < 3.21.7 | 3.21.7 | |
| NVD | protobuf-kotlincpe:2.3:a:google:protobuf-kotlin:*:*:*:*:*:*:*:* |
< 3.16.3 | 3.16.3 | |
| NVD | protobuf-kotlincpe:2.3:a:google:protobuf-kotlin:*:*:*:*:*:*:*:* |
>= 3.17.0, < 3.19.6 | 3.19.6 | |
| NVD | protobuf-kotlincpe:2.3:a:google:protobuf-kotlin:*:*:*:*:*:*:*:* |
>= 3.20.0, < 3.20.3 | 3.20.3 | |
| NVD | protobuf-kotlincpe:2.3:a:google:protobuf-kotlin:*:*:*:*:*:*:*:* |
>= 3.21.0, < 3.21.7 | 3.21.7 | |
| NVD | protobuf-kotlin-litecpe:2.3:a:google:protobuf-kotlin-lite:*:*:*:*:*:*:*:* |
< 3.16.3 | 3.16.3 | |
| NVD | protobuf-kotlin-litecpe:2.3:a:google:protobuf-kotlin-lite:*:*:*:*:*:*:*:* |
>= 3.17.0, < 3.19.6 | 3.19.6 | |
| NVD | protobuf-kotlin-litecpe:2.3:a:google:protobuf-kotlin-lite:*:*:*:*:*:*:*:* |
>= 3.20.0, < 3.20.3 | 3.20.3 | |
| NVD | protobuf-kotlin-litecpe:2.3:a:google:protobuf-kotlin-lite:*:*:*:*:*:*:*:* |
>= 3.21.0, < 3.21.7 | 3.21.7 | |
| NVD | fedoraproject | fedoracpe:2.3:o:fedoraproject:fedora:37:*:*:*:*:*:*:* |
= 37 | |
| OSV | Maven | com.google.protobuf:protobuf-java | >= 3.21.0-rc-1, < 3.21.7 | 3.21.7 |
| OSV | Maven | com.google.protobuf:protobuf-kotlin | >= 3.21.0-rc-1, < 3.21.7 | 3.21.7 |
| OSV | RubyGems | google-protobuf | >= 3.21.0.rc.1, < 3.21.7 | 3.21.7 |
| OSV | Maven | com.google.protobuf:protobuf-javalite | >= 3.21.0-rc-1, < 3.21.7 | 3.21.7 |
| OSV | Maven | com.google.protobuf:protobuf-kotlin-lite | >= 3.21.0-rc-1, < 3.21.7 | 3.21.7 |
| OSV | Maven | com.google.protobuf:protobuf-java | >= 3.20.0-rc-1, < 3.20.3 | 3.20.3 |
| OSV | Maven | com.google.protobuf:protobuf-java | >= 3.17.0-rc-1, < 3.19.6 | 3.19.6 |
| OSV | Maven | com.google.protobuf:protobuf-java | < 3.16.3 | 3.16.3 |
| OSV | Maven | com.google.protobuf:protobuf-kotlin | >= 3.20.0-rc-1, < 3.20.3 | 3.20.3 |
| OSV | Maven | com.google.protobuf:protobuf-kotlin | >= 3.17.0-rc-1, < 3.19.6 | 3.19.6 |
| OSV | Maven | com.google.protobuf:protobuf-kotlin | < 3.16.3 | 3.16.3 |
| OSV | RubyGems | google-protobuf | >= 3.20.0.rc.1, < 3.20.3 | 3.20.3 |
| OSV | RubyGems | google-protobuf | >= 3.17.0.rc.1, < 3.19.6 | 3.19.6 |
| OSV | RubyGems | google-protobuf | < 3.16.3 | 3.16.3 |
| OSV | Maven | com.google.protobuf:protobuf-javalite | >= 3.20.0-rc-1, < 3.20.3 | 3.20.3 |
| OSV | Maven | com.google.protobuf:protobuf-javalite | >= 3.17.0-rc-1, < 3.19.6 | 3.19.6 |
| OSV | Maven | com.google.protobuf:protobuf-javalite | < 3.16.3 | 3.16.3 |
| OSV | Maven | com.google.protobuf:protobuf-kotlin-lite | >= 3.20.0-rc-1, < 3.20.3 | 3.20.3 |
| OSV | Maven | com.google.protobuf:protobuf-kotlin-lite | >= 3.17.0-rc-1, < 3.19.6 | 3.19.6 |
| OSV | Maven | com.google.protobuf:protobuf-kotlin-lite | < 3.16.3 | 3.16.3 |
References
- https://github.com/protocolbuffers/protobuf/security/advisories/GHSA-h4h5-3hr4-j3g2 · Third Party Advisory, WEB
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/CBAUKJQL6O4TIWYBENORSY5P43TVB4M3/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MPCGUT3T5L6C3IDWUPSUO22QDCGQKTOP/
- https://security.gentoo.org/glsa/202301-09 · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-3171 · ADVISORY
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=48771 · WEB
- https://github.com/protocolbuffers/protobuf · PACKAGE
- https://github.com/protocolbuffers/protobuf/releases/tag/v21.7 · WEB
- https://github.com/protocolbuffers/protobuf/releases/tag/v3.16.3 · WEB
- https://github.com/protocolbuffers/protobuf/releases/tag/v3.19.6 · WEB
- https://github.com/protocolbuffers/protobuf/releases/tag/v3.20.3 · WEB
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/google-protobuf/CVE-2022-3171.yml · WEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/CBAUKJQL6O4TIWYBENORSY5P43TVB4M3 · WEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/MPCGUT3T5L6C3IDWUPSUO22QDCGQKTOP · WEB
History
- 25 Nov 2026 20:35 UTC · NVD: first stored (published 12 Oct 2022)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 4 Oct 2022)