GHSA-8r3f-844c-mc37
Golang protojson.Unmarshal function infinite loop when unmarshaling certain forms of invalid JSON
At a glance
- Published
- Updated
- CVE
- CVE-2024-24786
- Aliases
- GO-2024-2611
- CVSS_V3
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- CVSS_V4
- 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
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.
Affected packages
| Package | Versions |
|---|---|
| Go · google.golang.org/protobuf | introduced 0, fixed 1.33.0 |
| Go · google.golang.org/protobuf/encoding/protojson | introduced 0, fixed 1.33.0 |
| Go · google.golang.org/protobuf/internal/encoding/json | introduced 0, fixed 1.33.0 |
References
- 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://go.dev/cl/569356 WEB
- 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
- http://www.openwall.com/lists/oss-security/2024/03/08/4 WEB
Sources
| Source | Licence |
|---|---|
| OSV.dev | CC-BY 4.0 — GitHub Advisory Database |