What’s Vulnerable › Vulnerabilities
CVE-2024-24786: Infinite loop in JSON unmarshaling in google.golang.org/protobuf
- Severity: high (CVSS 7.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 1.3% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2024-03-05 · updated 2026-09-23
Description
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.
Affected products
- google.golang.org/protobuf/encoding/protojson: before 1.33.0 — fixed in 1.33.0
- google.golang.org/protobuf/internal/encoding/json: before 1.33.0 — fixed in 1.33.0
How to fix
Upgrade to a fixed version: google.golang.org/protobuf/encoding/protojson 1.33.0; google.golang.org/protobuf/internal/encoding/json 1.33.0. Check the vendor advisory for mitigations.
References
- http://www.openwall.com/lists/oss-security/2024/03/08/4
- https://go.dev/cl/569356
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/JDMBHAVSDU2FBDZ45U3A2VLSM35OJ2HU/
- https://pkg.go.dev/vuln/GO-2024-2611
- https://security.netapp.com/advisory/ntap-20240517-0002/
- http://www.openwall.com/lists/oss-security/2024/03/08/4
- https://go.dev/cl/569356
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/JDMBHAVSDU2FBDZ45U3A2VLSM35OJ2HU/
- https://pkg.go.dev/vuln/GO-2024-2611
- https://security.netapp.com/advisory/ntap-20240517-0002/
Get alerted when CVE-2024-24786 or the next vulnerability affects your stack