Skip to content

← Public intelligence

PyPI package

protobuf

Open actionable advisories and recorded vendor fixes. This public package view has no inventory attached and cannot establish whether your deployment is affected. A vendor fix never resolves your finding; verify your installed version and the source guidance.

Open advisories

5 actionable advisories, newest first. Withdrawn advisories and news are excluded. Coverage is partial.

  1. High, CVSS 8.2PyPIAmendedPublished

    protobuf affected by a JSON recursion depth bypass

    CVE-2026-0994 · GHSA-7gcm-g887-7qv7

    Affected
    • PyPI protobuf >= 6.30.0rc1, <= 6.33.4; < 5.29.6
    Fixed in
    5.29.66.33.5· Vendor fix available
    Issue
    A denial-of-service (DoS) vulnerability exists in google.protobuf.jsonformat.ParseDict() in Python, where the maxrecursiondepth limit can be bypassed when parsing nested google.protobuf.Any messages. Due to missing recursion depth accounting inside the internal Any-handling logic, an attacker can supply deeply nested Any structures that bypass the intended recursion limit, eventually exhausting Python’s recursion stack and causing a RecursionError.

    Recommended action: Upgrade to 6.33.5 or 5.29.6 by release line, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  2. High, CVSS 8.2PyPIAmendedPublished

    protobuf-python has a potential Denial of Service issue

    CVE-2025-4565 · GHSA-8qvm-5x2c-j2w7

    Affected
    • PyPI protobuf < 4.25.8; >= 5.26.0rc1, < 5.29.5; >= 6.30.0rc1, < 6.31.1
    Fixed in
    5.29.54.25.86.31.1· Vendor fix available
    Issue
    Any project that uses Protobuf pure-Python backend to parse untrusted Protocol Buffers data containing an arbitrary number of recursive groups, recursive messages or a series of SGROUP tags can be corrupted by exceeding the Python recursion limit. Reporter: Alexis Challande, Trail of Bits Ecosystem Security Team ecosystem@trailofbits.com Affected versions: This issue only affects the pure-Python implementation of protobuf-python backend. This is the implementation when PROTOCOLBUFFERSPYTHONIMPLEMENTATION=python environment variable is set or the default when protobuf is used from Bazel or pure-Python PyPi wheels. CPython PyPi wheels do not use pure-Python by default. This is a Python variant of a previous issue affecting protobuf-java. Severity This is a potential Denial of Service. Parsing nested protobuf data creates unbounded recursions that can be abused by an attacker. Proof of Concept For reproduction details, please refer to the unit tests decodertest.py and…

    Recommended action: Upgrade to 6.31.1, 5.29.5 or 4.25.8 by release line, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  3. High, CVSS 7.5PyPIAmendedPublished

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

    CVE-2022-1941 · GHSA-8gq9-2x98-w8hf

    Affected
    • PyPI protobuf < 3.18.3; >= 3.19.0, < 3.19.5; >= 3.20.0, < 3.20.2; >= 4.0.0, < 4.21.6
    Fixed in
    4.21.63.20.23.18.33.19.5· Vendor fix available
    Issue
    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: - protobuf-cpp (3.18.3, 3.19.5, 3.20.2, 3.21.6) -…

    Recommended action: Upgrade to 4.21.6, 3.20.2, 3.19.5 or 3.18.3 by release line, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  4. High, CVSS 8.7PyPIAmendedPublished

    protobuf susceptible to buffer overflow

    CVE-2015-5237 · GHSA-jwvw-v7c5-m82h

    Affected
    • PyPI protobuf < 3.4.0
    Fixed in
    3.4.0· Vendor fix available
    Issue
    protobuf allows remote authenticated attackers to cause a heap-based buffer overflow.

    Recommended action: Upgrade to 3.4.0 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  5. UnratedPyPIPublished

    PYSEC-2022-48

    CVE-2021-22570 · GHSA-77rm-9x9h-xj3g

    Affected
    • PyPI protobuf < 3.15.0
    Fixed in
    3.15.0· Vendor fix available
    Issue
    Nullptr dereference when a null char is present in a proto symbol. The symbol is parsed incorrectly, leading to an unchecked call into the proto file's name during generation of the resulting error message. Since the symbol is incorrectly parsed, the file is nullptr. We recommend upgrading to version 3.15.0 or greater.

    Recommended action: Upgrade to 3.15.0 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.devSource checked Evidence →