{
  "id": "CVE-2025-4565",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-4565",
  "published_at": "2025-06-16T14:50:40.906Z",
  "title": "Unbounded recursion in Python Protobuf",
  "vendor": "protocolbuffers",
  "product": "Python-Protobuf",
  "cvss": {
    "score": 8.2,
    "source": "cna",
    "vector": "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"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "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 =\u003e6.31.1 or beyond commit 17838beda2943d08b8a9d4df5b68f5f04f26d901",
  "cwe": "CWE-674",
  "cpes": [
    "cpe:2.3:a:google:protobuf-python:*:*:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 8.2,
    "nvd": 5.3
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "protocolbuffers",
        "product": "Python-Protobuf",
        "ranges": [
          "\u003c 4.25.8",
          "\u003c 5.29.5",
          "\u003c 6.31.1"
        ],
        "fixed_in": [
          "4.25.8",
          "5.29.5",
          "6.31.1"
        ]
      },
      {
        "vendor": "protocolbuffers",
        "product": "Python-Protobuf",
        "ranges": [
          "\u003c 4.25.8",
          "\u003c 5.29.5",
          "\u003c 6.31.1"
        ],
        "fixed_in": [
          "4.25.8",
          "5.29.5",
          "6.31.1"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Python-Protobuf to 4.25.8 or 5.29.5 or 6.31.1 or later.",
      "Upgrade Python-Protobuf to 4.25.8 or 5.29.5 or 6.31.1 or later."
    ],
    "references": [
      {
        "kind": "Patch",
        "url": "https://github.com/protocolbuffers/protobuf/commit/17838beda2943d08b8a9d4df5b68f5f04f26d901"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
