Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. protobuf
  4. ›
  5. CVE-2025-4565

CVE-2025-4565: protobuf-python has a potential Denial of Service issue

June 16, 2025 (updated November 10, 2025)

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.

Reporter: Alexis Challande, Trail of Bits Ecosystem Security Team ecosystem@trailofbits.com

References

  • github.com/advisories/GHSA-8qvm-5x2c-j2w7
  • github.com/protocolbuffers/protobuf
  • github.com/protocolbuffers/protobuf/blob/main/python/google/protobuf/internal/decoder_test.py
  • github.com/protocolbuffers/protobuf/blob/main/python/google/protobuf/internal/message_test.py
  • github.com/protocolbuffers/protobuf/commit/17838beda2943d08b8a9d4df5b68f5f04f26d901
  • github.com/protocolbuffers/protobuf/security/advisories/GHSA-735f-pc8j-v9w8
  • github.com/protocolbuffers/protobuf/security/advisories/GHSA-8qvm-5x2c-j2w7
  • github.com/protocolbuffers/protobuf/tree/main/python
  • nvd.nist.gov/vuln/detail/CVE-2025-4565

Code Behaviors & Features

Detect and mitigate CVE-2025-4565 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 5.26.0rc1 before 5.29.5, all versions starting from 6.30.0rc1 before 6.31.1, all versions before 4.25.8

Fixed versions

  • 4.25.8
  • 5.29.5
  • 6.31.1

Solution

Upgrade to versions 4.25.8, 5.29.5, 6.31.1 or above.

Impact 5.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Learn more about CVSS

Weakness

  • CWE-674: Uncontrolled Recursion

Source file

pypi/protobuf/CVE-2025-4565.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:15:28 +0000.