{"id":"CVE-2022-3171","aliases":["CVE-2022-3171","GHSA-h4h5-3hr4-j3g2"],"related":[],"kind":"vulnerability","state":"published","title":"Memory handling vulnerability in ProtocolBuffers Java core and lite","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"## Summary\nA 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](http://developers.google.com/protocol-buffers/docs/encoding#embedded) 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. \n\nReporter: [OSS Fuzz](https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=48771)\n\nAffected 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.\n\n## Severity\n\n[CVE-2022-3171](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-3171) Medium - CVSS Score: 5.7 (NOTE: there may be a delay in publication)\n\n## Remediation and Mitigation\n\nPlease update to the latest available versions of the following packages:\n\nprotobuf-java (3.21.7, 3.20.3, 3.19.6, 3.16.3)\nprotobuf-javalite (3.21.7, 3.20.3, 3.19.6, 3.16.3)\nprotobuf-kotlin (3.21.7, 3.20.3, 3.19.6, 3.16.3)\nprotobuf-kotlin-lite (3.21.7, 3.20.3, 3.19.6, 3.16.3)\ngoogle-protobuf [JRuby gem only] (3.21.7, 3.20.3, 3.19.6)","format":"markdown","source":"ghsa"},{"lang":"es","text":"Un problema de análisis de datos binarios en protobuf-java core y lite versiones anteriores a 3.21.7, 3.20.3, 3.19.6 y 3.16.3, puede conllevar a un ataque de denegación de servicio. Las entradas que contienen múltiples instancias de mensajes insertados no repetidos con campos repetidos o desconocidos causan que los objetos sean convertidos de ida y vuelta entre las formas mutables e inmutables, resultando en pausas de recolección de basura potencialmente largas. Es recomendado actualizar a versiones mencionadas anteriormente","source":"nvd"}],"published":"2022-10-04T22:17:15.000Z","modified":"2026-09-10T03:49:50.454Z","severity":{"scorer":"Google","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":4.3,"rating":"MEDIUM"},"severities":[{"scorer":"Google","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":4.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.7,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"}],"cwes":["CWE-20"],"affected":[{"ranges":[{"type":"custom","introduced":"3.21.7","fixed":"3.21.7","status":"affected"},{"type":"custom","introduced":"3.20.3","fixed":"3.20.3","status":"affected"},{"type":"custom","introduced":"3.19.6","fixed":"3.19.6","status":"affected"},{"type":"custom","introduced":"3.16.3","fixed":"3.16.3","status":"affected"}],"vendor":"Google LLC","product":"Protocolbuffers","platforms":["core and lite"],"source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"3.21.0-rc-1","status":"affected","fixed":"3.21.7"}],"ecosystem":"Maven","package":"com.google.protobuf:protobuf-java","purl":"pkg:maven/com.google.protobuf/protobuf-java","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"3.21.0-rc-1","status":"affected","fixed":"3.21.7"}],"ecosystem":"Maven","package":"com.google.protobuf:protobuf-kotlin","purl":"pkg:maven/com.google.protobuf/protobuf-kotlin","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"3.21.0.rc.1","status":"affected","fixed":"3.21.7"}],"ecosystem":"RubyGems","package":"google-protobuf","purl":"pkg:gem/google-protobuf","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"3.21.0-rc-1","status":"affected","fixed":"3.21.7"}],"ecosystem":"Maven","package":"com.google.protobuf:protobuf-javalite","purl":"pkg:maven/com.google.protobuf/protobuf-javalite","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"3.21.0-rc-1","status":"affected","fixed":"3.21.7"}],"ecosystem":"Maven","package":"com.google.protobuf:protobuf-kotlin-lite","purl":"pkg:maven/com.google.protobuf/protobuf-kotlin-lite","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"3.20.0-rc-1","status":"affected","fixed":"3.20.3"}],"ecosystem":"Maven","package":"com.google.protobuf:protobuf-java","purl":"pkg:maven/com.google.protobuf/protobuf-java","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"3.17.0-rc-1","status":"affected","fixed":"3.19.6"}],"ecosystem":"Maven","package":"com.google.protobuf:protobuf-java","purl":"pkg:maven/com.google.protobuf/protobuf-java","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"3.16.3"}],"ecosystem":"Maven","package":"com.google.protobuf:protobuf-java","purl":"pkg:maven/com.google.protobuf/protobuf-java","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"3.20.0-rc-1","status":"affected","fixed":"3.20.3"}],"ecosystem":"Maven","package":"com.google.protobuf:protobuf-kotlin","purl":"pkg:maven/com.google.protobuf/protobuf-kotlin","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"3.17.0-rc-1","status":"affected","fixed":"3.19.6"}],"ecosystem":"Maven","package":"com.google.protobuf:protobuf-kotlin","purl":"pkg:maven/com.google.protobuf/protobuf-kotlin","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"3.16.3"}],"ecosystem":"Maven","package":"com.google.protobuf:protobuf-kotlin","purl":"pkg:maven/com.google.protobuf/protobuf-kotlin","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"3.20.0.rc.1","status":"affected","fixed":"3.20.3"}],"ecosystem":"RubyGems","package":"google-protobuf","purl":"pkg:gem/google-protobuf","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"3.17.0.rc.1","status":"affected","fixed":"3.19.6"}],"ecosystem":"RubyGems","package":"google-protobuf","purl":"pkg:gem/google-protobuf","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"3.16.3"}],"ecosystem":"RubyGems","package":"google-protobuf","purl":"pkg:gem/google-protobuf","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"3.20.0-rc-1","status":"affected","fixed":"3.20.3"}],"ecosystem":"Maven","package":"com.google.protobuf:protobuf-javalite","purl":"pkg:maven/com.google.protobuf/protobuf-javalite","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"3.17.0-rc-1","status":"affected","fixed":"3.19.6"}],"ecosystem":"Maven","package":"com.google.protobuf:protobuf-javalite","purl":"pkg:maven/com.google.protobuf/protobuf-javalite","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"3.16.3"}],"ecosystem":"Maven","package":"com.google.protobuf:protobuf-javalite","purl":"pkg:maven/com.google.protobuf/protobuf-javalite","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"3.20.0-rc-1","status":"affected","fixed":"3.20.3"}],"ecosystem":"Maven","package":"com.google.protobuf:protobuf-kotlin-lite","purl":"pkg:maven/com.google.protobuf/protobuf-kotlin-lite","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"3.17.0-rc-1","status":"affected","fixed":"3.19.6"}],"ecosystem":"Maven","package":"com.google.protobuf:protobuf-kotlin-lite","purl":"pkg:maven/com.google.protobuf/protobuf-kotlin-lite","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"3.16.3"}],"ecosystem":"Maven","package":"com.google.protobuf:protobuf-kotlin-lite","purl":"pkg:maven/com.google.protobuf/protobuf-kotlin-lite","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"3.16.3"},{"status":"affected","introduced":"3.17.0","fixed":"3.19.6"},{"status":"affected","introduced":"3.20.0","fixed":"3.20.3"},{"status":"affected","introduced":"3.21.0","fixed":"3.21.7"}],"vendor":"google","product":"google-protobuf","cpe":"cpe:2.3:a:google:google-protobuf:*:*:*:*:*:ruby:*:*","source":"nvd"},{"ranges":[{"status":"affected","fixed":"3.16.3"},{"status":"affected","introduced":"3.17.0","fixed":"3.19.6"},{"status":"affected","introduced":"3.20.0","fixed":"3.20.3"},{"status":"affected","introduced":"3.21.0","fixed":"3.21.7"}],"vendor":"google","product":"protobuf-java","cpe":"cpe:2.3:a:google:protobuf-java:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","fixed":"3.16.3"},{"status":"affected","introduced":"3.17.0","fixed":"3.19.6"},{"status":"affected","introduced":"3.20.0","fixed":"3.20.3"},{"status":"affected","introduced":"3.21.0","fixed":"3.21.7"}],"vendor":"google","product":"protobuf-javalite","cpe":"cpe:2.3:a:google:protobuf-javalite:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","fixed":"3.16.3"},{"status":"affected","introduced":"3.17.0","fixed":"3.19.6"},{"status":"affected","introduced":"3.20.0","fixed":"3.20.3"},{"status":"affected","introduced":"3.21.0","fixed":"3.21.7"}],"vendor":"google","product":"protobuf-kotlin","cpe":"cpe:2.3:a:google:protobuf-kotlin:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","fixed":"3.16.3"},{"status":"affected","introduced":"3.17.0","fixed":"3.19.6"},{"status":"affected","introduced":"3.20.0","fixed":"3.20.3"},{"status":"affected","introduced":"3.21.0","fixed":"3.21.7"}],"vendor":"google","product":"protobuf-kotlin-lite","cpe":"cpe:2.3:a:google:protobuf-kotlin-lite:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"37"}],"vendor":"fedoraproject","product":"fedora","cpe":"cpe:2.3:o:fedoraproject:fedora:37:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/protocolbuffers/protobuf/security/advisories/GHSA-h4h5-3hr4-j3g2","tags":["third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/CBAUKJQL6O4TIWYBENORSY5P43TVB4M3/","tags":["vendor-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://security.gentoo.org/glsa/202301-09","tags":["third-party-advisory","vendor-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MPCGUT3T5L6C3IDWUPSUO22QDCGQKTOP/","tags":["vendor-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-3171","tags":["advisory"],"sources":["ghsa"]},{"url":"https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=48771","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/protocolbuffers/protobuf","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/protocolbuffers/protobuf/releases/tag/v21.7","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/protocolbuffers/protobuf/releases/tag/v3.16.3","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/protocolbuffers/protobuf/releases/tag/v3.19.6","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/protocolbuffers/protobuf/releases/tag/v3.20.3","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/google-protobuf/CVE-2022-3171.yml","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/CBAUKJQL6O4TIWYBENORSY5P43TVB4M3","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/MPCGUT3T5L6C3IDWUPSUO22QDCGQKTOP","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"Google","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-04-21T13:36:41.564Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-3171","url":"https://www.cve.org/CVERecord?id=CVE-2022-3171","licence":"CVE Terms of Use","modified":"2025-04-21T13:47:57.569Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-h4h5-3hr4-j3g2","url":"https://github.com/advisories/GHSA-h4h5-3hr4-j3g2","licence":"CC-BY-4.0","modified":"2026-09-10T03:49:50.454Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-3171","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-3171","licence":"Public domain","modified":"2026-06-17T04:58:59.997Z"}],"updatedAt":"2026-11-25T22:58:15.659Z","epss":{"score":0.01278,"percentile":0.70819,"date":"2026-12-01T12:00:22.000Z"}}