Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. com.google.protobuf/protobuf-java
  4. ›
  5. CVE-2022-3509

CVE-2022-3509: Protobuf Java vulnerable to Uncontrolled Resource Consumption

December 12, 2022 (updated December 15, 2022)

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.

References

  • github.com/advisories/GHSA-g5ww-5jh7-63cx
  • github.com/protocolbuffers/protobuf/commit/a3888f53317a8018e7a439bac4abeb8f3425d5e9
  • nvd.nist.gov/vuln/detail/CVE-2022-3509

Code Behaviors & Features

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

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 3.16.0 before 3.16.3, all versions starting from 3.19.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.16.3
  • 3.19.6
  • 3.20.3
  • 3.21.7

Solution

Upgrade to versions 3.16.3, 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

maven/com.google.protobuf/protobuf-java/CVE-2022-3509.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Wed, 14 May 2025 12:16:04 +0000.