Home / Google LLC / protobuf-cpp / CVE-2022-1941
CVE-2022-1941: is it exploited, and which versions of Google LLC protobuf-cpp are affected and fixed?
CVE-2022-1941 is an improper Validation of Syntactic Correctness of Input vulnerability in Google LLC protobuf-cpp. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 10:38 UTC). Affected: protobuf before 3.18.3, protobuf from 3.19.0 before 3.19.5, protobuf from 3.20.0 before 3.20.2 and 1 more (GitHub advisory GHSA-8gq9-2x98-w8hf). Fixed in 3.18.3, 3.19.5, 3.20.2 and 4.21.6 (GitHub advisory GHSA-8gq9-2x98-w8hf). Severity: High (7.5, CVSS 3.1, from CISA-ADP).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 10:38 UTC, CVE record November 28, 2026, 19:54 UTC and NVD November 19, 2026, 07:45 UTC.
What is CVE-2022-1941?
Out of Memory issue in ProtocolBuffers for cpp and python
A parsing vulnerability for the MessageSet type in the ProtocolBuffers versions prior to and including 3.16.1, 3.17.3, 3.18.2, 3.19.4, 3.20.1 and 3.21.5 for protobuf-cpp, and versions prior to and including 3.16.1, 3.17.3, 3.18.2, 3.19.4, 3.20.1 and 4.21.5 for protobuf-python can lead to out of memory failures. A specially crafted message with multiple key-value per elements creates parsing issues, and can lead to a Denial of Service against services receiving unsanitized input. We recommend upgrading to versions 3.18.3, 3.19.5, 3.20.2, 3.21.6 for protobuf-cpp and 3.18.3, 3.19.5, 3.20.2, 4.21.6 for protobuf-python. Versions for 3.16 and 3.17 are no longer updated.
From the CVE record by Google, last updated August 3, 2024, 00:24 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| Google LLC | protobuf-cpp | through 3.16.1 through 3.17.3 through 3.18.2 through 3.19.4 through 3.20.1 through 3.21.5 | |
| Google LLC | protobuf-python | through 3.16.1 through 3.17.3 through 3.18.2 through 3.19.4 through 3.20.1 through 4.21.5 |
As the CVE record by Google states it, last updated August 3, 2024. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| PyPI | protobuf | < 3.18.3 | 3.18.3 | GHSA-8gq9-2x98-w8hf |
| PyPI | protobuf | >= 3.19.0, < 3.19.5 | 3.19.5 | GHSA-8gq9-2x98-w8hf |
| PyPI | protobuf | >= 3.20.0, < 3.20.2 | 3.20.2 | GHSA-8gq9-2x98-w8hf |
| PyPI | protobuf | >= 4.0.0, < 4.21.6 | 4.21.6 | GHSA-8gq9-2x98-w8hf |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated July 5, 2024. Summary: protobuf-cpp and protobuf-python have potential Denial of Service issue.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| protobuf-cpp | before 3.18.3 | application | |
| protobuf-cpp | from 3.19.0 before 3.19.5 | application | |
| protobuf-cpp | from 3.20.0 before 3.20.2 | application | |
| protobuf-cpp | from 3.21.0 before 3.21.6 | application | |
| protobuf-python | before 3.18.3 | application | |
| protobuf-python | from 3.19.0 before 3.19.5 | application | |
| protobuf-python | from 3.20.0 before 3.20.2 | application | |
| protobuf-python | from 4.0.0 before 4.21.6 | application | |
| fedoraproject | fedora | 36 | operating system |
| fedoraproject | fedora | 37 | operating system |
| debian | debian linux | 10.0 | operating system |
NVD analysis (status Modified), last modified June 17, 2026, 04:23 UTC.
How severe is CVE-2022-1941?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 7.5 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H | CISA-ADP |
| High 7.5 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2022-1941 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: yes; technical impact: partial (CISA ADP, July 16, 2024)
- EPSS
- 1.61% probability of exploitation activity in the next 30 days, percentile 76.7 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-1286 Improper Validation of Syntactic Correctness of Input
- CWE-119 Improper Restriction of Operations within the Bounds of a Memory Buffer
Where are the vendor advisories and references?
- https://cloud.google.com/support/bulletins#GCP-2022-019
- https://github.com/protocolbuffers/protobuf/security/advisories/GHSA-8gq9-2x98-w8hf
- [oss-security] 20220927 CVE-2022-1941: Protobuf C++, Python DoS mailing-list
- FEDORA-2022-25f35ed634 vendor-advisory
- [debian-lts-announce] 20230418 [SECURITY] [DLA 3393-1] protobuf security update mailing-list
- FEDORA-2022-15729fa33d vendor-advisory
- https://security.netapp.com/advisory/ntap-20240705-0001/
Who found and reported it?
- CluterFuzz - https://google.github.io/clusterfuzz/ (finder)
As published in the CVE record; contact details are removed.
When was it published, and where is the official record?
- Reserved
- May 30, 2022
- Published
- September 22, 2022, 00:00 UTC
- CVE record updated
- August 3, 2024, 00:24 UTC by Google
- NVD
- Modified, last modified June 17, 2026, 04:23 UTC
- Last checked
- CVE list November 28, 2026, 19:54 UTC; NVD November 19, 2026, 07:45 UTC; KEV December 3, 2026, 10:38 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
Questions about CVE-2022-1941
Is CVE-2022-1941 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 10:38 UTC. FIRST's EPSS gives it a 1.61% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of Google LLC protobuf-cpp are affected by CVE-2022-1941?
protobuf before 3.18.3, protobuf from 3.19.0 before 3.19.5, protobuf from 3.20.0 before 3.20.2 and protobuf from 4.0.0 before 4.21.6, per the GitHub advisory GHSA-8gq9-2x98-w8hf. The tables above give every range the sources list.
Which version fixes CVE-2022-1941?
3.18.3, 3.19.5, 3.20.2 and 4.21.6, per the GitHub advisory GHSA-8gq9-2x98-w8hf. Check the vendor's advisory before you rely on it.
How severe is CVE-2022-1941?
High (7.5, CVSS 3.1, from CISA-ADP). The severity table above shows each score with its source.
Where is the official record of CVE-2022-1941?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.