Go Vulnerability Database
GO-2024-2611
Infinite loop in JSON unmarshaling in google.golang.org/protobuf
Details
The protojson.Unmarshal function can enter an infinite loop when unmarshaling certain forms of invalid JSON. This condition can occur when unmarshaling into a message which contains a google.protobuf.Any value, or when the UnmarshalOptions.DiscardUnknown option is set.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Go | google.golang.org/protobuf | All versions before 1.33.0 (fixed in 1.33.0) |