# CVE-2024-24786: Infinite loop in JSON unmarshaling in google.golang.org/protobuf

- Severity: High 7.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.26%, higher than 70% of CVEs (2026-12-01)
- Published: 2024-03-05T20:24:05.000Z
- Modified: 2026-11-23T21:12:30.023Z
- Also known as: GHSA-8r3f-844c-mc37, GO-2024-2611
- Related: RHSA-2024:0043, RHSA-2024:0045, RHSA-2024:1456, RHSA-2024:1461, RHSA-2024:1563, RHSA-2024:1574, RHSA-2024:1874, RHSA-2024:2548, RHSA-2024:2549, RHSA-2024:2550, RHSA-2024:3254, RHSA-2024:3634, RHSA-2024:3635, RHSA-2024:3636, RHSA-2024:3715, RHSA-2024:4246, RHSA-2024:4597, RHSA-2026:72489, RHSA-2026:72493, RHSA-2026:72496, RHSA-2026:72570, RHSA-2026:76430, RHSA-2026:76448, RHSA-2026:76677, RHSA-2026:76876, RHSA-2026:77895, RHSA-2026:80632, RHSA-2026:80634, RHSA-2026:80637, RHSA-2026:80643, RHSA-2026:80646, RHSA-2026:80647, RHSA-2026:80649, RHSA-2026:80650, RHSA-2026:80651, RHSA-2026:80652, RHSA-2026:80653, RHSA-2026:80654, RHSA-2026:80656, RHSA-2026:80657, RHSA-2026:80658, RHSA-2026:80659, RHSA-2026:80660, RHSA-2026:80661, RHSA-2026:80666, RHSA-2026:80668, RHSA-2026:80670, RHSA-2026:80671, RHSA-2026:80672, RHSA-2026:80673, RHSA-2026:80676, RHSA-2026:80677, RHSA-2026:80682, RHSA-2026:80683, RHSA-2026:80686, RHSA-2026:80693
- Weaknesses: CWE-835, CWE-1286
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: Go

## 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.

(As written by CVE List.)

## Affected

- google.golang.org/protobuf/encoding/protojson: before 1.33.0
- google.golang.org/protobuf/internal/encoding/json: before 1.33.0
- google.golang.org/protobuf (Go): before 1.33.0
- google.golang.org/protobuf/encoding/protojson (Go): before 1.33.0
- google.golang.org/protobuf/internal/encoding/json (Go): before 1.33.0

## Every score

- CISA-ADP: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 7.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:U`

## References

- <https://go.dev/cl/569356> (fix, web)
- <https://pkg.go.dev/vuln/GO-2024-2611> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/JDMBHAVSDU2FBDZ45U3A2VLSM35OJ2HU/>
- <http://www.openwall.com/lists/oss-security/2024/03/08/4> (web)
- <https://security.netapp.com/advisory/ntap-20240517-0002/>
- <https://nvd.nist.gov/vuln/detail/CVE-2024-24786> (advisory)
- <https://github.com/protocolbuffers/protobuf-go/commit/f01a588e5810b90996452eec4a28f22a0afae023> (web)
- <https://github.com/protocolbuffers/protobuf-go> (package)
- <https://github.com/protocolbuffers/protobuf-go/releases/tag/v1.33.0> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/JDMBHAVSDU2FBDZ45U3A2VLSM35OJ2HU> (web)
- <https://security.netapp.com/advisory/ntap-20240517-0002> (web)

## Sources

- CVE List: [CVE-2024-24786](https://www.cve.org/CVERecord?id=CVE-2024-24786), CVE Terms of Use, modified 2026-09-23
- GitHub Advisory Database: [GHSA-8r3f-844c-mc37](https://github.com/advisories/GHSA-8r3f-844c-mc37), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2024-2611](https://pkg.go.dev/vuln/GO-2024-2611), CC-BY-4.0, modified 2026-11-23
- NVD: [CVE-2024-24786](https://nvd.nist.gov/vuln/detail/CVE-2024-24786), Public domain, modified 2026-09-23

---

Page: https://cve.day/CVE-2024-24786 · Whole record: https://cve.day/CVE-2024-24786.json · Rebuilt by cve.day 2026-11-25T22:58:37.287Z
