{"id":"CVE-2025-4565","state":"PUBLISHED","title":"Unbounded recursion in Python Protobuf","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","publishedAt":"2025-06-16T14:50:40.906Z","updatedAt":"2025-06-16T15:39:18.263Z","severity":{"score":8.2,"label":"High","version":"4.0","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","source":"Google"},"assigner":"Google","products":["protocolbuffers Python-Protobuf"],"affected":[{"vendor":"protocolbuffers","product":"Python-Protobuf","packageName":"protobuf","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"4.25.8","versionType":"semver"},{"version":"0","status":"affected","lessThan":"5.29.5","versionType":"semver"},{"version":"0","status":"affected","lessThan":"6.31.1","versionType":"semver"}],"collectionURL":"https://github.com/protocolbuffers/protobuf/","programFiles":["python/google/protobuf/internal/decoder.py"],"repo":"https://github.com/protocolbuffers/protobuf/"},{"vendor":"protocolbuffers","product":"Python-Protobuf","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"4.25.8","versionType":"semver"},{"version":"0","status":"affected","lessThan":"5.29.5","versionType":"semver"},{"version":"0","status":"affected","lessThan":"6.31.1","versionType":"semver"}],"collectionURL":"https://pypi.org/project/protobuf/","repo":"https://pypi.org/project/protobuf/"}],"references":["https://github.com/protocolbuffers/protobuf/commit/17838beda2943d08b8a9d4df5b68f5f04f26d901"],"weaknesses":["CWE-674"],"ingestedAt":"2026-10-29T20:09:23.771Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/4xxx/CVE-2025-4565.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2025-4565","state":"PUBLISHED","datePublished":"2025-06-16T14:50:40.906Z","dateUpdated":"2025-06-16T15:39:18.263Z","assignerShortName":"Google","assignerOrgId":"14ed7db2-1595-443d-9d34-6215bf890778","dateReserved":"2025-05-12T05:48:12.941Z"},"containers":{"cna":{"title":"Unbounded recursion in Python Protobuf","descriptions":[{"lang":"en","value":"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":[{"vendor":"protocolbuffers","product":"Python-Protobuf","packageName":"protobuf","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"4.25.8","versionType":"semver"},{"version":"0","status":"affected","lessThan":"5.29.5","versionType":"semver"},{"version":"0","status":"affected","lessThan":"6.31.1","versionType":"semver"}],"collectionURL":"https://github.com/protocolbuffers/protobuf/","programFiles":["python/google/protobuf/internal/decoder.py"],"repo":"https://github.com/protocolbuffers/protobuf/"},{"vendor":"protocolbuffers","product":"Python-Protobuf","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"4.25.8","versionType":"semver"},{"version":"0","status":"affected","lessThan":"5.29.5","versionType":"semver"},{"version":"0","status":"affected","lessThan":"6.31.1","versionType":"semver"}],"collectionURL":"https://pypi.org/project/protobuf/","repo":"https://pypi.org/project/protobuf/"}],"references":[{"url":"https://github.com/protocolbuffers/protobuf/commit/17838beda2943d08b8a9d4df5b68f5f04f26d901"}],"metrics":[{"cvssV4_0":{"Automatable":"NOT_DEFINED","Recovery":"NOT_DEFINED","Safety":"NOT_DEFINED","attackComplexity":"LOW","attackRequirements":"PRESENT","attackVector":"NETWORK","baseScore":8.2,"baseSeverity":"HIGH","privilegesRequired":"NONE","providerUrgency":"NOT_DEFINED","subAvailabilityImpact":"NONE","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","userInteraction":"NONE","valueDensity":"NOT_DEFINED","vectorString":"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","version":"4.0","vulnAvailabilityImpact":"HIGH","vulnConfidentialityImpact":"NONE","vulnIntegrityImpact":"NONE","vulnerabilityResponseEffort":"NOT_DEFINED"},"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-674","description":"CWE-674 Uncontrolled Recursion","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"Google","orgId":"14ed7db2-1595-443d-9d34-6215bf890778","dateUpdated":"2025-06-16T14:50:40.906Z"},"credits":[{"lang":"en","type":"finder","value":"Alexis Challande - Trail of Bits Ecosystem Security Team"}],"datePublic":"2025-05-12T22:00:00.000Z","impacts":[{"capecId":"CAPEC-130","descriptions":[{"lang":"en","value":"CAPEC-130 Excessive Allocation"}]}],"source":{"discovery":"EXTERNAL"},"x_generator":{"engine":"Vulnogram 0.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2025-06-16T15:38:57.654894Z","id":"CVE-2025-4565","options":[{"Exploitation":"none"},{"Automatable":"yes"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-06-16T15:39:18.263Z"}}]}}}