CVE-2022-1941Out 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.
What to do
Fixed builds are available from AlmaLinux, Debian, PyPI, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 22.04 | protobuf | Fixed | 3.12.4-1ubuntu7.22.04.1 | UBUNTU-CVE-2022-1941 |
| Ubuntu 20.04 | protobuf | Fixed | 3.6.1.3-2ubuntu5.2 | UBUNTU-CVE-2022-1941 |
| Ubuntu 18.04 | protobuf | Fixed | 3.0.0-9.1ubuntu1.1 | UBUNTU-CVE-2022-1941 |
| Ubuntu 16.04 | protobuf | Fix pending | 2.6.1-1.3ubuntu0.1~esm2 (Ubuntu Pro) | UBUNTU-CVE-2022-1941 |
| Ubuntu 14.04 | protobuf | Fix pending | UBUNTU-CVE-2022-1941 | |
| Debian 14 | protobuf | Fixed | 3.21.9-3 | DEBIAN-CVE-2022-1941 |
| Debian 13 | protobuf | Fixed | 3.21.9-3 | DEBIAN-CVE-2022-1941 |
| Debian 12 | protobuf | Fixed | 3.21.9-3 | DEBIAN-CVE-2022-1941 |
| Red Hat Enterprise Linux 10 | protobuf | Not affected | ||
| Red Hat Enterprise Linux 10 | protobuf-compiler | Not affected | ||
| Red Hat Enterprise Linux 10 | protobuf-devel | Not affected | ||
| Red Hat Enterprise Linux 10 | protobuf-lite | Not affected | ||
| Red Hat Enterprise Linux 10 | protobuf-lite-devel | Not affected | ||
| Red Hat Enterprise Linux 10 | python3-protobuf | Not affected | ||
| Red Hat Enterprise Linux 9 | fence-agents | Not affected | ||
| Red Hat Enterprise Linux 9 | fence-agents-aliyun | Not affected | ||
| Red Hat Enterprise Linux 9 | fence-agents-all | Not affected | ||
| Red Hat Enterprise Linux 9 | fence-agents-amt-ws | Not affected | ||
| Red Hat Enterprise Linux 9 | fence-agents-apc | Not affected | ||
| Red Hat Enterprise Linux 9 | fence-agents-apc-snmp | Not affected | ||
| Red Hat Enterprise Linux 9 | fence-agents-aws | Not affected | ||
| Red Hat Enterprise Linux 9 | fence-agents-azure-arm | Not affected | ||
| Red Hat Enterprise Linux 9 | fence-agents-bladecenter | Not affected | ||
| Red Hat Enterprise Linux 9 | fence-agents-brocade | Not affected | ||
| Red Hat Enterprise Linux 9 | fence-agents-cisco-mds | Not affected | ||
| Red Hat Enterprise Linux 9 | fence-agents-cisco-ucs | Not affected | ||
| Red Hat Enterprise Linux 9 | fence-agents-common | Not affected | ||
| Red Hat Enterprise Linux 9 | fence-agents-compute | Not affected | ||
| Red Hat Enterprise Linux 9 | fence-agents-drac5 | Not affected | ||
| Red Hat Enterprise Linux 9 | fence-agents-eaton-snmp | Not affected | ||
| Red Hat Enterprise Linux 9 | fence-agents-emerson | Not affected | ||
| Red Hat Enterprise Linux 9 | fence-agents-eps | Not affected | ||
| Red Hat Enterprise Linux 9 | fence-agents-gce | Not affected | ||
| Red Hat Enterprise Linux 9 | fence-agents-heuristics-ping | Not affected | ||
| Red Hat Enterprise Linux 9 | fence-agents-hpblade | Not affected | ||
| Red Hat Enterprise Linux 9 | fence-agents-ibm-powervs | Not affected | ||
| Red Hat Enterprise Linux 9 | fence-agents-ibm-vpc | Not affected | ||
| Red Hat Enterprise Linux 9 | fence-agents-ibmblade | Not affected | ||
| Red Hat Enterprise Linux 9 | fence-agents-ifmib | Not affected | ||
| Red Hat Enterprise Linux 9 | fence-agents-ilo-moonshot | Not affected | ||
| Red Hat Enterprise Linux 9 | fence-agents-ilo-mp | Not affected | ||
| Red Hat Enterprise Linux 9 | fence-agents-ilo-ssh | Not affected | ||
| Red Hat Enterprise Linux 9 | fence-agents-ilo2 | Not affected | ||
| Red Hat Enterprise Linux 9 | fence-agents-intelmodular | Not affected | ||
| Red Hat Enterprise Linux 9 | fence-agents-ipdu | Not affected | ||
| Red Hat Enterprise Linux 9 | fence-agents-ipmilan | Not affected | ||
| Red Hat Enterprise Linux 9 | fence-agents-kdump | Not affected | ||
| Red Hat Enterprise Linux 9 | fence-agents-kubevirt | Not affected | ||
| Red Hat Enterprise Linux 9 | fence-agents-lpar | Not affected | ||
| Red Hat Enterprise Linux 9 | fence-agents-mpath | Not affected | ||
| Red Hat Enterprise Linux 9 | fence-agents-nutanix-ahv | Not affected | ||
| Red Hat Enterprise Linux 9 | fence-agents-openstack | Not affected | ||
| Red Hat Enterprise Linux 9 | fence-agents-redfish | Not affected | ||
| Red Hat Enterprise Linux 9 | fence-agents-rhevm | Not affected | ||
| Red Hat Enterprise Linux 9 | fence-agents-rsa | Not affected | ||
| Red Hat Enterprise Linux 9 | fence-agents-rsb | Not affected | ||
| Red Hat Enterprise Linux 9 | fence-agents-sbd | Not affected | ||
| Red Hat Enterprise Linux 9 | fence-agents-scsi | Not affected | ||
| Red Hat Enterprise Linux 9 | fence-agents-virsh | Not affected | ||
| Red Hat Enterprise Linux 9 | fence-agents-vmware-rest | Not affected | ||
| Red Hat Enterprise Linux 9 | fence-agents-vmware-soap | Not affected | ||
| Red Hat Enterprise Linux 9 | fence-agents-wti | Not affected | ||
| Red Hat Enterprise Linux 9 | fence-agents-zvm | Not affected | ||
| Red Hat Enterprise Linux 9 | fence-virt | Not affected | ||
| Red Hat Enterprise Linux 9 | fence-virtd | Not affected | ||
| Red Hat Enterprise Linux 9 | fence-virtd-cpg | Not affected | ||
| Red Hat Enterprise Linux 9 | fence-virtd-libvirt | Not affected | ||
| Red Hat Enterprise Linux 9 | fence-virtd-multicast | Not affected | ||
| Red Hat Enterprise Linux 9 | fence-virtd-serial | Not affected | ||
| Red Hat Enterprise Linux 9 | fence-virtd-tcp | Not affected | ||
| Red Hat Enterprise Linux 9 | ha-cloud-support | Not affected | ||
| Red Hat Enterprise Linux 9 | protobuf | Fixed | 0:3.14.0-16.el9 | RHSA-2025:7138 |
| Red Hat Enterprise Linux 9 | protobuf-compiler | Fixed | 0:3.14.0-16.el9 | RHSA-2025:7138 |
| Red Hat Enterprise Linux 9 | protobuf-devel | Fixed | 0:3.14.0-16.el9 | RHSA-2025:7138 |
| Red Hat Enterprise Linux 9 | protobuf-lite | Fixed | 0:3.14.0-16.el9 | RHSA-2025:7138 |
| Red Hat Enterprise Linux 9 | protobuf-lite-devel | Fixed | 0:3.14.0-16.el9 | RHSA-2025:7138 |
| Red Hat Enterprise Linux 9 | python3-protobuf | Fixed | 0:3.14.0-16.el9 | RHSA-2025:7138 |
| Red Hat Enterprise Linux 8 | protobuf | Not affected | ||
| Red Hat Enterprise Linux 8 | protobuf-compiler | Not affected | ||
| Red Hat Enterprise Linux 8 | protobuf-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | protobuf-lite | Not affected | ||
| Red Hat Enterprise Linux 8 | protobuf-lite-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | python3-protobuf | Not affected | ||
| Red Hat Enterprise Linux 7 | protobuf | Not affected | ||
| Red Hat Enterprise Linux 7 | protobuf-compiler | Not affected | ||
| Red Hat Enterprise Linux 7 | protobuf-devel | Not affected | ||
| Red Hat Enterprise Linux 7 | protobuf-emacs | Not affected | ||
| Red Hat Enterprise Linux 7 | protobuf-emacs-el | Not affected | ||
| Red Hat Enterprise Linux 7 | protobuf-java | Not affected | ||
| Red Hat Enterprise Linux 7 | protobuf-javadoc | Not affected | ||
| Red Hat Enterprise Linux 7 | protobuf-lite | Not affected | ||
| Red Hat Enterprise Linux 7 | protobuf-lite-devel | Not affected | ||
| Red Hat Enterprise Linux 7 | protobuf-lite-static | Not affected | ||
| Red Hat Enterprise Linux 7 | protobuf-python | Not affected | ||
| Red Hat Enterprise Linux 7 | protobuf-static | Not affected | ||
| Red Hat Enterprise Linux 7 | protobuf-vim | Not affected | ||
| AlmaLinux 9 | protobuf | Fixed | 3.14.0-16.el9 | ALSA-2025:7138 |
| AlmaLinux 9 | protobuf-compiler | Fixed | 3.14.0-16.el9 | ALSA-2025:7138 |
| AlmaLinux 9 | protobuf-devel | Fixed | 3.14.0-16.el9 | ALSA-2025:7138 |
| AlmaLinux 9 | protobuf-lite | Fixed | 3.14.0-16.el9 | ALSA-2025:7138 |
| AlmaLinux 9 | protobuf-lite-devel | Fixed | 3.14.0-16.el9 | ALSA-2025:7138 |
| AlmaLinux 9 | python3-protobuf | Fixed | 3.14.0-16.el9 | ALSA-2025:7138 |
| Rocky Linux 9 | protobuf | Fixed | 0:3.14.0-16.el9 | RLSA-2025:7138 |
| PyPI library | protobuf | Fixed | 3.20.2 | PYSEC-2026-899 |
What the vendor says
As published in the CVE record by Google, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- Google LLC protobuf-cpp: affected: unspecified to 3.16.1, unspecified to 3.17.3, unspecified to 3.18.2, unspecified to 3.19.4, unspecified to 3.20.1, unspecified to 3.21.5
- Google LLC protobuf-python: affected: unspecified to 3.16.1, unspecified to 3.17.3, unspecified to 3.18.2, unspecified to 3.19.4, unspecified to 3.20.1, unspecified to 4.21.5
Vendor advisories:
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
References
- 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/
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.