Advisory

PYSEC-2026-1805

Also known as: CVE-2026-0994, GHSA-7gcm-g887-7qv7

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

Not rated by the source.

Dates

Published
2026-07-07 16:03 UTC
Modified
2026-07-07 17:48 UTC

Affected packages and fixes

protobuf

PyPI · All systems

Affected

  • introduced 0, fixed 5.29.6, introduced 6.30.0rc1, fixed 6.33.5 (ecosystem)

Fixed versions

5.29.6, 6.33.5

Fix

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

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: PyPA Advisory Database · CC BY 4.0

Sources & licences