Golang protojson.Unmarshal function infinite loop when unmarshaling certain forms of invalid JSON
Moderate severity
GitHub Reviewed
Published
Mar 6, 2024
to the GitHub Advisory Database
•
Updated Nov 7, 2024
Description
Published by the National Vulnerability Database
Mar 5, 2024
Published to the GitHub Advisory Database
Mar 6, 2024
Reviewed
Mar 13, 2024
Last updated
Nov 7, 2024
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