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.
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.
Name | Vendor | Start Version | End Version |
---|---|---|---|
Protobuf-cpp | * | 3.18.3 (excluding) | |
Protobuf-cpp | 3.19.0 (including) | 3.19.5 (excluding) | |
Protobuf-cpp | 3.20.0 (including) | 3.20.2 (excluding) | |
Protobuf-cpp | 3.21.0 (including) | 3.21.6 (excluding) | |
Protobuf-python | * | 3.18.3 (excluding) | |
Protobuf-python | 3.19.0 (including) | 3.19.5 (excluding) | |
Protobuf-python | 3.20.0 (including) | 3.20.2 (excluding) | |
Protobuf-python | 4.0.0 (including) | 4.21.6 (excluding) | |
Protobuf | Ubuntu | bionic | * |
Protobuf | Ubuntu | esm-infra-legacy/trusty | * |
Protobuf | Ubuntu | esm-infra/xenial | * |
Protobuf | Ubuntu | focal | * |
Protobuf | Ubuntu | jammy | * |
Protobuf | Ubuntu | kinetic | * |
Protobuf | Ubuntu | trusty | * |
Protobuf | Ubuntu | trusty/esm | * |
Protobuf | Ubuntu | xenial | * |
Often, complex inputs are expected to follow a particular syntax, which is either assumed by the input itself, or declared within metadata such as headers. The syntax could be for data exchange formats, markup languages, or even programming languages. When untrusted input is not properly validated for the expected syntax, attackers could cause parsing failures, trigger unexpected errors, or expose latent vulnerabilities that might not be directly exploitable if the input had conformed to the syntax.