All CVEs / google.golang.org/protobuf
CVE-2024-24786google.golang.org/protobuf/encoding/protojson
High 7.5 No auth needed
Follow: this CVE · google.golang.org/protobuf · google.golang.org/protobuf/encoding/protojson We alert you by email or Slack (account required).
- Priority
- 60
- CVSS 3.1
- 7.5
- EPSS
- 1.4% probability of exploitation in 30 days · percentile 73
- Auth required
- No
- Published
- Mar 5, 2024
- Updated
- Sep 23, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: none · Automatable: yes · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
What happens
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.
What to do
- Apply the vendor's security update for google.golang.org/protobuf/encoding/protojson.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Go | google.golang.org/protobuf |
< 1.33.0 |
1.33.0 |
go get google.golang.org/protobuf@v1.33.0 |
| Go | google.golang.org/protobuf |
< 1.33.0 |
1.33.0 |
go get google.golang.org/protobuf@v1.33.0 |
| Go | google.golang.org/protobuf/encoding/protojson |
< 1.33.0 |
1.33.0 |
go get google.golang.org/protobuf/encoding/protojson@v1.33.0 |
| Go | google.golang.org/protobuf/internal/encoding/json |
< 1.33.0 |
1.33.0 |
go get google.golang.org/protobuf/internal/encoding/json@v1.33.0 |
Per OSV / GitHub Advisories (GHSA-8r3f-844c-mc37, GO-2024-2611). Check the version in your lockfile before upgrading.
Affected products
- google.golang.org/protobuf · google.golang.org/protobuf/encoding/protojson
- google.golang.org/protobuf · google.golang.org/protobuf/internal/encoding/json
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official advisories
- Red Hat Security Advisory: Red Hat Hardened Images RPMs Security Update · Red Hat · RHSA-2026:72570 · Nov 23, 2026 High
- Red Hat Security Advisory: Red Hat Hardened Images RPMs Security Update · Red Hat · RHSA-2026:72493 · Nov 23, 2026 High
- Red Hat Security Advisory: Red Hat Hardened Images RPMs Security Update · Red Hat · RHSA-2026:72496 · Nov 23, 2026 High
Also: Red Hat (+53)
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.