CVE-2022-1941
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.
| Package | Ecosystem | Fixed in |
|---|---|---|
| protobuf | PyPI | 4.21.6, 3.20.2, 3.19.5, 3.18.3 |
| protobuf-lite-static | Amazon Linux | 3.19.6-1.amzn2023.0.1, 2.5.0-8.amzn2.0.4 |
| protobuf-emacs | Amazon Linux | 3.19.6-1.amzn2023.0.1, 2.5.0-8.amzn2.0.4 |
| python3-protobuf | Amazon Linux | 3.19.6-1.amzn2023.0.1 |
| protobuf | conan.io | 3.21.6, 3.20.2, 3.19.5, 3.18.3 |
| protobuf-python | Amazon Linux | 2.5.0-8.amzn2.0.4 |
| protobuf-emacs-el | Amazon Linux | 2.5.0-8.amzn2.0.4 |
| protobuf-lite | Amazon Linux | 3.19.6-1.amzn2023.0.1, 2.5.0-8.amzn2.0.4 |
| python-protobuf | Arch Linux | 21.6-1 |
| protobuf-devel | Amazon Linux | 3.19.6-1.amzn2023.0.1, 2.5.0-8.amzn2.0.4 |
| protobuf-compiler | Amazon Linux | 3.19.6-1.amzn2023.0.1, 2.5.0-8.amzn2.0.4 |
| protobuf-static | Amazon Linux | 3.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
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Google LLC | protobuf-cpp | unspecified, unspecified, unspecified |
| Google LLC | protobuf-python | unspecified, unspecified, unspecified |
| amazon:2 | protobuf-lite-static | 0 |
| amazon:2 | protobuf-emacs | 0 |
| amazon:2023 | python3-protobuf | 0 |
| amazon:2023 | protobuf-emacs | 0 |
| amazon:2 | protobuf-python | 0 |
| Google LLC | protobuf-python | *, *, * |
| amazon:2 | protobuf-emacs-el | 0 |
| amazon:2023 | protobuf-lite | 0 |
| protobuf-python | 0, 4.0.0, 3.20.0 | |
| arch | python-protobuf | 0 |
| PyPI | protobuf | 3.19.0, 0, 3.20.0 |
| amazon:2023 | protobuf-devel | 0 |
| amazon:2023 | protobuf-lite-static | 0 |
| amazon:2 | protobuf-compiler | 0 |
| amazon:2023 | protobuf-static | 0 |
| amazon:2 | protobuf-javadoc | 0 |
| protobuf-cpp | 3.19.0, 0, 3.21.0 | |
| amazon:2023 | protobuf | 0 |
…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
References
- [oss-security] 20220927 CVE-2022-1941: Protobuf C++, Python DoS mailing-list
- FEDORA-2022-25f35ed634 vendor-advisory
- [debian-lts-announce] 20230418 [SECURITY] [DLA 3393-1] protobuf security update mailing-list
- FEDORA-2022-15729fa33d vendor-advisory
- https://github.com/advisories/GHSA-8gq9-2x98-w8hf advisory
- https://nvd.nist.gov/vuln/detail/CVE-2022-1941 advisory