Vulnerability · Published Sep 22, 2022 · Assigned by Google

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

High 7.5

In plain English

A high-severity security flaw in protobuf-cpp from Google LLC. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.5% (higher than 75% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.5High
Exploit odds (30 days)1.5%top 25.4% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:9protobuf3.14.0-16.el9ALSA-2025:7138
AlmaLinux:9protobuf-compiler3.14.0-16.el9ALSA-2025:7138
AlmaLinux:9protobuf-devel3.14.0-16.el9ALSA-2025:7138
AlmaLinux:9protobuf-lite3.14.0-16.el9ALSA-2025:7138
AlmaLinux:9protobuf-lite-devel3.14.0-16.el9ALSA-2025:7138
AlmaLinux:9python3-protobuf3.14.0-16.el9ALSA-2025:7138
Debian:12protobuf3.21.9-3DEBIAN-CVE-2022-1941
Debian:13protobuf3.21.9-3DEBIAN-CVE-2022-1941
Debian:14protobuf3.21.9-3DEBIAN-CVE-2022-1941
PyPIprotobuf3.18.3GHSA-8gq9-2x98-w8hf
PyPIprotobuf3.19.5GHSA-8gq9-2x98-w8hf
PyPIprotobuf3.20.2GHSA-8gq9-2x98-w8hf
PyPIprotobuf4.21.6GHSA-8gq9-2x98-w8hf
PyPIprotobuf3.18.3, 3.19.5, 3.20.2, 4.21.6PYSEC-2026-899
Rocky Linux:9protobuf0:3.14.0-16.el9RLSA-2025:7138
Ubuntu:22.04:LTSprotobuf3.12.4-1ubuntu7.22.04.1USN-5945-1
Ubuntu:22.04:LTSprotobuf3.12.4-1ubuntu7.22.04.1UBUNTU-CVE-2022-1941

Affected products (as reported)

VendorProductVersions
Google LLC protobuf-cpp unspecified – through 3.16.1unspecified – through 3.17.3unspecified – through 3.18.2unspecified – through 3.19.4unspecified – through 3.20.1unspecified – through 3.21.5
Google LLC protobuf-python unspecified – through 3.16.1unspecified – through 3.17.3unspecified – through 3.18.2unspecified – through 3.19.4unspecified – through 3.20.1unspecified – through 4.21.5

Weakness: CWE-1286 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

References