Lucene search

K
githubGitHub Advisory DatabaseGHSA-8R3F-844C-MC37
HistoryMar 06, 2024 - 12:31 a.m.

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

2024-03-0600:31:27
CWE-835
GitHub Advisory Database
github.com
15
golang
protojson
unmarshal
infinite loop
invalid json
unmarshaloptions
discardunknown
software

6.7 Medium

AI Score

Confidence

Low

0.0004 Low

EPSS

Percentile

14.8%

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.