Advisory

GHSA-7gcm-g887-7qv7

Also known as: CVE-2026-0994, PYSEC-2026-1805

Summary

protobuf affected by a JSON recursion depth bypass

Details

A denial-of-service (DoS) vulnerability exists in google.protobuf.json_format.ParseDict() in Python, where the max_recursion_depth limit can be bypassed when parsing nested google.protobuf.Any messages.

Due to missing recursion depth accounting inside the internal Any-handling logic, an attacker can supply deeply nested Any structures that bypass the intended recursion limit, eventually exhausting Python’s recursion stack and causing a RecursionError.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2026-01-23 15:31 UTC
Modified
2026-09-10 03:50 UTC

Affected packages and fixes

protobuf

PyPI · All systems

Affected

  • introduced 6.30.0rc1, fixed 6.33.5 (ecosystem)

Fixed versions

6.33.5

Fix

  • Fixed version 6.33.5
    pip install --upgrade protobuf==6.33.5

protobuf

PyPI · All systems

Affected

  • introduced 0, fixed 5.29.6 (ecosystem)

Fixed versions

5.29.6

Fix

  • Fixed version 5.29.6
    pip install --upgrade protobuf==5.29.6

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences