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

- Severity: Medium 4.3 (CVSS:3.1, scored by Google) `CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.28%, higher than 70% of CVEs (2026-12-01)
- Published: 2022-10-04T22:17:15.000Z
- Modified: 2026-09-10T03:49:50.454Z
- Also known as: GHSA-h4h5-3hr4-j3g2
- Weaknesses: CWE-20
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Google

## Description

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.

(As written by CVE List.)

## Affected

- Google LLC Protocolbuffers: from 3.21.7 before 3.21.7; from 3.20.3 before 3.20.3; from 3.19.6 before 3.19.6; from 3.16.3 before 3.16.3
- com.google.protobuf:protobuf-java (Maven): from 3.21.0-rc-1 before 3.21.7; from 3.20.0-rc-1 before 3.20.3; from 3.17.0-rc-1 before 3.19.6; before 3.16.3
- com.google.protobuf:protobuf-kotlin (Maven): from 3.21.0-rc-1 before 3.21.7; from 3.20.0-rc-1 before 3.20.3; from 3.17.0-rc-1 before 3.19.6; before 3.16.3
- google-protobuf (RubyGems): from 3.21.0.rc.1 before 3.21.7; from 3.20.0.rc.1 before 3.20.3; from 3.17.0.rc.1 before 3.19.6; before 3.16.3
- com.google.protobuf:protobuf-javalite (Maven): from 3.21.0-rc-1 before 3.21.7; from 3.20.0-rc-1 before 3.20.3; from 3.17.0-rc-1 before 3.19.6; before 3.16.3
- com.google.protobuf:protobuf-kotlin-lite (Maven): from 3.21.0-rc-1 before 3.21.7; from 3.20.0-rc-1 before 3.20.3; from 3.17.0-rc-1 before 3.19.6; before 3.16.3
- google google-protobuf: before 3.16.3; from 3.17.0 before 3.19.6; from 3.20.0 before 3.20.3; from 3.21.0 before 3.21.7
- google protobuf-java: before 3.16.3; from 3.17.0 before 3.19.6; from 3.20.0 before 3.20.3; from 3.21.0 before 3.21.7
- google protobuf-javalite: before 3.16.3; from 3.17.0 before 3.19.6; from 3.20.0 before 3.20.3; from 3.21.0 before 3.21.7
- google protobuf-kotlin: before 3.16.3; from 3.17.0 before 3.19.6; from 3.20.0 before 3.20.3; from 3.21.0 before 3.21.7
- google protobuf-kotlin-lite: before 3.16.3; from 3.17.0 before 3.19.6; from 3.20.0 before 3.20.3; from 3.21.0 before 3.21.7
- fedoraproject fedora: 37

## Every score

- Google: CVSS:3.1 4.3 Medium `CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- GitHub: CVSS:3.1 5.7 Medium `CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## 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/> (vendor-advisory)
- <https://security.gentoo.org/glsa/202301-09> (third-party-advisory, vendor-advisory, web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MPCGUT3T5L6C3IDWUPSUO22QDCGQKTOP/> (vendor-advisory)
- <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)

## Sources

- CVE List: [CVE-2022-3171](https://www.cve.org/CVERecord?id=CVE-2022-3171), CVE Terms of Use, modified 2025-04-21
- GitHub Advisory Database: [GHSA-h4h5-3hr4-j3g2](https://github.com/advisories/GHSA-h4h5-3hr4-j3g2), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2022-3171](https://nvd.nist.gov/vuln/detail/CVE-2022-3171), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-3171 · Whole record: https://cve.day/CVE-2022-3171.json · Rebuilt by cve.day 2026-11-25T22:58:15.659Z
