cve.bz

CVE-2022-3171 Improper Input Validation

7.5 highEPSS 1.3%Fix available

High (7.5). EPSS 1.3% estimated probability of exploitation activity in the next 30 days. Fixed in com.google.protobuf:protobuf-java 3.16.3, 3.19.6, 3.20.3.

On this page
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.

Severity

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
EPSS
1.3% (unchanged from 1.3% a week ago; 1.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 71st percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2025-04-21. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-20 Improper Input Validation
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

  • com.google.protobuf:protobuf-java (Maven): fixed in 3.21.7, 3.20.3, 3.19.6, 3.16.3
  • com.google.protobuf:protobuf-kotlin (Maven): fixed in 3.21.7, 3.20.3, 3.19.6, 3.16.3
  • google-protobuf (RubyGems): fixed in 3.21.7, 3.20.3, 3.19.6, 3.16.3
  • com.google.protobuf:protobuf-javalite (Maven): fixed in 3.21.7, 3.20.3, 3.19.6, 3.16.3
  • com.google.protobuf:protobuf-kotlin-lite (Maven): fixed in 3.21.7, 3.20.3, 3.19.6, 3.16.3
  • Debian, SUSE, openSUSE: fixed package versions per release

Ask an AI about this CVE

Show the promptExplain CVE-2022-3171 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-3171?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-3171?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2022-3171 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Google LLC Protocolbuffersfrom 3.21.7 before 3.21.7
Google LLC Protocolbuffersfrom 3.20.3 before 3.20.3
Google LLC Protocolbuffersfrom 3.19.6 before 3.19.6
Google LLC Protocolbuffersfrom 3.16.3 before 3.16.3

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-h4h5-3hr4-j3g2Mavencom.google.protobuf:protobuf-java>=3.21.0-rc-1 <3.21.73.21.7
GHSA-h4h5-3hr4-j3g2Mavencom.google.protobuf:protobuf-kotlin>=3.21.0-rc-1 <3.21.73.21.7
GHSA-h4h5-3hr4-j3g2RubyGemsgoogle-protobuf>=3.21.0.rc.1 <3.21.73.21.7
GHSA-h4h5-3hr4-j3g2Mavencom.google.protobuf:protobuf-javalite>=3.21.0-rc-1 <3.21.73.21.7
GHSA-h4h5-3hr4-j3g2Mavencom.google.protobuf:protobuf-kotlin-lite>=3.21.0-rc-1 <3.21.73.21.7
GHSA-h4h5-3hr4-j3g2Mavencom.google.protobuf:protobuf-java>=3.20.0-rc-1 <3.20.33.20.3
GHSA-h4h5-3hr4-j3g2Mavencom.google.protobuf:protobuf-java>=3.17.0-rc-1 <3.19.63.19.6
GHSA-h4h5-3hr4-j3g2Mavencom.google.protobuf:protobuf-java<3.16.33.16.3
GHSA-h4h5-3hr4-j3g2Mavencom.google.protobuf:protobuf-kotlin>=3.20.0-rc-1 <3.20.33.20.3
GHSA-h4h5-3hr4-j3g2Mavencom.google.protobuf:protobuf-kotlin>=3.17.0-rc-1 <3.19.63.19.6
GHSA-h4h5-3hr4-j3g2Mavencom.google.protobuf:protobuf-kotlin<3.16.33.16.3
GHSA-h4h5-3hr4-j3g2RubyGemsgoogle-protobuf>=3.20.0.rc.1 <3.20.33.20.3
GHSA-h4h5-3hr4-j3g2RubyGemsgoogle-protobuf>=3.17.0.rc.1 <3.19.63.19.6
GHSA-h4h5-3hr4-j3g2RubyGemsgoogle-protobuf<3.16.33.16.3
GHSA-h4h5-3hr4-j3g2Mavencom.google.protobuf:protobuf-javalite>=3.20.0-rc-1 <3.20.33.20.3
GHSA-h4h5-3hr4-j3g2Mavencom.google.protobuf:protobuf-javalite>=3.17.0-rc-1 <3.19.63.19.6
GHSA-h4h5-3hr4-j3g2Mavencom.google.protobuf:protobuf-javalite<3.16.33.16.3
GHSA-h4h5-3hr4-j3g2Mavencom.google.protobuf:protobuf-kotlin-lite>=3.20.0-rc-1 <3.20.33.20.3
GHSA-h4h5-3hr4-j3g2Mavencom.google.protobuf:protobuf-kotlin-lite>=3.17.0-rc-1 <3.19.63.19.6
GHSA-h4h5-3hr4-j3g2Mavencom.google.protobuf:protobuf-kotlin-lite<3.16.33.16.3

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14protobuf3.21.9-3DEBIAN-CVE-2022-3171
Ubuntu22.04:LTS, Pro:14.04:LTS, Pro:16.04:LTS and 2 moreprotobufno fix listedUBUNTU-CVE-2022-3171
SUSEEnterprise Storage 7, Enterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP1-LTSS and 15 morepython-websocket-client1.3.2-150100.6.7.3SUSE-SU-2023:2783-1
SUSEEnterprise Storage 7, Enterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP2-LTSS and 14 morepython-zope.interface4.4.2-150000.3.4.1SUSE-SU-2023:2783-1
SUSEEnterprise Storage 7, Enterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP2-LTSS and 13 morepython-constantly15.1.0-150000.3.4.1SUSE-SU-2023:2783-1
SUSEEnterprise Storage 7, Enterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP2-LTSS and 13 morepython-hyperlink17.2.1-150000.3.4.1SUSE-SU-2023:2783-1
SUSEEnterprise Storage 7, Enterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP2-LTSS and 11 morepython-Automat0.6.0-150000.3.4.1SUSE-SU-2023:2783-1
SUSEEnterprise Storage 7, Enterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP2-LTSS and 11 morepython-incremental17.5.0-150000.3.4.1SUSE-SU-2023:2783-1
SUSEEnterprise Storage 7, Linux Enterprise High Performance Computing 15 SP1-LTSS, Linux Enterprise High Performance Computing 15 SP2-LTSS and 5 morepython-psutil5.9.1-150100.6.6.3SUSE-SU-2023:2783-1
SUSEEnterprise Storage 7, Linux Enterprise High Performance Computing 15 SP1-LTSS, Linux Enterprise High Performance Computing 15 SP2-LTSS and 5 morepython-requests2.25.1-150100.6.13.3SUSE-SU-2023:2783-1
SUSEEnterprise Storage 7, Linux Enterprise High Performance Computing 15 SP2-ESPOS, Linux Enterprise High Performance Computing 15 SP2-LTSS and 22 moreprotobuf3.9.2-150200.4.19.2SUSE-SU-2022:3922-1
SUSELinux Enterprise High Performance Computing 15 SP1-LTSSprotobuf3.9.2-150100.8.3.3SUSE-SU-2023:2783-2
SUSELinux Enterprise High Performance Computing 15 SP1-LTSSpython-cryptography3.3.2-150100.7.15.3SUSE-SU-2023:2783-2
SUSELinux Enterprise High Performance Computing 15 SP1-LTSSpython-psutil5.9.1-150100.6.6.3SUSE-SU-2023:2783-2
24 more for SUSE in the JSON and on SUSE's page.
openSUSELeap 15.3, Leap 15.4, Leap Micro 5.2protobuf3.9.2-150200.4.19.2SUSE-SU-2022:3922-1
openSUSELeap 15.4azure-cli-core2.17.1-150100.6.18.1SUSE-SU-2023:2783-1
openSUSELeap 15.4python-constantly15.1.0-150000.3.4.1SUSE-SU-2023:2783-1
openSUSELeap 15.4python-humanfriendly10.0-150100.6.3.3SUSE-SU-2023:2783-1
openSUSELeap 15.4python-hyperlink17.2.1-150000.3.4.1SUSE-SU-2023:2783-1
openSUSELeap 15.4python-jsondiff1.3.0-150100.3.6.3SUSE-SU-2023:2783-1
openSUSELeap 15.4python-knack0.9.0-150100.3.7.3SUSE-SU-2023:2783-1
openSUSELeap 15.4python-websocket-client1.3.2-150100.6.7.3SUSE-SU-2023:2783-1
openSUSELeap 15.4python-zope.interface4.4.2-150000.3.4.1SUSE-SU-2023:2783-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

ProductPackageStateAdvisory
Red Hat AMQ Streams 2.7.0Fixed 2024-05-30RHSA-2024:3527
Red Hat build of Quarkus 2.13.5Fixed 2022-12-14RHSA-2022:9023
Red Hat build of Quarkus 2.7.7protobuf-javaFixed 2023-03-08RHSA-2023:1006
RHINT Debezium 1.9.7protobuf-javaFixed 2022-11-09RHSA-2022:7896
RHPAM 7.13.4 asyncprotobuf-javaFixed 2023-09-05RHSA-2023:4983

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2022-3171.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-20 (51).

References

Check your stackJSON