CVE-2025-4565
Unbounded recursion in Python Protobuf
Reported by google · Published June 16, 2025
protobuf is fixed in 6.31.1, 5.29.5 and 4.25.8 (PyPI)
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
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| protobuf | PyPI | 6.31.1, 5.29.5, 4.25.8 |
| protobuf | GitHub Packages | 6.31.1, 5.29.5, 4.25.8 |
| Python-Protobuf | PyPI | 6.31.1, 5.29.5, 4.25.8 |
| text-generation-inference | Chainguard | 3.3.6-r3 |
| nemo | Chainguard | 2.3.1-r4 |
| datadog-agent-fips | Chainguard | 7.67.0-r1 |
| datadog-agent | Wolfi | 7.67.0-r1 |
| request-1276 | Chainguard | 0.24.1-r1 |
| datadog-agent | Chainguard | 7.67.0-r1 |
| kserve | Wolfi | 0.15.2-r2 |
| grafana-oncall | Wolfi | 1.16.3-r0 |
| awx | Chainguard | 24.6.1-r9 |
5 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| protocolbuffers | Python-Protobuf | 0, 0, 0 |
| protocolbuffers | Python-Protobuf | 0, 0, 0 |
| chainguard | text-generation-inference | 0 |
| chainguard | nemo | 0 |
| PyPI | protobuf | 0, 6.30.0rc1, 5.26.0rc1 |
| chainguard | datadog-agent-fips | 0 |
| wolfi | datadog-agent | 0 |
| chainguard | request-1276 | 0 |
| chainguard | datadog-agent | 0 |
| wolfi | kserve | 0 |
| wolfi | grafana-oncall | 0 |
| chainguard | awx | 0 |
| chainguard | spamcheck | 0 |
| chainguard | grafana-oncall | 0 |
| protocolbuffers | Python-Protobuf | 0, 0, 0 |
| chainguard | kserve | 0 |
| chainguard | ghidra | 0 |
| protocolbuffers | Python-Protobuf | 0, 0, 0 |
Timeline
- Jun 16, 2025 CVE Published
- Jun 16, 2025 CVE Updated
- Jun 17, 2025 EPSS Score (30 in total, the first dated here)
- Jun 21, 2025 Coalition ESS Score (22 in total, the first dated here)
- Mar 9, 2026 Security Advisory (5 in total, the first dated here)
- Aug 10, 2026 Distribution Patch (4 in total, the first dated here)
- Nov 3, 2026 PoC Published
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-4565
vulnetix vdb fixes CVE-2025-4565
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-4565/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://nvd.nist.gov/vuln/detail/CVE-2025-4565 advisory
- https://github.com/advisories/GHSA-8qvm-5x2c-j2w7 advisory
- https://github.com/protocolbuffers/protobuf/security/advisories/GHSA-735f-pc8j-v9w8 url
- https://github.com/protocolbuffers/protobuf/security/advisories/GHSA-8qvm-5x2c-j2w7 url
- https://github.com/protocolbuffers/protobuf url
- https://github.com/protocolbuffers/protobuf/blob/main/python/google/protobuf/internal/decoder_test.py#L87-L98 url
- https://github.com/protocolbuffers/protobuf/blob/main/python/google/protobuf/internal/message_test.py#L1436-L1478 url
- https://github.com/protocolbuffers/protobuf/tree/main/python#implementation-backends url