cve.bz

CVE-2025-4565 google protobuf-python: Uncontrolled Recursion

8.2 highEPSS 0.3%Fix available

High (8.2) in google protobuf-python. EPSS 0.3% estimated probability of exploitation activity in the next 30 days. Fixed in protobuf 4.25.8, 5.29.5, 6.31.1.

On this page
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

Severity

CVSS 4.0

8.2 high
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

CVSS 3.1

5.3 medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
EPSS
0.3% (unchanged from 0.3% a week ago; 0.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 18th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: partial, assessed 2025-06-16. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-674 Uncontrolled Recursion
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2025-4565 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-4565?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-4565?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-4565 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
protocolbuffers Python-Protobufbefore 4.25.8
protocolbuffers Python-Protobufbefore 5.29.5
protocolbuffers Python-Protobufbefore 6.31.1

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-8qvm-5x2c-j2w7PyPIprotobuf<4.25.84.25.8
GHSA-8qvm-5x2c-j2w7PyPIprotobuf>=5.26.0rc1 <5.29.55.29.5
GHSA-8qvm-5x2c-j2w7PyPIprotobuf>=6.30.0rc1 <6.31.16.31.1
PYSEC-2026-1806PyPIprotobuf<4.25.8
>=5.26.0rc1 <5.29.5
>=6.30.0rc1 <6.31.1
4.25.8, 5.29.5, 6.31.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12protobuf3.21.12-3+deb12u1DEBIAN-CVE-2025-4565
Debian13protobuf3.21.12-11+deb13u1DEBIAN-CVE-2025-4565
Debian14protobuf3.21.12-12DEBIAN-CVE-2025-4565
Ubuntu22.04:LTSprotobuf3.12.4-1ubuntu7.22.04.4UBUNTU-CVE-2025-4565 USN-7629-1
Ubuntu24.04:LTSprotobuf3.21.12-8.2ubuntu0.2UBUNTU-CVE-2025-4565 USN-7629-1
UbuntuPro:14.04:LTSprotobufno fix listedUBUNTU-CVE-2025-4565
UbuntuPro:16.04:LTSprotobuf2.6.1-1.3ubuntu0.1~esm4UBUNTU-CVE-2025-4565 USN-7629-2
UbuntuPro:18.04:LTSprotobuf3.0.0-9.1ubuntu1.1+esm3UBUNTU-CVE-2025-4565 USN-7629-2
UbuntuPro:20.04:LTSprotobuf3.6.1.3-2ubuntu5.2+esm2UBUNTU-CVE-2025-4565 USN-7629-2
Red Hatansible_automation_platform:2.6::el9automation-controller-venv-tower0:4.7.8-1.el9apRHSA-2026:1249
Red Hatansible_automation_platform:2.6::el9python3.11-protobuf, python3.11-protobuf-debuginfo, python3.11-protobuf-debugsource0:4.25.8-1.el9apRHSA-2026:1249
Red Hatansible_automation_platform:2.6::el9, ansible_automation_platform_developer:2.6::el9python3.11-django0:4.2.27-2.el9apRHSA-2026:1249
Red Hatansible_automation_platform:2.6::el9, ansible_automation_platform_developer:2.6::el9python3.11-urllib30:2.6.3-1.el9apRHSA-2026:1249
Red Hatansible_automation_platform:2.6::el9, ansible_automation_platform_developer:2.6::el9, ansible_automation_platform_inside:2.6::el9receptor0:1.6.3-2.el9apRHSA-2026:1249
Red Hatansible_automation_platform:2.6::el10receptor0:1.6.3-2.el10apRHSA-2026:1249
SUSELinux Enterprise Micro 5.1, Linux Enterprise Micro 5.2, Linux Enterprise Micro 5.3 and 11 moreprotobuf3.9.2-150200.4.27.1SUSE-SU-2025:3722-1
SUSELinux Enterprise Micro 5.3, Linux Enterprise Micro 5.4, Linux Enterprise Module for Public Cloud 15 SP4 and 1 moreprotobuf25.1-150400.9.16.1SUSE-SU-2025:02309-1
SUSELinux Enterprise Micro 5.5, Linux Enterprise Module for Public Cloud 15 SP5protobuf25.1-150500.12.11.1SUSE-SU-2025:02310-1
SUSELinux Enterprise Module for Basesystem 15 SP6, Linux Enterprise Module for Basesystem 15 SP7, Linux Enterprise Module for Development Tools 15 SP6 and 4 moreprotobuf25.1-150600.16.13.1SUSE-SU-2025:02311-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0protobuf, protobuf-java28.3-160000.3.1SUSE-SU-2026:20907-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0python-protobuf5.28.3-160000.3.1SUSE-SU-2026:20907-1
SUSELinux Micro 6.0protobuf23.4-10.1SUSE-SU-2025:20514-1
SUSELinux Micro 6.1protobuf23.4-slfo.1.1_2.1SUSE-SU-2025:20672-1
SUSELinux Micro 6.2protobuf28.3-160000.3.1SUSE-SU-2026:20753-1
openSUSELeap 15.6protobuf25.1-150600.16.13.1SUSE-SU-2025:02311-1
openSUSELeap 16.0protobuf, protobuf-java28.3-160000.3.1openSUSE-SU-2026:20390-1
openSUSELeap 16.0python-protobuf5.28.3-160000.3.1openSUSE-SU-2026:20390-1
openSUSETumbleweedprotobuf31.1-1.1openSUSE-SU-2025:15265-1
Azure Linux2protobuf3.17.3-4AZL-64116
Azure Linux3protobuf25.3-5AZL-64145

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

The availability impact of this denial-of-service vulnerability is confined to applications that directly integrate the Protobuf package. Within the context of a Red Hat system, the host machine itself is not expected to be impacted, thereby limiting the scope of disruption to individual application instances rather than broader system instability.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

ProductPackageStateAdvisory
Red Hat Ansible Automation Platform 2.6 for RHEL 9python3.11-protobuf-0:4.25.8-1.el9apFixed 2026-01-26RHSA-2026:1249
Red Hat OpenShift Container Platform 4.19openshift4/ose-dpu-intel-ipu-vsp-rhel9:v4.19.0-202507081507.p0.gb4d5e23.assembly.stream.el9Fixed 2025-07-15RHSA-2025:10773
Red Hat Ansible Automation Platform 2.6ansible-automation-platform-26/gateway-rhel9:1772543959Fixed 2026-03-06RHSA-2026:3960
OpenShift Service Mesh 3openshift-service-mesh-dev-preview-beta/istio-ztunnel-rhel9Fix deferred
OpenShift Service Mesh 3openshift-service-mesh/istio-cni-rhel9Fix deferred
OpenShift Service Mesh 3openshift-service-mesh/istio-must-gather-rhel9Fix deferred
OpenShift Service Mesh 3openshift-service-mesh/istio-pilot-rhel9Fix deferred
OpenShift Service Mesh 3openshift-service-mesh/istio-proxyv2-rhel9Fix deferred
OpenShift Service Mesh 3openshift-service-mesh/istio-rhel9-operatorFix deferred
OpenShift Service Mesh 3openshift-service-mesh/istio-sail-operator-bundleFix deferred
Red Hat AI Inference Serverrhaiis/vllm-cuda-rhel9Fix deferred
Red Hat AI Inference Serverrhaiis/vllm-rocm-rhel9Fix deferred
Red Hat Ansible Automation Platform 2ansible-automation-platform-24/ee-dellemc-openmanage-rhel8Fix deferred
Red Hat Ansible Automation Platform 2ansible-automation-platform-24/ee-supported-rhel8Fix deferred
Red Hat Ansible Automation Platform 2ansible-automation-platform-24/ee-supported-rhel9Fix deferred
Red Hat Ansible Automation Platform 2ansible-automation-platform-24/lightspeed-rhel8Fix deferred
Red Hat Ansible Automation Platform 2ansible-automation-platform-24/platform-resource-runner-rhel8Fix deferred
Red Hat Ansible Automation Platform 2ansible-automation-platform-25/aap-cloud-metrics-collector-rhel8Fix deferred
Red Hat Ansible Automation Platform 2ansible-automation-platform-25/ansible-dev-tools-rhel8Fix deferred
Red Hat Ansible Automation Platform 2ansible-automation-platform-25/ee-supported-rhel8Fix deferred
71 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2025-4565.

Attack patterns (CAPEC)

  • CAPEC-230 Serialized Data with Nested Payloads Likelihood: Medium · Severity: High
  • CAPEC-231 Oversized Serialized Data Payloads Likelihood: Medium · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON