Out of Memory issue in ProtocolBuffers for cpp and python
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CISA ADP. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-119 and the CVSS impact.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| protobuf-cpp | up to 3.16.1; up to 3.17.3; up to 3.18.2; up to 3.19.4; up to 3.20.1; up to 3.21.5 | — | No fix listed | CNA | |
| protobuf-python | up to 3.16.1; up to 3.17.3; up to 3.18.2; up to 3.19.4; up to 3.20.1; up to 4.21.5 | — | No fix listed | CNA | |
| — | protobuf (PyPI) | before 3.18.3 | 3.18.3 | Patch available | GHSA-8gq9-2x98-w8hf |
| — | protobuf (PyPI) | 3.19.0 to before 3.19.5 | 3.19.5 | Patch available | GHSA-8gq9-2x98-w8hf |
| — | protobuf (PyPI) | 3.20.0 to before 3.20.2 | 3.20.2 | Patch available | GHSA-8gq9-2x98-w8hf |
| — | protobuf (PyPI) | 4.0.0 to before 4.21.6 | 4.21.6 | Patch available | GHSA-8gq9-2x98-w8hf |
- protobuf-cpp VendorGoogle Affected up to 3.16.1; up to 3.17.3; up to 3.18.2; up to 3.19.4; up to 3.20.1; up to 3.21.5 Fixed in — No fix listed CNA
- protobuf-python VendorGoogle Affected up to 3.16.1; up to 3.17.3; up to 3.18.2; up to 3.19.4; up to 3.20.1; up to 4.21.5 Fixed in — No fix listed CNA
- protobuf (PyPI) Vendor— Affected before 3.18.3 Fixed in 3.18.3 Patch available GHSA-8gq9-2x98-w8hf
- protobuf (PyPI) Vendor— Affected 3.19.0 to before 3.19.5 Fixed in 3.19.5 Patch available GHSA-8gq9-2x98-w8hf
- protobuf (PyPI) Vendor— Affected 3.20.0 to before 3.20.2 Fixed in 3.20.2 Patch available GHSA-8gq9-2x98-w8hf
- protobuf (PyPI) Vendor— Affected 4.0.0 to before 4.21.6 Fixed in 4.21.6 Patch available GHSA-8gq9-2x98-w8hf
CPE configurations NVD · 5
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:google:protobuf-cpp:*:*:*:*:*:*:*:* | before 3.18.3; 3.19.0 to before 3.19.5; 3.20.0 to before 3.20.2; 3.21.0 to before 3.21.6 | Vulnerable | |
| cpe:2.3:a:google:protobuf-python:*:*:*:*:*:*:*:* | before 3.18.3; 3.19.0 to before 3.19.5; 3.20.0 to before 3.20.2; 4.0.0 to before 4.21.6 | Vulnerable | |
| cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:* | 36 | Vulnerable | Fedoraproject |
| cpe:2.3:o:fedoraproject:fedora:37:*:*:*:*:*:*:* | 37 | Vulnerable | Fedoraproject |
| cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:* | 10.0 | Vulnerable | Debian |
- cpe:2.3:a:google:protobuf-cpp:*:*:*:*:*:*:*:* Versions before 3.18.3; 3.19.0 to before 3.19.5; 3.20.0 to before 3.20.2; 3.21.0 to before 3.21.6 Vulnerable ·Google
- cpe:2.3:a:google:protobuf-python:*:*:*:*:*:*:*:* Versions before 3.18.3; 3.19.0 to before 3.19.5; 3.20.0 to before 3.20.2; 4.0.0 to before 4.21.6 Vulnerable ·Google
- cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:* Versions 36 Vulnerable ·Fedoraproject
- cpe:2.3:o:fedoraproject:fedora:37:*:*:*:*:*:*:* Versions 37 Vulnerable ·Fedoraproject
- cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:* Versions 10.0 Vulnerable ·Debian
Remediation
- Fix · GHSA-8gq9-2x98-w8hf protobuf (PyPI) Fixed in 3.18.3 Advisory →
- Fix · GHSA-8gq9-2x98-w8hf protobuf (PyPI) Fixed in 3.19.5 Advisory →
- Fix · GHSA-8gq9-2x98-w8hf protobuf (PyPI) Fixed in 3.20.2 Advisory →
- Fix · GHSA-8gq9-2x98-w8hf protobuf (PyPI) Fixed in 4.21.6 Advisory →
Red Hat 1 advisory
- RHSA-2025:7138 Released 2025-05-13 · Red Hat rating Moderateprotobuf security update
- Red Hat Enterprise Linux AppStream (v. 9) protobuf-3.14.0-16.el9, protobuf-lite-3.14.0-16.el9, python3-protobuf-3.14.0-16.el9
- Red Hat Enterprise Linux CodeReady Linux Builder (v. 9) protobuf-compiler-3.14.0-16.el9, protobuf-devel-3.14.0-16.el9, protobuf-lite-devel-3.14.0-16.el9
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux AppStream (v. 9) | Fixed | RHSA-2025:7138 |
| Red Hat Enterprise Linux CodeReady Linux Builder (v. 9) | Fixed | RHSA-2025:7138 |
Not affected: 13 products
- Red Hat 3scale API Management Platform 2
- Red Hat Ansible Automation Platform 2
- Red Hat Ceph Storage 7
- Red Hat Enterprise Linux 10
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 9
- Red Hat OpenShift Container Platform 4
- Red Hat OpenStack Platform 16.1
- Red Hat OpenStack Platform 16.2
- Red Hat Quay 3
- Red Hat Satellite 6
- Red Hat Update Infrastructure 4 for Cloud Providers
Timeline
- 2026-10-02 Threatist record created from CVE-2022-1941
- 2026-10-03 Alias added: GHSA-8gq9-2x98-w8hf
References
Advisory 6
Other 8
- [debian-lts-announce] 20230418 [SECURITY] [DLA 3393-1] protobuf security update
- https://security.netapp.com/advisory/ntap-20240705-0001/
- https://github.com/protocolbuffers/protobuf
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/CBAUKJQL6O4TIWYBENORSY5P43TVB4M3
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MPCGUT3T5L6C3IDWUPSUO22QDCGQKTOP
- https://lists.fedoraproject.org/archives/list/[email protected]/message/CBAUKJQL6O4TIWYBENORSY5P43TVB4M3
- https://lists.fedoraproject.org/archives/list/[email protected]/message/MPCGUT3T5L6C3IDWUPSUO22QDCGQKTOP
- https://security.netapp.com/advisory/ntap-20240705-0001
Sources
- CVE-2022-1941 · CVE Program
- CVE-2022-1941 · NVD
- FIRST EPSS
- GHSA-8gq9-2x98-w8hf · GitHub Advisory Database · CC BY 4.0
- CVE-2022-1941 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences