CVE-2024-24786
HIGH 7.5CVSS 3.1Golang protojson.Unmarshal function infinite loop when unmarshaling certain forms of invalid JSON
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.
- Published
- 5 Mar 2024
- Last modified
- 23 Nov 2026
- Assigned by
- security@golang.org
- NVD status
- Deferred
- Weakness
- CWE-835
- Also known as
- GHSA-8r3f-844c-mc37GO-2024-2611
- Sources
- NVDJSONOSV GHSA-8r3f-844c-mc37JSONOSV GO-2024-2611JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | 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 | |
| NVD | 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | Go | google.golang.org/protobuf | < 1.33.0 | 1.33.0 |
| OSV | Go | google.golang.org/protobuf/encoding/protojson | < 1.33.0 | 1.33.0 |
| OSV | Go | google.golang.org/protobuf/internal/encoding/json | < 1.33.0 | 1.33.0 |
References
- http://www.openwall.com/lists/oss-security/2024/03/08/4 · WEB
- https://go.dev/cl/569356 · WEB, FIX
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/JDMBHAVSDU2FBDZ45U3A2VLSM35OJ2HU/ · WEB
- https://pkg.go.dev/vuln/GO-2024-2611 · WEB
- https://security.netapp.com/advisory/ntap-20240517-0002/ · WEB
- 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
History
- 25 Nov 2026 20:55 UTC · NVD: first stored (published 5 Mar 2024)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 5 Mar 2024)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 6 Mar 2024)