Advisory Database
  • Advisories
  • Dependency Scanning
  1. gem
  2. ›
  3. google-protobuf
  4. ›
  5. CVE-2022-3171

CVE-2022-3171: Uncontrolled Resource Consumption

October 12, 2022 (updated November 7, 2023)

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.

References

  • bugs.chromium.org/p/oss-fuzz/issues/detail?id=48771
  • github.com/advisories/GHSA-h4h5-3hr4-j3g2
  • github.com/protocolbuffers/protobuf/releases/tag/v21.7
  • github.com/protocolbuffers/protobuf/releases/tag/v3.16.3
  • github.com/protocolbuffers/protobuf/releases/tag/v3.19.6
  • github.com/protocolbuffers/protobuf/releases/tag/v3.20.3
  • github.com/protocolbuffers/protobuf/security/advisories/GHSA-h4h5-3hr4-j3g2
  • nvd.nist.gov/vuln/detail/CVE-2022-3171

Code Behaviors & Features

Detect and mitigate CVE-2022-3171 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 3.16.3, all versions starting from 3.17.0 before 3.19.6, all versions starting from 3.20.0 before 3.20.3, all versions starting from 3.21.0 before 3.21.7

Fixed versions

  • 3.17.0.rc.1
  • 3.19.6
  • 3.20.3
  • 3.21.7

Solution

Upgrade to versions 3.17.0.rc.1, 3.19.6, 3.20.3, 3.21.7 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Source file

gem/google-protobuf/CVE-2022-3171.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:02 +0000.