CVE-2025-4565
Unbounded recursion in Python Protobuf
Also known as GHSA-8qvm-5x2c-j2w7, PYSEC-2026-1806
Mitigation
- Upgrade protobuf to one of 4.25.8, 5.29.5, 6.31.1 (or later in the same release line).
Who should check
- Projects that depend on PyPI package protobuf (< 4.25.8)
- Anyone running protocolbuffers Python-Protobuf < 4.25.8; < 5.29.5; < 6.31.1
Vulnerability facts
- Affected
- protobuf < 4.25.8
- Fixed in
- 4.25.8, 5.29.5, 6.31.1
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 8.2 (v4.0, CNA)CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:NOpen in CVSS calculator
Show all 11 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Attack requirements: Present
- Privileges required: None
- User interaction: None
- Confidentiality impact: None
- Integrity impact: None
- Availability impact: High
- Confidentiality impact on other systems: None
- Integrity impact on other systems: None
- Availability impact on other systems: None
- EPSS
- 0.28% chance of exploitation in 30 days (percentile 13, 2026-11-26)
- CWE
- CWE-674
- Modified
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
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| PyPI protobuf | < 4.25.8 | 4.25.8, 5.29.5, 6.31.1 | osv |
| protocolbuffers Python-Protobuf | < 4.25.8; < 5.29.5; < 6.31.1 | — | cvelist |
| protocolbuffers Python-Protobuf | < 4.25.8; < 5.29.5; < 6.31.1 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2025-4565. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2025-4565.md Affected: protobuf < 4.25.8 Fixed in: 4.25.8, 5.29.5, 6.31.1 Steps: 1. Search this machine and project for protobuf (PyPI), protocolbuffers Python-Protobuf: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
Other
- 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
- https://pypi.org/project/protobuf
FAQ
Is CVE-2025-4565 being exploited?
There is no confirmed exploitation: CVE-2025-4565 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.28% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2025-4565?
High: CVSS 8.2 (v4.0, scored by CNA). Remote, no login needed.
Which versions are affected by CVE-2025-4565?
protobuf < 4.25.8.
Is there a fix for CVE-2025-4565?
Yes. Fixed in 4.25.8, 5.29.5, 6.31.1. Upgrade protobuf to one of 4.25.8, 5.29.5, 6.31.1 (or later in the same release line).
How do I check if I'm affected by CVE-2025-4565?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.