VDB

CVE-2022-1941

CVE-2022-1941 PUBLISHED CVSS 8.699999809265137 HIGH

Out of Memory issue in ProtocolBuffers for cpp and python

Reported by google · Published September 22, 2022

protobuf is fixed in 4.21.6, 3.20.2, 3.19.5 and 1 more (PyPI)

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
protobufPyPI4.21.6, 3.20.2, 3.19.5, 3.18.3
protobuf-lite-staticAmazon Linux3.19.6-1.amzn2023.0.1, 2.5.0-8.amzn2.0.4
protobuf-emacsAmazon Linux3.19.6-1.amzn2023.0.1, 2.5.0-8.amzn2.0.4
python3-protobufAmazon Linux3.19.6-1.amzn2023.0.1
protobufconan.io3.21.6, 3.20.2, 3.19.5, 3.18.3
protobuf-pythonAmazon Linux2.5.0-8.amzn2.0.4
protobuf-emacs-elAmazon Linux2.5.0-8.amzn2.0.4
protobuf-liteAmazon Linux3.19.6-1.amzn2023.0.1, 2.5.0-8.amzn2.0.4
python-protobufArch Linux21.6-1
protobuf-develAmazon Linux3.19.6-1.amzn2023.0.1, 2.5.0-8.amzn2.0.4
protobuf-compilerAmazon Linux3.19.6-1.amzn2023.0.1, 2.5.0-8.amzn2.0.4
protobuf-staticAmazon Linux3.19.6-1.amzn2023.0.1, 2.5.0-8.amzn2.0.4

10 more packages have a fixed version. See every fix in Lookup.

Risk scores

CVSS 4.0
8.699999809265137
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Affected products

VendorProductVersions
Google LLCprotobuf-cppunspecified, unspecified, unspecified
Google LLCprotobuf-pythonunspecified, unspecified, unspecified
amazon:2protobuf-lite-static0
amazon:2protobuf-emacs0
amazon:2023python3-protobuf0
amazon:2023protobuf-emacs0
amazon:2protobuf-python0
Google LLCprotobuf-python*, *, *
amazon:2protobuf-emacs-el0
amazon:2023protobuf-lite0
googleprotobuf-python0, 4.0.0, 3.20.0
archpython-protobuf0
PyPIprotobuf3.19.0, 0, 3.20.0
amazon:2023protobuf-devel0
amazon:2023protobuf-lite-static0
amazon:2protobuf-compiler0
amazon:2023protobuf-static0
amazon:2protobuf-javadoc0
googleprotobuf-cpp3.19.0, 0, 3.21.0
amazon:2023protobuf0

…and 13 more

Timeline

  • Sep 22, 2022 CVE Published
  • Sep 23, 2022 EPSS Score (30 in total, the first dated here)
  • Feb 13, 2025 PoC Published (3 in total, the first dated here)
  • Mar 9, 2026 Security Advisory (9 in total, the first dated here)
  • Mar 13, 2026 CVE Updated
  • Jul 11, 2026 Coalition ESS Score
  • Nov 22, 2026 Distribution Patch (6 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2022-1941
vulnetix vdb fixes CVE-2022-1941

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2022-1941/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›