CVE-2025-4565: protocolbuffers Python-Protobuf · Uncontrolled Recursion
Affects protocolbuffers Python-ProtobufSource CVE Database V5
Not known to be exploited · CVSS 8.2 High : upgrade to 6.31.1 soon.
Data as of 26 Oct 2026, 08:30 UTC
- EPSS
- 0.2% chance of exploitation in 30 days – higher than 16% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 6.31.1
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 16 Jun 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
Upgrade protobuf to 6.31.1.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
PyPIprotobufpkg:pypi/protobufOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
1. Upgrade Python-Protobuf to version 6.31.1 or later, which contains the fix for this uncontrolled recursion vulnerability. 2. Audit all Python applications and services that use the Pure-Python backend of Python-Protobuf to identify and prioritize patching. 3. Implement input validation and filtering on Protocol Buffers data received from untrusted sources to limit recursion depth or reject suspiciously nested data structures before parsing. 4. Employ runtime monitoring and alerting for RecursionError exceptions or abnormal application crashes related to Protocol Buffers parsing. 5. Where feasible, switch from the Pure-Python backend to the C++ backend of Python-Protobuf, which is less likely to be affected by this recursion issue due to different parsing implementations. 6. Use network-level protections such as Web Application Firewalls (WAFs) or Intrusion Detection Systems (IDS) to detect and block anomalous Protocol Buffers payloads exhibiting recursive patterns. 7. Conduct regular security testing including fuzzing of Protocol Buffers inputs to identify similar parsing vulnerabilities proactively.
Description
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