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

- Priority: **Prioritise**
- Reason: Severe, CVSS 7.5 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 2% (FIRST, 04-12-2026)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2022-09-22 · Modified: 2024-08-03
- Aliases: GHSA-8gq9-2x98-w8hf, PYSEC-2026-899, RHSA-2025:7138, UBUNTU-CVE-2022-1941, DEBIAN-CVE-2022-1941
- Record: https://cvemate.com/vulnerability/CVE-2022-1941 · JSON: https://cvemate.com/vulnerability/CVE-2022-1941/json

## Description

```text
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.
```

## Signals

- CVSS: 7.5 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- EPSS: 1.6%, percentile 76.63%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- debian protobuf (Debian): \< 3.21.9-3
- ubuntu protobuf (Ubuntu): All versions (No fix recorded) \| \< 2.6.1-1.3ubuntu0.1~esm2 \| \< 3.0.0-9.1ubuntu1.1 \| \< 3.6.1.3-2ubuntu5.2 \| \< 3.12.4-1ubuntu7.22.04.1
- debian debian\_linux: 10.0
- fedoraproject fedora: 36 \| 37
- google llc protobuf-cpp: ≥ unspecified, ≤ 3.16.1 \| ≥ unspecified, ≤ 3.17.3 \| ≥ unspecified, ≤ 3.18.2 \| ≥ unspecified, ≤ 3.19.4 \| ≥ unspecified, ≤ 3.20.1 \| ≥ unspecified, ≤ 3.21.5
- google llc protobuf-python: ≥ unspecified, ≤ 3.16.1 \| ≥ unspecified, ≤ 3.17.3 \| ≥ unspecified, ≤ 3.18.2 \| ≥ unspecified, ≤ 3.19.4 \| ≥ unspecified, ≤ 3.20.1 \| ≥ unspecified, ≤ 4.21.5
- google protobuf-cpp: \< 3.18.3 \| ≥ 3.19.0, \< 3.19.5 \| ≥ 3.20.0, \< 3.20.2 \| ≥ 3.21.0, \< 3.21.6
- google protobuf-python: \< 3.18.3 \| ≥ 3.19.0, \< 3.19.5 \| ≥ 3.20.0, \< 3.20.2 \| ≥ 4.0.0, \< 4.21.6
- PyPI protobuf (PyPI): \< 3.18.3 \| ≥ 3.19.0, \< 3.19.5 \| ≥ 3.20.0, \< 3.20.2 \| ≥ 4.0.0, \< 4.21.6
- redhat protobuf (Red Hat): \< 0:3.14.0-16.el9
- redhat protobuf-compiler (Red Hat): \< 0:3.14.0-16.el9
- redhat protobuf-compiler-debuginfo (Red Hat): \< 0:3.14.0-16.el9
- redhat protobuf-debuginfo (Red Hat): \< 0:3.14.0-16.el9
- redhat protobuf-debugsource (Red Hat): \< 0:3.14.0-16.el9
- redhat protobuf-devel (Red Hat): \< 0:3.14.0-16.el9
- redhat protobuf-lite (Red Hat): \< 0:3.14.0-16.el9
- redhat protobuf-lite-debuginfo (Red Hat): \< 0:3.14.0-16.el9
- redhat protobuf-lite-devel (Red Hat): \< 0:3.14.0-16.el9
- redhat python3-protobuf (Red Hat): \< 0:3.14.0-16.el9

## References (first 20 of 29)

- <https://cloud.google.com/support/bulletins#GCP-2022-019>
- <https://github.com/protocolbuffers/protobuf/security/advisories/GHSA-8gq9-2x98-w8hf>
- <http://www.openwall.com/lists/oss-security/2022/09/27/1>
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/CBAUKJQL6O4TIWYBENORSY5P43TVB4M3/>
- <https://lists.debian.org/debian-lts-announce/2023/04/msg00019.html>
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MPCGUT3T5L6C3IDWUPSUO22QDCGQKTOP/>
- <https://security.netapp.com/advisory/ntap-20240705-0001/>
- <https://nvd.nist.gov/vuln/detail/CVE-2022-1941>
- <https://github.com/protocolbuffers/protobuf>
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/CBAUKJQL6O4TIWYBENORSY5P43TVB4M3>
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MPCGUT3T5L6C3IDWUPSUO22QDCGQKTOP>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/CBAUKJQL6O4TIWYBENORSY5P43TVB4M3>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/MPCGUT3T5L6C3IDWUPSUO22QDCGQKTOP>
- <https://security.netapp.com/advisory/ntap-20240705-0001>
- <https://pypi.org/project/protobuf>
- <https://github.com/advisories/GHSA-8gq9-2x98-w8hf>
- <https://access.redhat.com/errata/RHSA-2025:7138>
- <https://docs.redhat.com/en/documentation/red_hat_enterprise_linux/9/html/9.6_release_notes/index>
- <https://access.redhat.com/security/updates/classification/#moderate>
- <https://bugzilla.redhat.com/show_bug.cgi?id=2291470>

---

Data as of 2026-12-05T03:16:27.503Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
