~ / search / GHSA-8r3f-844c-mc37

GHSA-8r3f-844c-mc37

Golang protojson.Unmarshal function infinite loop when unmarshaling certain forms of invalid JSON

Source: GitHub Advisory Database (reviewed) Moderate CVE-2024-24786

Packages

EcosystemPackageAffectedFixed in
Go google.golang.org/protobuf < 1.33.0 1.33.0
Go google.golang.org/protobuf/encoding/protojson < 1.33.0 1.33.0
Go google.golang.org/protobuf/internal/encoding/json < 1.33.0 1.33.0

Details

As written in the advisory (Markdown source, shown as plain text).

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.

References

External links from the advisory. They lead to third-party sites.