CVE-2022-3171: Memory handling vulnerability in ProtocolBuffers Java core and lite

Published Oct 4, 2022
·
Updated

Summary A potential Denial of Service issue in protobuf-java core and lite was discovered in the parsing procedure for binary and text format data. Input streams 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.

Reporter: OSS Fuzz

Affected versions: This issue affects both the Java full and lite Protobuf runtimes, as well as Protobuf for Kotlin and JRuby, which themselves use the Java Protobuf runtime.

Severity

CVE-2022-3171 Medium - CVSS Score: 5.7 (NOTE: there may be a delay in publication)

Remediation and Mitigation

Please update to the latest available versions of the following packages:

protobuf-java (3.21.7, 3.20.3, 3.19.6, 3.16.3) protobuf-javalite (3.21.7, 3.20.3, 3.19.6, 3.16.3) protobuf-kotlin (3.21.7, 3.20.3, 3.19.6, 3.16.3) protobuf-kotlin-lite (3.21.7, 3.20.3, 3.19.6, 3.16.3) google-protobuf [JRuby gem only] (3.21.7, 3.20.3, 3.19.6)

Other sources

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.

A potential Denial of Service issue in protobuf-java core and lite was discovered in the parsing procedure for binary and text format data. Input streams 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.

— Red Hat

Apache Commons Codec could allow a remote attacker to obtain sensitive information, caused by the improper validation of input. An attacker could exploit this vulnerability using a method call to obtain sensitive information.

Affected Software

50 affected componentsFixes available
IBM Disconnected Log Collector<=v1.0 - v1.8.2
redhat/protobuf-java<3.21.7
3.21.7
redhat/protobuf-java<3.20.3
3.20.3
redhat/protobuf-java<3.19.6
3.19.6
redhat/protobuf-java<3.16.3
3.16.3
Google Google-protobuf Ruby<3.16.3
Google Google-protobuf Ruby>=3.17.0<3.19.6
Google Google-protobuf Ruby>=3.20.0<3.20.3
Google Google-protobuf Ruby>=3.21.0<3.21.7
Google protobuf-java<3.16.3
Google protobuf-java>=3.17.0<3.19.6
Google protobuf-java>=3.20.0<3.20.3
Google protobuf-java>=3.21.0<3.21.7
Google protobuf-javalite<3.16.3
Google protobuf-javalite>=3.17.0<3.19.6
Google protobuf-javalite>=3.20.0<3.20.3
Google protobuf-javalite>=3.21.0<3.21.7
Google protobuf-kotlin<3.16.3
Google protobuf-kotlin>=3.17.0<3.19.6
Google protobuf-kotlin>=3.20.0<3.20.3
Google protobuf-kotlin>=3.21.0<3.21.7
Google protobuf-kotlin-lite<3.16.3
Google protobuf-kotlin-lite>=3.17.0<3.19.6
Google protobuf-kotlin-lite>=3.20.0<3.20.3
Google protobuf-kotlin-lite>=3.21.0<3.21.7
Fedoraproject Fedora=37
maven/com.google.protobuf:protobuf-kotlin-lite<3.16.3
3.16.3
maven/com.google.protobuf:protobuf-kotlin-lite>=3.17.0-rc-1<3.19.6
3.19.6
maven/com.google.protobuf:protobuf-kotlin-lite>=3.20.0-rc-1<3.20.3
3.20.3
maven/com.google.protobuf:protobuf-javalite<3.16.3
3.16.3
maven/com.google.protobuf:protobuf-javalite>=3.17.0-rc-1<3.19.6
3.19.6
maven/com.google.protobuf:protobuf-javalite>=3.20.0-rc-1<3.20.3
3.20.3
rubygems/google-protobuf<3.16.3
3.16.3
rubygems/google-protobuf>=3.17.0.rc.1<3.19.6
3.19.6
rubygems/google-protobuf>=3.20.0.rc.1<3.20.3
3.20.3
maven/com.google.protobuf:protobuf-kotlin<3.16.3
3.16.3
maven/com.google.protobuf:protobuf-kotlin>=3.17.0-rc-1<3.19.6
3.19.6
maven/com.google.protobuf:protobuf-kotlin>=3.20.0-rc-1<3.20.3
3.20.3
maven/com.google.protobuf:protobuf-java<3.16.3
3.16.3
maven/com.google.protobuf:protobuf-java>=3.17.0-rc-1<3.19.6
3.19.6
maven/com.google.protobuf:protobuf-java>=3.20.0-rc-1<3.20.3
3.20.3
maven/com.google.protobuf:protobuf-kotlin-lite>=3.21.0-rc-1<3.21.7
3.21.7
maven/com.google.protobuf:protobuf-javalite>=3.21.0-rc-1<3.21.7
3.21.7
rubygems/google-protobuf>=3.21.0.rc.1<3.21.7
3.21.7
maven/com.google.protobuf:protobuf-kotlin>=3.21.0-rc-1<3.21.7
3.21.7
maven/com.google.protobuf:protobuf-java>=3.21.0-rc-1<3.21.7
3.21.7
debian/protobuf<3.21.9-3
3.21.9-3
debian/protobuf<3.21.9-3
3.21.9-3
debian/protobuf<3.21.9-3
3.21.9-3
debian/protobuf
3.21.7-13.21.9-3

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade redhat/protobuf-java to a version that resolves this vulnerability.

    Fixed in 3.21.7
  2. Upgrade

    Upgrade redhat/protobuf-java to a version that resolves this vulnerability.

    Fixed in 3.20.3
  3. Upgrade

    Upgrade redhat/protobuf-java to a version that resolves this vulnerability.

    Fixed in 3.19.6
  4. Upgrade

    Upgrade redhat/protobuf-java to a version that resolves this vulnerability.

    Fixed in 3.16.3
  5. Upgrade

    Upgrade maven/com.google.protobuf:protobuf-kotlin-lite to a version that resolves this vulnerability.

    Fixed in 3.16.3
  6. Upgrade

    Upgrade maven/com.google.protobuf:protobuf-kotlin-lite to a version that resolves this vulnerability.

    Fixed in 3.19.6
  7. Upgrade

    Upgrade maven/com.google.protobuf:protobuf-kotlin-lite to a version that resolves this vulnerability.

    Fixed in 3.20.3
  8. Upgrade

    Upgrade maven/com.google.protobuf:protobuf-javalite to a version that resolves this vulnerability.

    Fixed in 3.16.3
  9. Upgrade

    Upgrade maven/com.google.protobuf:protobuf-javalite to a version that resolves this vulnerability.

    Fixed in 3.19.6
  10. Upgrade

    Upgrade maven/com.google.protobuf:protobuf-javalite to a version that resolves this vulnerability.

    Fixed in 3.20.3
  11. Upgrade

    Upgrade rubygems/google-protobuf to a version that resolves this vulnerability.

    Fixed in 3.16.3
  12. Upgrade

    Upgrade rubygems/google-protobuf to a version that resolves this vulnerability.

    Fixed in 3.19.6
  13. Upgrade

    Upgrade rubygems/google-protobuf to a version that resolves this vulnerability.

    Fixed in 3.20.3
  14. Upgrade

    Upgrade maven/com.google.protobuf:protobuf-kotlin to a version that resolves this vulnerability.

    Fixed in 3.16.3
  15. Upgrade

    Upgrade maven/com.google.protobuf:protobuf-kotlin to a version that resolves this vulnerability.

    Fixed in 3.19.6
  16. Upgrade

    Upgrade maven/com.google.protobuf:protobuf-kotlin to a version that resolves this vulnerability.

    Fixed in 3.20.3
  17. Upgrade

    Upgrade maven/com.google.protobuf:protobuf-java to a version that resolves this vulnerability.

    Fixed in 3.16.3
  18. Upgrade

    Upgrade maven/com.google.protobuf:protobuf-java to a version that resolves this vulnerability.

    Fixed in 3.19.6
  19. Upgrade

    Upgrade maven/com.google.protobuf:protobuf-java to a version that resolves this vulnerability.

    Fixed in 3.20.3
  20. Upgrade

    Upgrade maven/com.google.protobuf:protobuf-kotlin-lite to a version that resolves this vulnerability.

    Fixed in 3.21.7
  21. Upgrade

    Upgrade maven/com.google.protobuf:protobuf-javalite to a version that resolves this vulnerability.

    Fixed in 3.21.7
  22. Upgrade

    Upgrade rubygems/google-protobuf to a version that resolves this vulnerability.

    Fixed in 3.21.7
  23. Upgrade

    Upgrade maven/com.google.protobuf:protobuf-kotlin to a version that resolves this vulnerability.

    Fixed in 3.21.7
  24. Upgrade

    Upgrade maven/com.google.protobuf:protobuf-java to a version that resolves this vulnerability.

    Fixed in 3.21.7
  25. Upgrade

    Upgrade debian/protobuf to a version that resolves this vulnerability.

    Fixed in 3.21.9-3
  26. Upgrade

    Upgrade debian/protobuf to a version that resolves this vulnerability.

    Fixed in 3.21.7-1Fixed in 3.21.9-3
  27. Upgrade

    Upgrade google-protobuf (JRuby gem) to a version that resolves this vulnerability.

    Fixed in 3.21.7
  28. Upgrade

    Upgrade google-protobuf (JRuby gem) to a version that resolves this vulnerability.

    Fixed in 3.20.3
  29. Upgrade

    Upgrade google-protobuf (JRuby gem) to a version that resolves this vulnerability.

    Fixed in 3.19.6
  30. Upgrade

    Upgrade protobuf-java to a version that resolves this vulnerability.

    Fixed in 3.21.7
  31. Upgrade

    Upgrade protobuf-java to a version that resolves this vulnerability.

    Fixed in 3.20.3
  32. Upgrade

    Upgrade protobuf-java to a version that resolves this vulnerability.

    Fixed in 3.19.6
  33. Upgrade

    Upgrade protobuf-java to a version that resolves this vulnerability.

    Fixed in 3.16.3
  34. Upgrade

    Upgrade protobuf-javalite to a version that resolves this vulnerability.

    Fixed in 3.21.7
  35. Upgrade

    Upgrade protobuf-javalite to a version that resolves this vulnerability.

    Fixed in 3.20.3
  36. Upgrade

    Upgrade protobuf-javalite to a version that resolves this vulnerability.

    Fixed in 3.19.6
  37. Upgrade

    Upgrade protobuf-javalite to a version that resolves this vulnerability.

    Fixed in 3.16.3
  38. Upgrade

    Upgrade protobuf-kotlin to a version that resolves this vulnerability.

    Fixed in 3.21.7
  39. Upgrade

    Upgrade protobuf-kotlin to a version that resolves this vulnerability.

    Fixed in 3.20.3
  40. Upgrade

    Upgrade protobuf-kotlin to a version that resolves this vulnerability.

    Fixed in 3.19.6
  41. Upgrade

    Upgrade protobuf-kotlin to a version that resolves this vulnerability.

    Fixed in 3.16.3
  42. Upgrade

    Upgrade protobuf-kotlin-lite to a version that resolves this vulnerability.

    Fixed in 3.21.7
  43. Upgrade

    Upgrade protobuf-kotlin-lite to a version that resolves this vulnerability.

    Fixed in 3.20.3
  44. Upgrade

    Upgrade protobuf-kotlin-lite to a version that resolves this vulnerability.

    Fixed in 3.19.6
  45. Upgrade

    Upgrade protobuf-kotlin-lite to a version that resolves this vulnerability.

    Fixed in 3.16.3

Event History

Oct 4, 2022
Advisory Published
via GitHub·10:17 PM
Data Sourced
via GitHub·10:17 PM
DescriptionSeverityWeaknessAffected Software
Oct 12, 2022
CVE Published
via MITRE·12:00 AM
Data Sourced
12:00 AM
RemedyDescriptionSeverityWeaknessAffected Software
Data Sourced
via MITRE·12:00 AM
DescriptionSeverityWeakness
Data Sourced
via OSV·11:15 PM
DescriptionAffected Software
Data Sourced
via NVD·11:15 PM
DescriptionSeverityWeaknessAffected Software
Sep 5, 2023
Data Sourced
via Red Hat·06:37 PM
DescriptionSeverityAffected Software
Nov 3, 2026
Data Sourced
via OSV·08:04 AM
Severity

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the vulnerability ID for this issue?

The vulnerability ID for this issue is CVE-2022-3171.

2

What is the severity level of CVE-2022-3171?

CVE-2022-3171 has a severity level of high.

3

How can this vulnerability be exploited?

This vulnerability can be exploited through malicious inputs containing multiple instances of non-repeated embedded messages with repeated or unknown fields.

4

What is the affected software and versions?

The affected software is protobuf-java core and lite versions prior to 3.21.7, 3.20.3, 3.19.6, and 3.16.3.

5

What is the recommended remedy for this vulnerability?

To mitigate this vulnerability, update the protobuf-java package to version 3.21.7, 3.20.3, 3.19.6, or 3.16.3.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203