Ecosyste.ms: Advisories
An open API service providing security vulnerability metadata for many open source software ecosystems.
Security Advisories: GSA_kwCzR0hTQS1oNGg1LTNocjQtajNnMs4AAvKm
protobuf-java has a potential Denial of Service issue
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)
JSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS1oNGg1LTNocjQtajNnMs4AAvKm
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Moderate
Classification: General
Published: over 1 year ago
Updated: 11 months ago
CVSS Score: 5.7
CVSS vector: CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Identifiers: GHSA-h4h5-3hr4-j3g2, CVE-2022-3171
References:
- https://github.com/protocolbuffers/protobuf/security/advisories/GHSA-h4h5-3hr4-j3g2
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=48771
- https://github.com/protocolbuffers/protobuf/releases/tag/v21.7
- https://github.com/protocolbuffers/protobuf/releases/tag/v3.16.3
- https://github.com/protocolbuffers/protobuf/releases/tag/v3.19.6
- https://github.com/protocolbuffers/protobuf/releases/tag/v3.20.3
- https://nvd.nist.gov/vuln/detail/CVE-2022-3171
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/google-protobuf/CVE-2022-3171.yml
- https://lists.fedoraproject.org/archives/list/[email protected]/message/CBAUKJQL6O4TIWYBENORSY5P43TVB4M3/
- https://security.gentoo.org/glsa/202301-09
- https://lists.fedoraproject.org/archives/list/[email protected]/message/MPCGUT3T5L6C3IDWUPSUO22QDCGQKTOP/
- https://github.com/advisories/GHSA-h4h5-3hr4-j3g2
Affected Packages
maven:com.google.protobuf:protobuf-kotlin-lite
Dependent packages: 12Dependent repositories: 43
Downloads:
Affected Version Ranges: < 3.16.3, >= 3.17.0-rc-1, < 3.19.6, >= 3.20.0-rc-1, < 3.20.3, >= 3.21.0-rc-1, < 3.21.7
Fixed in: 3.16.3, 3.19.6, 3.20.3, 3.21.7
All affected versions: 3.17.0, 3.17.0-rc-2, 3.17.1, 3.17.2, 3.17.3, 3.18.0, 3.18.1, 3.18.2, 3.18.3, 3.19.0, 3.19.1, 3.19.2, 3.19.3, 3.19.4, 3.19.5, 3.20.0, 3.20.0-rc-1, 3.20.1, 3.20.2, 3.21.0, 3.21.0-rc-1, 3.21.0-rc-2, 3.21.1, 3.21.2, 3.21.3, 3.21.4, 3.21.5, 3.21.6
All unaffected versions: 3.19.6, 3.20.3, 3.21.7, 3.21.8, 3.21.9, 3.21.10, 3.21.11, 3.21.12, 3.22.0, 3.22.1, 3.22.2, 3.22.3, 3.22.4, 3.22.5, 3.23.0, 3.23.1, 3.23.2, 3.23.3, 3.23.4, 3.24.0, 3.24.1, 3.24.2, 3.24.3, 3.24.4, 3.25.0, 3.25.1, 3.25.2, 3.25.3, 4.26.0
maven:com.google.protobuf:protobuf-javalite
Dependent packages: 75Dependent repositories: 765
Downloads:
Affected Version Ranges: < 3.16.3, >= 3.17.0-rc-1, < 3.19.6, >= 3.20.0-rc-1, < 3.20.3, >= 3.21.0-rc-1, < 3.21.7
Fixed in: 3.16.3, 3.19.6, 3.20.3, 3.21.7
All affected versions: 3.8.0, 3.9.0, 3.9.1, 3.9.2, 3.10.0, 3.11.0, 3.11.1, 3.11.3, 3.11.4, 3.12.0, 3.12.1, 3.12.2, 3.12.4, 3.13.0, 3.14.0, 3.15.0, 3.15.1, 3.15.2, 3.15.3, 3.15.4, 3.15.5, 3.15.6, 3.15.7, 3.15.8, 3.16.0, 3.16.1, 3.17.0, 3.17.0-rc-1, 3.17.0-rc-2, 3.17.1, 3.17.2, 3.17.3, 3.18.0, 3.18.1, 3.18.2, 3.18.3, 3.19.0, 3.19.1, 3.19.2, 3.19.3, 3.19.4, 3.19.5, 3.20.0, 3.20.0-rc-1, 3.20.1, 3.20.2, 3.21.0, 3.21.0-rc-1, 3.21.0-rc-2, 3.21.1, 3.21.2, 3.21.3, 3.21.4, 3.21.5, 3.21.6
All unaffected versions: 3.16.3, 3.19.6, 3.20.3, 3.21.7, 3.21.8, 3.21.9, 3.21.10, 3.21.11, 3.21.12, 3.22.0, 3.22.1, 3.22.2, 3.22.3, 3.22.4, 3.22.5, 3.23.0, 3.23.1, 3.23.2, 3.23.3, 3.23.4, 3.24.0, 3.24.1, 3.24.2, 3.24.3, 3.24.4, 3.25.0, 3.25.1, 3.25.2, 3.25.3, 4.26.0
rubygems:google-protobuf
Dependent packages: 164Dependent repositories: 4,547
Downloads: 248,282,446 total
Affected Version Ranges: < 3.16.3, >= 3.17.0.rc.1, < 3.19.6, >= 3.20.0.rc.1, < 3.20.3, >= 3.21.0.rc.1, < 3.21.7
Fixed in: 3.16.3, 3.19.6, 3.20.3, 3.21.7
All affected versions: 3.0.0, 3.0.2, 3.1.0, 3.2.0, 3.3.0, 3.5.0, 3.5.1, 3.6.0, 3.6.1, 3.7.0, 3.7.1, 3.8.0, 3.9.0, 3.9.1, 3.9.2, 3.10.1, 3.11.0, 3.11.1, 3.11.2, 3.11.3, 3.11.4, 3.12.0, 3.12.1, 3.12.2, 3.12.4, 3.13.0, 3.14.0, 3.15.0, 3.15.1, 3.15.2, 3.15.3, 3.15.4, 3.15.5, 3.15.6, 3.15.7, 3.15.8, 3.16.0, 3.17.0, 3.17.1, 3.17.2, 3.17.3, 3.18.0, 3.18.1, 3.18.2, 3.18.3, 3.19.0, 3.19.1, 3.19.2, 3.19.3, 3.19.4, 3.19.5, 3.19.6, 3.20.0, 3.20.1, 3.20.2, 3.20.3, 3.21.0, 3.21.1, 3.21.2, 3.21.3, 3.21.4, 3.21.5, 3.21.6
All unaffected versions: 3.21.7, 3.21.8, 3.21.9, 3.21.10, 3.21.11, 3.21.12, 3.22.0, 3.22.1, 3.22.2, 3.22.3, 3.22.5, 3.23.0, 3.23.1, 3.23.2, 3.23.3, 3.23.4, 3.24.0, 3.24.1, 3.24.2, 3.24.3, 3.24.4, 3.25.0, 3.25.1, 3.25.2, 3.25.3, 4.26.0
maven:com.google.protobuf:protobuf-kotlin
Dependent packages: 56Dependent repositories: 169
Downloads:
Affected Version Ranges: < 3.16.3, >= 3.17.0-rc-1, < 3.19.6, >= 3.20.0-rc-1, < 3.20.3, >= 3.21.0-rc-1, < 3.21.7
Fixed in: 3.16.3, 3.19.6, 3.20.3, 3.21.7
All affected versions: 3.17.0, 3.17.0-rc-2, 3.17.1, 3.17.2, 3.17.3, 3.18.0, 3.18.1, 3.18.2, 3.18.3, 3.19.0, 3.19.1, 3.19.2, 3.19.3, 3.19.4, 3.19.5, 3.20.0, 3.20.0-rc-1, 3.20.1, 3.20.2, 3.21.0, 3.21.0-rc-1, 3.21.0-rc-2, 3.21.1, 3.21.2, 3.21.3, 3.21.4, 3.21.5, 3.21.6
All unaffected versions: 3.19.6, 3.20.3, 3.21.7, 3.21.8, 3.21.9, 3.21.10, 3.21.11, 3.21.12, 3.22.0, 3.22.1, 3.22.2, 3.22.3, 3.22.4, 3.22.5, 3.23.0, 3.23.1, 3.23.2, 3.23.3, 3.23.4, 3.24.0, 3.24.1, 3.24.2, 3.24.3, 3.24.4, 3.25.0, 3.25.1, 3.25.2, 3.25.3, 4.26.0
maven:com.google.protobuf:protobuf-java
Dependent packages: 4,892Dependent repositories: 38,630
Downloads:
Affected Version Ranges: < 3.16.3, >= 3.17.0-rc-1, < 3.19.6, >= 3.20.0-rc-1, < 3.20.3, >= 3.21.0-rc-1, < 3.21.7
Fixed in: 3.16.3, 3.19.6, 3.20.3, 3.21.7
All affected versions: 2.0.1, 2.0.3, 2.1.0, 2.2.0, 2.3.0, 2.4.1, 2.5.0, 2.6.0, 2.6.1, 3.0.0, 3.0.2, 3.1.0, 3.2.0, 3.3.0, 3.3.1, 3.4.0, 3.5.0, 3.5.1, 3.6.0, 3.6.1, 3.7.0, 3.7.1, 3.8.0, 3.9.0, 3.9.1, 3.9.2, 3.10.0, 3.11.0, 3.11.1, 3.11.3, 3.11.4, 3.12.0, 3.12.1, 3.12.2, 3.12.4, 3.13.0, 3.14.0, 3.15.0, 3.15.1, 3.15.2, 3.15.3, 3.15.4, 3.15.5, 3.15.6, 3.15.7, 3.15.8, 3.16.0, 3.16.1, 3.17.0, 3.17.0-rc-1, 3.17.0-rc-2, 3.17.1, 3.17.2, 3.17.3, 3.18.0, 3.18.1, 3.18.2, 3.18.3, 3.19.0, 3.19.1, 3.19.2, 3.19.3, 3.19.4, 3.19.5, 3.20.0, 3.20.0-rc-1, 3.20.1, 3.20.2, 3.21.0, 3.21.0-rc-1, 3.21.0-rc-2, 3.21.1, 3.21.2, 3.21.3, 3.21.4, 3.21.5, 3.21.6
All unaffected versions: 3.16.3, 3.19.6, 3.20.3, 3.21.7, 3.21.8, 3.21.9, 3.21.10, 3.21.11, 3.21.12, 3.22.0, 3.22.1, 3.22.2, 3.22.3, 3.22.4, 3.22.5, 3.23.0, 3.23.1, 3.23.2, 3.23.3, 3.23.4, 3.24.0, 3.24.1, 3.24.2, 3.24.3, 3.24.4, 3.25.0, 3.25.1, 3.25.2, 3.25.3, 4.26.0