Live threats

All CVEs / google.golang.org/protobuf

CVE-2024-24786google.golang.org/protobuf/encoding/protojson

High 7.5 No auth needed

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for google.golang.org/protobuf/encoding/protojson.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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

As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.

Official advisories

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.