Ecosyste.ms: Advisories

An open API service providing security vulnerability metadata for many open source software ecosystems.

Security Advisories: GSA_kwCzR0hTQS04Z3E5LTJ4OTgtdzhoZs4AAvAb

protobuf-cpp and protobuf-python have potential Denial of Service issue

Summary

A message parsing and memory management vulnerability in ProtocolBuffer’s C++ and Python implementations can trigger an out of memory (OOM) failure when processing a specially crafted message, which could lead to a denial of service (DoS) on services using the libraries.

Reporter: ClusterFuzz

Affected versions: All versions of C++ Protobufs (including Python) prior to the versions listed below.

Severity & Impact

As scored by google
Medium 5.7 - CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Asscored byt NIST
High 7.5 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

A small (~500 KB) malicious payload can be constructed which causes the running service to allocate more than 3GB of RAM.

Proof of Concept

For reproduction details, please refer to the unit test that identifies the specific inputs that exercise this parsing weakness.

Mitigation / Patching

Please update to the latest available versions of the following packages:

Permalink: https://github.com/advisories/GHSA-8gq9-2x98-w8hf
JSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS04Z3E5LTJ4OTgtdzhoZs4AAvAb
Source: GitHub Advisory Database
Origin: Unspecified
Severity: High
Classification: General
Published: about 2 years ago
Updated: 5 months ago


CVSS Score: 7.5
CVSS vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

EPSS Percentage: 0.00326
EPSS Percentile: 0.71504

Identifiers: GHSA-8gq9-2x98-w8hf, CVE-2022-1941
References: Repository: https://github.com/protocolbuffers/protobuf
Blast Radius: 37.7

Affected Packages

pypi:protobuf
Dependent packages: 3,080
Dependent repositories: 107,822
Downloads: 243,142,595 last month
Affected Version Ranges: >= 4.0.0, < 4.21.6, >= 3.20.0, < 3.20.2, >= 3.19.0, < 3.19.5, < 3.18.3
Fixed in: 4.21.6, 3.20.2, 3.19.5, 3.18.3
All affected versions: 2.0.3, 2.3.0, 2.4.1, 2.5.0, 2.6.0, 2.6.1, 3.0.0, 3.1.0, 3.2.0, 3.3.0, 3.4.0, 3.5.1, 3.5.2, 3.6.0, 3.6.1, 3.7.0, 3.7.1, 3.8.0, 3.9.0, 3.9.1, 3.9.2, 3.10.0, 3.11.0, 3.11.1, 3.11.2, 3.11.3, 3.12.0, 3.12.1, 3.12.2, 3.12.4, 3.13.0, 3.14.0, 3.15.0, 3.15.1, 3.15.2, 3.15.3, 3.15.4, 3.15.5, 3.15.6, 3.15.7, 3.15.8, 3.16.0, 3.17.0, 3.17.1, 3.17.2, 3.17.3, 3.18.0, 3.18.1, 3.19.0, 3.19.1, 3.19.2, 3.19.3, 3.19.4, 3.20.0, 3.20.1, 4.21.0, 4.21.1, 4.21.2, 4.21.3, 4.21.4, 4.21.5
All unaffected versions: 3.18.3, 3.19.5, 3.19.6, 3.20.2, 3.20.3, 4.21.6, 4.21.7, 4.21.8, 4.21.9, 4.21.10, 4.21.11, 4.21.12, 4.22.0, 4.22.1, 4.22.3, 4.22.4, 4.22.5, 4.23.0, 4.23.1, 4.23.2, 4.23.3, 4.23.4, 4.24.0, 4.24.1, 4.24.2, 4.24.3, 4.24.4, 4.25.0, 4.25.1, 4.25.2, 4.25.3, 4.25.4, 4.25.5, 5.26.0, 5.26.1, 5.27.0, 5.27.1, 5.27.2, 5.27.3, 5.27.4, 5.27.5, 5.28.0, 5.28.1, 5.28.2, 5.28.3, 5.29.0, 5.29.1