Medium, CVSS 6.6GoPublished
Golang protojson.Unmarshal function infinite loop when unmarshaling certain forms of invalid JSON
CVE-2024-24786 · GHSA-8r3f-844c-mc37
- Affected
- Go google.golang.org/protobuf/internal/encoding/json < 1.33.0
- Fixed in
- 1.33.0· Vendor fix available
- Issue
- 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.
Recommended action: Upgrade to 1.33.0 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.