Infinite loop in JSON unmarshaling in google.golang.org/protobuf
Summary
| CVE | CVE-2024-24786 |
|---|---|
| State | PUBLISHED |
| Assigner | Go |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2024-03-05 23:15:07 UTC |
| Updated | 2026-09-23 14:17:06 UTC |
| 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. |
Risk And Classification
Primary CVSS: v3.1 7.5 HIGH from ADP
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS: 0.012620000 probability, percentile 0.683790000 (date 2026-09-23)
Problem Types: CWE-1286: Improper Validation of Syntactic Correctness of Input
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 3.1 | ADP | DECLARED | 7.5 | HIGH | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| 3.1 | 134c704f-9b21-4f2e-91b3-4a467353bcc0 | Secondary | 7.5 | HIGH | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
CVSS v3.1 Breakdown
Attack Vector
NetworkAttack Complexity
LowPrivileges Required
NoneUser Interaction
NoneScope
UnchangedConfidentiality
NoneIntegrity
NoneAvailability
HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | Google.golang.orgprotobuf | Google.golang.org/protobuf/encoding/protojson | affected 1.33.0 semver | Not specified |
| CNA | Google.golang.orgprotobuf | Google.golang.org/protobuf/internal/encoding/json | affected 1.33.0 semver | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| go.dev/cl/569356 | af854a3a-2127-422b-91ae-364da2661108 | go.dev | |
| www.openwall.com/lists/oss-security/2024/03/08/4 | af854a3a-2127-422b-91ae-364da2661108 | www.openwall.com | |
| pkg.go.dev/vuln/GO-2024-2611 | af854a3a-2127-422b-91ae-364da2661108 | pkg.go.dev | |
| security.netapp.com/advisory/ntap-20240517-0002 | af854a3a-2127-422b-91ae-364da2661108 | security.netapp.com | |
| lists.fedoraproject.org/archives/list/[email protected]/messag... | af854a3a-2127-422b-91ae-364da2661108 | lists.fedoraproject.org | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
Legacy QID Mappings
- 243139 Red Hat OpenShift Container Platform 4.13 Security Update (RHSA-2024:1456)
- 243141 Red Hat OpenShift Container Platform 4.14 Security Update (RHSA-2024:1461)
- 243158 Red Hat OpenShift Container Platform 4.15 Security Update (RHSA-2024:1563)
- 243169 Red Hat OpenShift Container Platform 4.12 Security Update (RHSA-2024:1574)
- 285390 Fedora Security Update for kubernetes (FEDORA-2024-5bae6c0ea7)
- 770237 Red Hat OpenShift Container Platform 4.14 Security Update (RHSA-2024:1461)
- 770238 Red Hat OpenShift Container Platform 4.13 Security Update (RHSA-2024:1456)
- 770239 Red Hat OpenShift Container Platform 4.15 Security Update (RHSA-2024:1563)
- 770240 Red Hat OpenShift Container Platform 4.12 Security Update (RHSA-2024:1574)
- 997706 GO (Go) Security Update for google.golang.org/protobuf (GHSA-8r3f-844c-mc37)