Skip to main content
← All vulnerabilities
CVE-2025-4565PYSEC-2026-1806GHSA-8QVM-5X2C-J2W7

Unbounded recursion in Python Protobuf

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 4.25.8, 5.29.5, 6.31.1
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: yes
  • Technical impact: partial

Summary

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. This can result in a Denial of service by crashing the application with a RecursionError. We recommend upgrading to version =>6.31.1 or beyond commit 17838beda2943d08b8a9d4df5b68f5f04f26d901

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: yes · Technical impact: partial

  3. Record last updated

Affected versions

  • protobuf

    fixed in 4.25.8; fixed in 5.29.5; fixed in 6.31.1

  • protocolbuffers Python-Protobuf

    fixed in 4.25.8; fixed in 5.29.5; fixed in 6.31.1

  • protobufPyPI

    fixed in 4.25.8; From 5.26.0rc1 · fixed in 5.29.5; From 6.30.0rc1 · fixed in 6.31.1

  • protobufPyPI

    fixed in 4.25.8

  • protobufPyPI

    From 5.26.0rc1 · fixed in 5.29.5

  • protobufPyPI

    From 6.30.0rc1 · fixed in 6.31.1

References 1

GitHub · protocolbuffers/protobuf