CVE-2024-24786
Infinite loop in JSON unmarshaling in google.golang.org/protobuf
- State
- Published
- Severity
- 7.5 High
- Published
- Mar 5, 2024
- Updated
- Sep 23, 2026
- Reserved
- Jan 30, 2024
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.
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 3.1 | 7.5 High | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H | CISA-ADP |
Weaknesses
The record names no weakness.
Affected Products
| Product | Versions |
|---|---|
google.golang.org/protobuf/encoding/protojsongoogle.golang.org/protobuf |
|
google.golang.org/protobuf/internal/encoding/jsongoogle.golang.org/protobuf |
|
References
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.