# CVE-2022-1941: Out of Memory issue in ProtocolBuffers for cpp and python

- Severity: High 7.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- 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.61%, higher than 76% of CVEs (2026-12-02)
- Published: 2022-09-22T00:00:00.000Z
- Modified: 2026-07-08T06:28:21.826Z
- Also known as: GHSA-8gq9-2x98-w8hf, PYSEC-2026-899
- Weaknesses: CWE-119, CWE-1286
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: Google

## Description

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.

(As written by CVE List.)

## Affected

- Google LLC protobuf-cpp: from unspecified up to 3.16.1; from unspecified up to 3.17.3; from unspecified up to 3.18.2; from unspecified up to 3.19.4; from unspecified up to 3.20.1; from unspecified up to 3.21.5
- Google LLC protobuf-python: from unspecified up to 3.16.1; from unspecified up to 3.17.3; from unspecified up to 3.18.2; from unspecified up to 3.19.4; from unspecified up to 3.20.1; from unspecified up to 4.21.5
- google protobuf-cpp: before 3.18.3; from 3.19.0 before 3.19.5; from 3.20.0 before 3.20.2; from 3.21.0 before 3.21.6
- google protobuf-python: before 3.18.3; from 3.19.0 before 3.19.5; from 3.20.0 before 3.20.2; from 4.0.0 before 4.21.6
- protobuf (PyPI): before 3.18.3; from 3.19.0 before 3.19.5; from 3.20.0 before 3.20.2; from 4.0.0 before 4.21.6
- fedoraproject fedora: 36; 37
- debian debian_linux: 10.0

## Every score

- CISA-ADP: 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`
- GitHub: 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`
- 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`
- PyPA Advisory Database: 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://cloud.google.com/support/bulletins#GCP-2022-019> (third-party-advisory, web)
- <https://github.com/protocolbuffers/protobuf/security/advisories/GHSA-8gq9-2x98-w8hf> (third-party-advisory, web)
- <http://www.openwall.com/lists/oss-security/2022/09/27/1> (mailing-list, third-party-advisory, web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/CBAUKJQL6O4TIWYBENORSY5P43TVB4M3/> (vendor-advisory)
- <https://lists.debian.org/debian-lts-announce/2023/04/msg00019.html> (mailing-list, web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MPCGUT3T5L6C3IDWUPSUO22QDCGQKTOP/> (vendor-advisory)
- <https://security.netapp.com/advisory/ntap-20240705-0001/>
- <https://nvd.nist.gov/vuln/detail/CVE-2022-1941> (advisory)
- <https://github.com/protocolbuffers/protobuf> (package)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/CBAUKJQL6O4TIWYBENORSY5P43TVB4M3> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MPCGUT3T5L6C3IDWUPSUO22QDCGQKTOP> (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)
- <https://security.netapp.com/advisory/ntap-20240705-0001> (web)
- <https://pypi.org/project/protobuf> (package)
- <https://github.com/advisories/GHSA-8gq9-2x98-w8hf> (advisory)

## Sources

- CVE List: [CVE-2022-1941](https://www.cve.org/CVERecord?id=CVE-2022-1941), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-8gq9-2x98-w8hf](https://github.com/advisories/GHSA-8gq9-2x98-w8hf), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2022-1941](https://nvd.nist.gov/vuln/detail/CVE-2022-1941), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-899](https://osv.dev/vulnerability/PYSEC-2026-899), CC-BY-4.0, modified 2026-07-07

---

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