Live threats

All CVEs / Google

CVE-2022-1941Google Protobuf-cpp

High 7.5 No auth needed

Priority
60
CVSS 3.1
7.5
EPSS
1.4%
probability of exploitation in 30 days · percentile 72
Auth required
No
Published
Sep 22, 2022
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-1286
SSVC (CISA)
Exploitation: none · Automatable: yes · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Protobuf-cpp.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI protobuf < 3.18.3 3.18.3 pip install "protobuf>=3.18.3"
PyPI protobuf ≥ 3.19.0 < 3.19.5 3.19.5 pip install "protobuf>=3.19.5"
PyPI protobuf ≥ 3.20.0 < 3.20.2 3.20.2 pip install "protobuf>=3.20.2"
PyPI protobuf ≥ 4.0.0 < 4.21.6 4.21.6 pip install "protobuf>=4.21.6"
PyPI protobuf < 3.18.3 3.18.3 pip install "protobuf>=3.18.3"
PyPI protobuf ≥ 3.19.0 < 3.19.5 3.19.5 pip install "protobuf>=3.19.5"
PyPI protobuf ≥ 3.20.0 < 3.20.2 3.20.2 pip install "protobuf>=3.20.2"
PyPI protobuf ≥ 4.0.0 < 4.21.6 4.21.6 pip install "protobuf>=4.21.6"

Per OSV / GitHub Advisories (GHSA-8gq9-2x98-w8hf, PYSEC-2026-899). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
googleprotobuf-cpp< 3.18.3
googleprotobuf-cpp≥ 3.19.0 < 3.19.5
googleprotobuf-cpp≥ 3.20.0 < 3.20.2
googleprotobuf-cpp≥ 3.21.0 < 3.21.6
googleprotobuf-python< 3.18.3
googleprotobuf-python≥ 3.19.0 < 3.19.5
googleprotobuf-python≥ 3.20.0 < 3.20.2
googleprotobuf-python≥ 4.0.0 < 4.21.6
fedoraprojectfedora36
fedoraprojectfedora37
debiandebian_linux10.0

Official sources

References

Links published by the sources. Open them with care.