{"id":"CVE-2024-24786","published":"2024-03-05T22:22:35Z","modified":"2026-09-23T13:51:15Z","title":"Infinite loop in JSON unmarshaling in google.golang.org/protobuf","vendor":"google.golang.org/protobuf","product":"google.golang.org/protobuf/encoding/protojson","tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.01262,"percentile":0.70356,"provenance":"source"},"cwes":[],"references":[{"url":"https://go.dev/cl/569356","tags":[]},{"url":"https://pkg.go.dev/vuln/GO-2024-2611","tags":[]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/JDMBHAVSDU2FBDZ45U3A2VLSM35OJ2HU/","tags":[]},{"url":"http://www.openwall.com/lists/oss-security/2024/03/08/4","tags":[]},{"url":"https://security.netapp.com/advisory/ntap-20240517-0002/","tags":[]}],"priority":{"score":19.3,"factors":[{"name":"EPSS percentile","points":14.07},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"google-golang-org-protobuf","affectedVersions":[{"vendor":"google.golang.org/protobuf","product":"google.golang.org/protobuf/encoding/protojson","versions":["< 1.33.0"]},{"vendor":"google.golang.org/protobuf","product":"google.golang.org/protobuf/internal/encoding/json","versions":["< 1.33.0"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2024-11-07T16:22:27.828054Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"google.golang.org/protobuf","vulnerableRanges":["<1.33.0"],"patched":["1.33.0"],"from":["GHSA-8r3f-844c-mc37","GO-2024-2611"],"provenance":"source"},{"ecosystem":"Go","package":"google.golang.org/protobuf/encoding/protojson","vulnerableRanges":["<1.33.0"],"patched":["1.33.0"],"from":["GHSA-8r3f-844c-mc37"],"provenance":"source"},{"ecosystem":"Go","package":"google.golang.org/protobuf/internal/encoding/json","vulnerableRanges":["<1.33.0"],"patched":["1.33.0"],"from":["GHSA-8r3f-844c-mc37"],"provenance":"source"}],"summary":{"text":"The infinite loop flaw lives in the protojson.Unmarshal function of google.golang.org/protobuf, where it can hang when processing certain malformed JSON. An attacker with network access can trigger it without authentication or user interaction by sending such input, provided the target unmarshals into a message containing a google.protobuf.Any value or has the UnmarshalOptions.DiscardUnknown option enabled, causing a denial of service.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:17:16Z"},"euvd":{"id":"EUVD-2024-0879","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2023-24535","published":"2023-06-08","fixed":"1.29.1","kev":false,"link":{"from":"CVE-2023-24535","to":"CVE-2024-24786","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:google.golang.org/protobuf","fromFixed":"1.29.1","toFixed":"1.33.0","daysApart":271}]}},{"cve":"CVE-2024-24786","published":"2024-03-05","fixed":"1.33.0","kev":false}],"package":"Go:google.golang.org/protobuf"}}