# CVE-2025-4565: Unbounded recursion in Python Protobuf

- Severity: High 8.2 (CVSS:4.0, scored by Google) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.26%, higher than 18% of CVEs (2026-12-01)
- Published: 2025-06-16T14:50:40.906Z
- Modified: 2026-09-10T03:50:25.255Z
- Also known as: GHSA-8qvm-5x2c-j2w7, PYSEC-2026-1806
- Weaknesses: CWE-674
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: Google

## 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

(As written by CVE List.)

## Affected

- protobuf: before 4.25.8; before 5.29.5; before 6.31.1
- protocolbuffers Python-Protobuf: before 4.25.8; before 5.29.5; before 6.31.1
- protobuf (PyPI): before 4.25.8; from 5.26.0rc1 before 5.29.5; from 6.30.0rc1 before 6.31.1
- google protobuf-python: before 4.25.8; from 5.26.0 before 5.29.5; from 6.30.0 before 6.31.1

## Every score

- Google: 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`
- GitHub: CVSS:4.0 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`
- NVD: 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`
- PyPA Advisory Database: CVSS:4.0 `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`

## References

- <https://github.com/protocolbuffers/protobuf/commit/17838beda2943d08b8a9d4df5b68f5f04f26d901> (patch, web)
- <https://github.com/protocolbuffers/protobuf/security/advisories/GHSA-735f-pc8j-v9w8> (web)
- <https://github.com/protocolbuffers/protobuf/security/advisories/GHSA-8qvm-5x2c-j2w7> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-4565> (advisory)
- <https://github.com/protocolbuffers/protobuf> (package)
- <https://github.com/protocolbuffers/protobuf/blob/main/python/google/protobuf/internal/decoder_test.py#L87-L98> (web)
- <https://github.com/protocolbuffers/protobuf/blob/main/python/google/protobuf/internal/message_test.py#L1436-L1478> (web)
- <https://github.com/protocolbuffers/protobuf/tree/main/python#implementation-backends> (web)
- <https://pypi.org/project/protobuf> (package)
- <https://github.com/advisories/GHSA-8qvm-5x2c-j2w7> (advisory)

## Sources

- CVE List: [CVE-2025-4565](https://www.cve.org/CVERecord?id=CVE-2025-4565), CVE Terms of Use, modified 2025-06-16
- GitHub Advisory Database: [GHSA-8qvm-5x2c-j2w7](https://github.com/advisories/GHSA-8qvm-5x2c-j2w7), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2025-4565](https://nvd.nist.gov/vuln/detail/CVE-2025-4565), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-1806](https://osv.dev/vulnerability/PYSEC-2026-1806), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2025-4565 · Whole record: https://cve.day/CVE-2025-4565.json · Rebuilt by cve.day 2026-11-25T22:58:59.250Z
