CVE-2024-24786Infinite loop in JSON unmarshaling in google.golang.org/protobuf
- 7.5HighCVSS base score
- 1.3%Exploitation in 30 daysEPSS · top 30% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
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.
Timeline
ID reserved
By Go
- 35 days later
· 35 days later
Published
- 3 years later
· 3 years later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| CISA-ADPADP (enrichment) | 3.1 | High7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVDNVD · Deferred | 3.1 | High7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
- EPSS (exploitation in 30 days)
- 1.3% · top 30% of all CVEs (14 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: yes · Technical impact: partial
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 7.5.
Affected products
google.golang.org/protobuf · google.golang.org/protobuf/encoding/protojson
- affected < 1.33.0
google.golang.org/protobuf · google.golang.org/protobuf/internal/encoding/json
- affected < 1.33.0
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- Gogoogle.golang.org/protobufGHSA-8r3f-844c-mc37 (opens in a new tab)
- Gogoogle.golang.org/protobuf/encoding/protojsonGHSA-8r3f-844c-mc37 (opens in a new tab)
- Gogoogle.golang.org/protobuf/internal/encoding/jsonGHSA-8r3f-844c-mc37 (opens in a new tab)
References
References5
- https://go.dev/cl/569356 (opens in a new tab)x_transferred
- https://pkg.go.dev/vuln/GO-2024-2611 (opens in a new tab)x_transferred
- https://lists.fedoraproject.org/archives/list/[email protected]/message/JDMBHAVSDU2FBDZ45U3A2VLSM35OJ2HU/ (opens in a new tab)x_transferred
- http://www.openwall.com/lists/oss-security/2024/03/08/4 (opens in a new tab)x_transferred
- https://security.netapp.com/advisory/ntap-20240517-0002/ (opens in a new tab)x_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2024-0879 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-8r3f-844c-mc37 (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2024-24786)Record last updated .