CVE-2022-1941Google Protobuf-cpp
High 7.5 No auth needed
Follow: this CVE · Google · Google Protobuf-cpp We alert you by email or Slack (account required).
- 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.
What to do
- Apply the vendor's security update for Protobuf-cpp.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How 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)
| Vendor | Product | Versions |
|---|---|---|
| protobuf-cpp | < 3.18.3 | |
| protobuf-cpp | ≥ 3.19.0 < 3.19.5 | |
| protobuf-cpp | ≥ 3.20.0 < 3.20.2 | |
| protobuf-cpp | ≥ 3.21.0 < 3.21.6 | |
| protobuf-python | < 3.18.3 | |
| protobuf-python | ≥ 3.19.0 < 3.19.5 | |
| protobuf-python | ≥ 3.20.0 < 3.20.2 | |
| protobuf-python | ≥ 4.0.0 < 4.21.6 | |
| fedoraproject | fedora | 36 |
| fedoraproject | fedora | 37 |
| debian | debian_linux | 10.0 |
Official sources
References
Links published by the sources. Open them with care.
- www.openwall.com Mailing List Third Party Advisory
- cloud.google.com Third Party Advisory
- github.com Third Party Advisory
- lists.debian.org Mailing List
- lists.fedoraproject.org
- lists.fedoraproject.org
- security.netapp.com