Protobuf MessageSet OOM DoS before 3.18.3 (cpp/python)
CVE-2022-1941 Published on September 22, 2022
Out of Memory issue in ProtocolBuffers for cpp and python
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.
Vulnerability Analysis
CVE-2022-1941 can be exploited with network access, and does not require authorization privileges or user interaction. This vulnerability is considered to have a low attack complexity. The potential impact of an exploit of this vulnerability is considered to have no impact on confidentiality and integrity, and a high impact on availability.
Weakness Type
Improper Validation of Syntactic Correctness of Input
The product receives input that is expected to be well-formed - i.e., to comply with a certain syntax - but it does not validate or incorrectly validates that the input complies with the syntax.
Products Associated with CVE-2022-1941
You can be notified by email with stack.watch whenever vulnerabilities like CVE-2022-1941 are published in these products:
Affected Versions
Google LLC protobuf-cpp:- Version unspecified, <= 3.16.1 is affected.
- Version unspecified, <= 3.17.3 is affected.
- Version unspecified, <= 3.18.2 is affected.
- Version unspecified, <= 3.19.4 is affected.
- Version unspecified, <= 3.20.1 is affected.
- Version unspecified, <= 3.21.5 is affected.
- Version unspecified, <= 3.16.1 is affected.
- Version unspecified, <= 3.17.3 is affected.
- Version unspecified, <= 3.18.2 is affected.
- Version unspecified, <= 3.19.4 is affected.
- Version unspecified, <= 3.20.1 is affected.
- Version unspecified, <= 4.21.5 is affected.
- Before 3.18.3 is affected.
- Version 3.19.0 and below 3.19.5 is affected.
- Version 3.20.0 and below 3.20.2 is affected.
- Version 3.21.0 and below 3.21.6 is affected.
- Before 3.18.3 is affected.
- Version 3.19.0 and below 3.19.5 is affected.
- Version 3.20.0 and below 3.20.2 is affected.
- Version 4.0.0 and below 4.21.6 is affected.
Vulnerable Packages
The following package name and versions may be associated with CVE-2022-1941
| Package Manager | Vulnerable Package | Versions | Fixed In |
|---|---|---|---|
| pip | protobuf | >= 4.0.0, < 4.21.6 | 4.21.6 |
| pip | protobuf | >= 3.20.0, < 3.20.2 | 3.20.2 |
| pip | protobuf | >= 3.19.0, < 3.19.5 | 3.19.5 |
| pip | protobuf | < 3.18.3 | 3.18.3 |
Exploit Probability
EPSS (Exploit Prediction Scoring System) scores estimate the probability that a vulnerability will be exploited in the wild within the next 30 days. The percentile shows you how this score compares to all other vulnerabilities.