Unbounded recursion in Python Protobuf
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- Present
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Partial Red Hat: 3 fixed, 12 without a fix
Attack profile from CVSS 4.0 · CNA. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-674.
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
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| protocolbuffers | Python-Protobuf | before 4.25.8; before 5.29.5; before 6.31.1 | 4.25.8, 5.29.5, 6.31.1 | Patch available | CNA |
| protocolbuffers | Python-Protobuf | before 4.25.8; before 5.29.5; before 6.31.1 | 4.25.8, 5.29.5, 6.31.1 | Patch available | CNA |
| — | protobuf (PyPI) | before 4.25.8 | 4.25.8 | Patch available | GHSA-8qvm-5x2c-j2w7 |
| — | protobuf (PyPI) | 5.26.0rc1 to before 5.29.5 | 5.29.5 | Patch available | GHSA-8qvm-5x2c-j2w7 |
| — | protobuf (PyPI) | 6.30.0rc1 to before 6.31.1 | 6.31.1 | Patch available | GHSA-8qvm-5x2c-j2w7 |
- Python-Protobuf Vendorprotocolbuffers Affected before 4.25.8; before 5.29.5; before 6.31.1 Fixed in 4.25.8, 5.29.5, 6.31.1 Patch available CNA
- Python-Protobuf Vendorprotocolbuffers Affected before 4.25.8; before 5.29.5; before 6.31.1 Fixed in 4.25.8, 5.29.5, 6.31.1 Patch available CNA
- protobuf (PyPI) Vendor— Affected before 4.25.8 Fixed in 4.25.8 Patch available GHSA-8qvm-5x2c-j2w7
- protobuf (PyPI) Vendor— Affected 5.26.0rc1 to before 5.29.5 Fixed in 5.29.5 Patch available GHSA-8qvm-5x2c-j2w7
- protobuf (PyPI) Vendor— Affected 6.30.0rc1 to before 6.31.1 Fixed in 6.31.1 Patch available GHSA-8qvm-5x2c-j2w7
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:google:protobuf-python:*:*:*:*:*:*:*:* | before 4.25.8; 5.26.0 to before 5.29.5; 6.30.0 to before 6.31.1 | Vulnerable |
- cpe:2.3:a:google:protobuf-python:*:*:*:*:*:*:*:* Versions before 4.25.8; 5.26.0 to before 5.29.5; 6.30.0 to before 6.31.1 Vulnerable ·Google
Remediation
- Fix · CNA Python-Protobuf (protocolbuffers) Fixed in 4.25.8, 5.29.5, 6.31.1
- Fix · CNA Python-Protobuf (protocolbuffers) Fixed in 4.25.8, 5.29.5, 6.31.1
- Fix · GHSA-8qvm-5x2c-j2w7 protobuf (PyPI) Fixed in 4.25.8 Advisory →
- Fix · GHSA-8qvm-5x2c-j2w7 protobuf (PyPI) Fixed in 5.29.5 Advisory →
- Fix · GHSA-8qvm-5x2c-j2w7 protobuf (PyPI) Fixed in 6.31.1 Advisory →
Red Hat 3 advisories
- RHSA-2026:3960 Released 2026-03-06 · Red Hat rating ImportantRed Hat Ansible Automation Platform 2.6 Container Release Update
- Red Hat Ansible Automation Platform 2.6 registry.redhat.io/ansible-automation-platform-26/de-minimal-rhel9, registry.redhat.io/ansible-automation-platform-26/de-supported-rhel9, registry.redhat.io/ansible-automation-platform-26/ee-minimal-rhel9 +9
- RHSA-2026:1249 Released 2026-01-26 · Red Hat rating ImportantRed Hat Ansible Automation Platform 2.6 Product Security and Bug Fix Update
- Red Hat Ansible Automation Platform 2.6 for RHEL 10 receptor-1.6.3-2.el10ap
- Red Hat Ansible Automation Platform 2.6 for RHEL 9 automation-controller-venv-tower-4.7.8-1.el9ap, python3.11-django-4.2.27-2.el9ap, python3.11-protobuf-4.25.8-1.el9ap +2
- RHSA-2025:10773 Released 2025-07-15 · Red Hat rating ModerateOpenShift Container Platform 4.19.4 security and extras update
- Red Hat OpenShift Container Platform 4.19 openshift4/ose-dpu-intel-ipu-vsp-rhel9
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| OpenShift Service Mesh 3 | Affected | No fix yet: Fix deferred |
| Red Hat AI Inference Server | Affected | No fix yet: Fix deferred |
| Red Hat Ansible Automation Platform 2 | Affected | No fix yet: Fix deferred |
| Red Hat Enterprise Linux 10 | Affected | No fix yet: Fix deferred |
| Red Hat Enterprise Linux 7 | Affected | No fix yet: Fix deferred |
| Red Hat Enterprise Linux 8 | Affected | No fix yet: Fix deferred |
| Red Hat Enterprise Linux 9 | Affected | No fix yet: Fix deferred |
| Red Hat Enterprise Linux AI (RHEL AI) | Affected | No fix yet: Fix deferred |
| Red Hat OpenShift AI (RHOAI) | Affected | No fix yet: Fix deferred |
| Red Hat OpenShift Container Platform 4 | Affected | No fix planned: Will not fix |
| Red Hat OpenStack Platform 16.2 | Affected | No fix yet: Fix deferred |
| Red Hat Quay 3 | Affected | No fix yet: Fix deferred |
| Red Hat Ansible Automation Platform 2.6 | Fixed | RHSA-2026:3960 |
| Red Hat Ansible Automation Platform 2.6 for RHEL 9 | Fixed | RHSA-2026:1249 |
| Red Hat OpenShift Container Platform 4.19 | Fixed | RHSA-2025:10773 |
Not affected: 4 products
- Red Hat Ansible Automation Platform 2.6
- Red Hat Ansible Automation Platform 2.6 for RHEL 10
- Red Hat Ansible Automation Platform 2.6 for RHEL 9
- Red Hat OpenShift Container Platform 4.19
Timeline
- 2026-10-02 Threatist record created from CVE-2025-4565
- 2026-10-03 Alias added: GHSA-8qvm-5x2c-j2w7
References
Other 6
- https://github.com/protocolbuffers/protobuf/security/advisories/GHSA-735f-pc8j-v9w8
- https://github.com/protocolbuffers/protobuf/security/advisories/GHSA-8qvm-5x2c-j2w7
- https://github.com/protocolbuffers/protobuf
- https://github.com/protocolbuffers/protobuf/blob/main/python/google/protobuf/internal/decoder_test.py#L87-L98
- https://github.com/protocolbuffers/protobuf/blob/main/python/google/protobuf/internal/message_test.py#L1436-L1478
- https://github.com/protocolbuffers/protobuf/tree/main/python#implementation-backends
More protocolbuffers vulnerabilities
- TI-2026-05625 Denial of Service (DoS) vulnerability exists in the Protobuf PHP library during the parsing of untrusted input CVSS 4.0HIGH 7.1
Sources
- CVE-2025-4565 · CVE Program
- CVE-2025-4565 · NVD
- FIRST EPSS
- GHSA-8qvm-5x2c-j2w7 · GitHub Advisory Database · CC BY 4.0
- CVE-2025-4565 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences