CVEfocus › CVE database › CVE-2022-1941

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

CVSS 7.5 HighEPSS 1.6% (higher than 76% of CVEs)Published 2022-09-22Updated 2024-08-03Assigner: Google

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.

CWE-1286

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

20Fixed
2Fix pending
82Not affected

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 22.04protobufFixed3.12.4-1ubuntu7.22.04.1UBUNTU-CVE-2022-1941
Ubuntu 20.04protobufFixed3.6.1.3-2ubuntu5.2UBUNTU-CVE-2022-1941
Ubuntu 18.04protobufFixed3.0.0-9.1ubuntu1.1UBUNTU-CVE-2022-1941
Ubuntu 16.04protobufFix pending2.6.1-1.3ubuntu0.1~esm2 (Ubuntu Pro)UBUNTU-CVE-2022-1941
Ubuntu 14.04protobufFix pendingUBUNTU-CVE-2022-1941
Debian 14protobufFixed3.21.9-3DEBIAN-CVE-2022-1941
Debian 13protobufFixed3.21.9-3DEBIAN-CVE-2022-1941
Debian 12protobufFixed3.21.9-3DEBIAN-CVE-2022-1941
Red Hat Enterprise Linux 10protobufNot affected
Red Hat Enterprise Linux 10protobuf-compilerNot affected
Red Hat Enterprise Linux 10protobuf-develNot affected
Red Hat Enterprise Linux 10protobuf-liteNot affected
Red Hat Enterprise Linux 10protobuf-lite-develNot affected
Red Hat Enterprise Linux 10python3-protobufNot affected
Red Hat Enterprise Linux 9fence-agentsNot affected
Red Hat Enterprise Linux 9fence-agents-aliyunNot affected
Red Hat Enterprise Linux 9fence-agents-allNot affected
Red Hat Enterprise Linux 9fence-agents-amt-wsNot affected
Red Hat Enterprise Linux 9fence-agents-apcNot affected
Red Hat Enterprise Linux 9fence-agents-apc-snmpNot affected
Red Hat Enterprise Linux 9fence-agents-awsNot affected
Red Hat Enterprise Linux 9fence-agents-azure-armNot affected
Red Hat Enterprise Linux 9fence-agents-bladecenterNot affected
Red Hat Enterprise Linux 9fence-agents-brocadeNot affected
Red Hat Enterprise Linux 9fence-agents-cisco-mdsNot affected
Red Hat Enterprise Linux 9fence-agents-cisco-ucsNot affected
Red Hat Enterprise Linux 9fence-agents-commonNot affected
Red Hat Enterprise Linux 9fence-agents-computeNot affected
Red Hat Enterprise Linux 9fence-agents-drac5Not affected
Red Hat Enterprise Linux 9fence-agents-eaton-snmpNot affected
Red Hat Enterprise Linux 9fence-agents-emersonNot affected
Red Hat Enterprise Linux 9fence-agents-epsNot affected
Red Hat Enterprise Linux 9fence-agents-gceNot affected
Red Hat Enterprise Linux 9fence-agents-heuristics-pingNot affected
Red Hat Enterprise Linux 9fence-agents-hpbladeNot affected
Red Hat Enterprise Linux 9fence-agents-ibm-powervsNot affected
Red Hat Enterprise Linux 9fence-agents-ibm-vpcNot affected
Red Hat Enterprise Linux 9fence-agents-ibmbladeNot affected
Red Hat Enterprise Linux 9fence-agents-ifmibNot affected
Red Hat Enterprise Linux 9fence-agents-ilo-moonshotNot affected
Red Hat Enterprise Linux 9fence-agents-ilo-mpNot affected
Red Hat Enterprise Linux 9fence-agents-ilo-sshNot affected
Red Hat Enterprise Linux 9fence-agents-ilo2Not affected
Red Hat Enterprise Linux 9fence-agents-intelmodularNot affected
Red Hat Enterprise Linux 9fence-agents-ipduNot affected
Red Hat Enterprise Linux 9fence-agents-ipmilanNot affected
Red Hat Enterprise Linux 9fence-agents-kdumpNot affected
Red Hat Enterprise Linux 9fence-agents-kubevirtNot affected
Red Hat Enterprise Linux 9fence-agents-lparNot affected
Red Hat Enterprise Linux 9fence-agents-mpathNot affected
Red Hat Enterprise Linux 9fence-agents-nutanix-ahvNot affected
Red Hat Enterprise Linux 9fence-agents-openstackNot affected
Red Hat Enterprise Linux 9fence-agents-redfishNot affected
Red Hat Enterprise Linux 9fence-agents-rhevmNot affected
Red Hat Enterprise Linux 9fence-agents-rsaNot affected
Red Hat Enterprise Linux 9fence-agents-rsbNot affected
Red Hat Enterprise Linux 9fence-agents-sbdNot affected
Red Hat Enterprise Linux 9fence-agents-scsiNot affected
Red Hat Enterprise Linux 9fence-agents-virshNot affected
Red Hat Enterprise Linux 9fence-agents-vmware-restNot affected
Red Hat Enterprise Linux 9fence-agents-vmware-soapNot affected
Red Hat Enterprise Linux 9fence-agents-wtiNot affected
Red Hat Enterprise Linux 9fence-agents-zvmNot affected
Red Hat Enterprise Linux 9fence-virtNot affected
Red Hat Enterprise Linux 9fence-virtdNot affected
Red Hat Enterprise Linux 9fence-virtd-cpgNot affected
Red Hat Enterprise Linux 9fence-virtd-libvirtNot affected
Red Hat Enterprise Linux 9fence-virtd-multicastNot affected
Red Hat Enterprise Linux 9fence-virtd-serialNot affected
Red Hat Enterprise Linux 9fence-virtd-tcpNot affected
Red Hat Enterprise Linux 9ha-cloud-supportNot affected
Red Hat Enterprise Linux 9protobufFixed0:3.14.0-16.el9RHSA-2025:7138
Red Hat Enterprise Linux 9protobuf-compilerFixed0:3.14.0-16.el9RHSA-2025:7138
Red Hat Enterprise Linux 9protobuf-develFixed0:3.14.0-16.el9RHSA-2025:7138
Red Hat Enterprise Linux 9protobuf-liteFixed0:3.14.0-16.el9RHSA-2025:7138
Red Hat Enterprise Linux 9protobuf-lite-develFixed0:3.14.0-16.el9RHSA-2025:7138
Red Hat Enterprise Linux 9python3-protobufFixed0:3.14.0-16.el9RHSA-2025:7138
Red Hat Enterprise Linux 8protobufNot affected
Red Hat Enterprise Linux 8protobuf-compilerNot affected
Red Hat Enterprise Linux 8protobuf-develNot affected
Red Hat Enterprise Linux 8protobuf-liteNot affected
Red Hat Enterprise Linux 8protobuf-lite-develNot affected
Red Hat Enterprise Linux 8python3-protobufNot affected
Red Hat Enterprise Linux 7protobufNot affected
Red Hat Enterprise Linux 7protobuf-compilerNot affected
Red Hat Enterprise Linux 7protobuf-develNot affected
Red Hat Enterprise Linux 7protobuf-emacsNot affected
Red Hat Enterprise Linux 7protobuf-emacs-elNot affected
Red Hat Enterprise Linux 7protobuf-javaNot affected
Red Hat Enterprise Linux 7protobuf-javadocNot affected
Red Hat Enterprise Linux 7protobuf-liteNot affected
Red Hat Enterprise Linux 7protobuf-lite-develNot affected
Red Hat Enterprise Linux 7protobuf-lite-staticNot affected
Red Hat Enterprise Linux 7protobuf-pythonNot affected
Red Hat Enterprise Linux 7protobuf-staticNot affected
Red Hat Enterprise Linux 7protobuf-vimNot affected
AlmaLinux 9protobufFixed3.14.0-16.el9ALSA-2025:7138
AlmaLinux 9protobuf-compilerFixed3.14.0-16.el9ALSA-2025:7138
AlmaLinux 9protobuf-develFixed3.14.0-16.el9ALSA-2025:7138
AlmaLinux 9protobuf-liteFixed3.14.0-16.el9ALSA-2025:7138
AlmaLinux 9protobuf-lite-develFixed3.14.0-16.el9ALSA-2025:7138
AlmaLinux 9python3-protobufFixed3.14.0-16.el9ALSA-2025:7138
Rocky Linux 9protobufFixed0:3.14.0-16.el9RLSA-2025:7138
PyPI libraryprotobufFixed3.20.2PYSEC-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.

Vendor advisories:

References

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.