CVE-2025-4565High▾ Twilightprotobuf-python has a potential Denial of Service issue
▾ Twilight zone — High severity, or a signal on a lesser flaw
impact 41.3 · likelihood 0.1 · exploitation 0
Need a working PoC? Pro members can cast a request and our team develops one — it lands right here.
Exploit-prediction probability, daily snapshots since Jul 8.
Disclosure to exploitation, from the record and what we observed since indexing it.
Disclosed via OSV
0.3%
Last analysed / modified upstream
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 [email protected]
Affected versions: This issue only affects the pure-Python implementation of protobuf-python backend. This is the implementation when PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=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.
This is a potential Denial of Service. Parsing nested protobuf data creates unbounded recursions that can be abused by an attacker.
For reproduction details, please refer to the unit tests decoder_test.py and message_test
A mitigation is available now. Please update to the latest available versions of the following packages:
protobuf < 4.25.8protobuf >= 5.26.0rc1, < 5.29.5protobuf >= 6.30.0rc1, < 6.31.1Upgrade to a patched release:
protobuf 4.25.8protobuf 5.29.5protobuf 6.31.1Connected by shared product, vendor, weakness, or advisory.
CVE-2022-1941High· 7.5protobuf-cpp and protobuf-python have potential Denial of Service issue
CVE-2026-0994High· 7.5A denial-of-service (DoS) vulnerability exists in google.protobuf.json_format.ParseDict() in Python, where the max_recursion_depth limit can be bypassed when parsing nested google.protobuf.Any messages. Due to missing recursion depth ac…
CVE-2026-54451High· 8.2Elixir protobuf is a pure Elixir implementation of Google Protobuf