CVEfocus › CVE database › CVE-2024-24786

CVE-2024-24786Infinite loop in JSON unmarshaling in google.golang.org/protobuf

CVSS 7.5 HighEPSS 1.4% (higher than 73% of CVEs)Published 2024-03-05Updated 2026-09-23Assigner: Go

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

Fixed builds are available from AlmaLinux, Alpine, Debian, Go, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.

Debian, Red Hat, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

125Fixed
9Fix pending
3Under investigation
15Will not fix
57Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10golang-google-protobufFix pendingUBUNTU-CVE-2024-24786
Ubuntu 26.04golang-google-protobufUnder investigationUBUNTU-CVE-2024-24786
Ubuntu 25.10golang-google-protobufWill not fix
This has been fixed in the (20240716.00-0ubuntu1~20.04.0) package for focal, but has not been copied over to the -security pocket yet.
UBUNTU-CVE-2024-24786
Ubuntu 24.04golang-google-protobufUnder investigationUBUNTU-CVE-2024-24786
Ubuntu 24.04google-guest-agentFixed20240213.00-0ubuntu3.1UBUNTU-CVE-2024-24786
Ubuntu 24.04google-osconfig-agentFixed20240320.00-0ubuntu1~24.04.1UBUNTU-CVE-2024-24786
Ubuntu 22.04golang-google-protobufUnder investigationUBUNTU-CVE-2024-24786
Ubuntu 22.04google-guest-agentFixed20231004.02-0ubuntu1~22.04.4UBUNTU-CVE-2024-24786
Ubuntu 22.04google-osconfig-agentFixed20230504.00-0ubuntu1~22.04.1UBUNTU-CVE-2024-24786
Ubuntu 20.04google-osconfig-agentFix pendingUBUNTU-CVE-2024-24786
Ubuntu 18.04google-osconfig-agentFix pendingUBUNTU-CVE-2024-24786
Ubuntu 16.04google-guest-agentWill not fix
This has been fixed in the (20240716.00-0ubuntu1~20.04.0) package for focal, but has not been copied over to the -security pocket yet.
Ubuntu 16.04google-osconfig-agentWill not fix
This has been fixed in the (20240716.00-0ubuntu1~20.04.0) package for focal, but has not been copied over to the -security pocket yet.
UBUNTU-CVE-2024-24786
Debian 14golang-google-protobufFixed1.33.0-1DEBIAN-CVE-2024-24786
Debian 13golang-google-protobufFixed1.33.0-1DEBIAN-CVE-2024-24786
Debian 12golang-google-protobufFix pendingDEBIAN-CVE-2024-24786
Red Hat Enterprise Linux 10buildahFix pending
Affected
Red Hat Enterprise Linux 10buildah-testsFix pending
Affected
Red Hat Enterprise Linux 10go-toolsetNot affected
Red Hat Enterprise Linux 10golangNot affected
Red Hat Enterprise Linux 10golang-binNot affected
Red Hat Enterprise Linux 10golang-docsNot affected
Red Hat Enterprise Linux 10golang-miscNot affected
Red Hat Enterprise Linux 10golang-raceNot affected
Red Hat Enterprise Linux 10golang-srcNot affected
Red Hat Enterprise Linux 10golang-testsNot affected
Red Hat Enterprise Linux 10grafanaNot affected
Red Hat Enterprise Linux 10grafana-pcpNot affected
Red Hat Enterprise Linux 10grafana-selinuxNot affected
Red Hat Enterprise Linux 10ignitionNot affected
Red Hat Enterprise Linux 10ignition-edgeNot affected
Red Hat Enterprise Linux 10ignition-grubNot affected
Red Hat Enterprise Linux 10ignition-validateNot affected
Red Hat Enterprise Linux 10osbuild-composerNot affected
Red Hat Enterprise Linux 10osbuild-composer-coreNot affected
Red Hat Enterprise Linux 10osbuild-composer-workerNot affected
Red Hat Enterprise Linux 10podmanNot affected
Red Hat Enterprise Linux 10podman-dockerNot affected
Red Hat Enterprise Linux 10podman-remoteNot affected
Red Hat Enterprise Linux 10podman-testsNot affected
Red Hat Enterprise Linux 10skopeoNot affected
Red Hat Enterprise Linux 10skopeo-testsNot affected
Red Hat Enterprise Linux 9buildahFixed2:1.33.7-1.el9_4RHSA-2024:2550
Red Hat Enterprise Linux 9buildah-testsFixed2:1.33.7-1.el9_4RHSA-2024:2550
Red Hat Enterprise Linux 9go-toolsetNot affected
Red Hat Enterprise Linux 9golangNot affected
Red Hat Enterprise Linux 9golang-binNot affected
Red Hat Enterprise Linux 9golang-docsNot affected
Red Hat Enterprise Linux 9golang-miscNot affected
Red Hat Enterprise Linux 9golang-raceNot affected
Red Hat Enterprise Linux 9golang-srcNot affected
Red Hat Enterprise Linux 9golang-testsNot affected
Red Hat Enterprise Linux 9grafanaNot affected
Red Hat Enterprise Linux 9grafana-pcpNot affected
Red Hat Enterprise Linux 9grafana-selinuxNot affected
Red Hat Enterprise Linux 9ignitionWill not fix
Will not fix
Red Hat Enterprise Linux 9ignition-edgeWill not fix
Will not fix
Red Hat Enterprise Linux 9ignition-grubWill not fix
Will not fix
Red Hat Enterprise Linux 9ignition-validateWill not fix
Will not fix
Red Hat Enterprise Linux 9osbuild-composerWill not fix
Will not fix
Red Hat Enterprise Linux 9osbuild-composer-coreWill not fix
Will not fix
Red Hat Enterprise Linux 9osbuild-composer-dnf-jsonWill not fix
Will not fix
Red Hat Enterprise Linux 9osbuild-composer-workerWill not fix
Will not fix
Red Hat Enterprise Linux 9podmanFixed4:4.9.4-3.el9_4RHSA-2024:2548
Red Hat Enterprise Linux 9podman-dockerFixed4:4.9.4-3.el9_4RHSA-2024:2548
Red Hat Enterprise Linux 9podman-pluginsFixed4:4.9.4-3.el9_4RHSA-2024:2548
Red Hat Enterprise Linux 9podman-remoteFixed4:4.9.4-3.el9_4RHSA-2024:2548
Red Hat Enterprise Linux 9podman-testsFixed4:4.9.4-3.el9_4RHSA-2024:2548
Red Hat Enterprise Linux 9skopeoFixed2:1.14.3-2.el9_4RHSA-2024:2549
Red Hat Enterprise Linux 9skopeo-testsFixed2:1.14.3-2.el9_4RHSA-2024:2549
Red Hat Enterprise Linux 8aardvark-dnsFixed2:1.10.0-1.module+el8.10.0+21962+8143777bRHSA-2024:3254
Red Hat Enterprise Linux 8buildahFixed
Affected
2:1.33.8-1.module+el8.10.0+21995+81e8507cRHSA-2024:3254
Red Hat Enterprise Linux 8buildah-testsFixed
Affected
2:1.33.8-1.module+el8.10.0+21995+81e8507cRHSA-2024:3254
Red Hat Enterprise Linux 8cockpit-podmanFixed0:84.1-1.module+el8.10.0+21962+8143777bRHSA-2024:3254
Red Hat Enterprise Linux 8conmonFixed3:2.1.10-1.module+el8.10.0+21077+98b84d8aRHSA-2024:4246
Red Hat Enterprise Linux 8container-selinuxFixed2:2.229.0-2.module+el8.10.0+21196+3f0abbcaRHSA-2024:4246
Red Hat Enterprise Linux 8containernetworking-pluginsFixed1:1.4.0-2.module+el8.10.0+21366+f9cb49f8RHSA-2024:4246
Red Hat Enterprise Linux 8containers-commonFixed
Affected
2:1-81.module+el8.10.0+21340+c6c7475aRHSA-2024:4246
Red Hat Enterprise Linux 8critFixed0:3.18-5.module+el8.10.0+21672+01ba06aeRHSA-2024:4246
Red Hat Enterprise Linux 8criuFixed0:3.18-5.module+el8.10.0+21962+8143777bRHSA-2024:3254
Red Hat Enterprise Linux 8criu-develFixed0:3.18-5.module+el8.10.0+21672+01ba06aeRHSA-2024:4246
Red Hat Enterprise Linux 8criu-libsFixed0:3.18-5.module+el8.10.0+21962+8143777bRHSA-2024:3254
Red Hat Enterprise Linux 8crunFixed0:1.14.3-2.module+el8.10.0+21962+8143777bRHSA-2024:3254
Red Hat Enterprise Linux 8delveFix pending
Affected
Red Hat Enterprise Linux 8fuse-overlayfsFixed0:1.13-1.module+el8.10.0+20412+95ee28e2RHSA-2024:4246
Red Hat Enterprise Linux 8go-toolsetFix pending
Affected
Red Hat Enterprise Linux 8golangNot affected
Red Hat Enterprise Linux 8golang-binNot affected
Red Hat Enterprise Linux 8golang-docsNot affected
Red Hat Enterprise Linux 8golang-miscNot affected
Red Hat Enterprise Linux 8golang-raceNot affected
Red Hat Enterprise Linux 8golang-srcNot affected
Red Hat Enterprise Linux 8golang-testsNot affected
Red Hat Enterprise Linux 8grafanaNot affected
Red Hat Enterprise Linux 8grafana-azure-monitorNot affected
Red Hat Enterprise Linux 8grafana-cloudwatchNot affected
Red Hat Enterprise Linux 8grafana-elasticsearchNot affected
Red Hat Enterprise Linux 8grafana-graphiteNot affected
Red Hat Enterprise Linux 8grafana-influxdbNot affected
Red Hat Enterprise Linux 8grafana-lokiNot affected
Red Hat Enterprise Linux 8grafana-mssqlNot affected
Red Hat Enterprise Linux 8grafana-mysqlNot affected
Red Hat Enterprise Linux 8grafana-opentsdbNot affected
Red Hat Enterprise Linux 8grafana-pcpNot affected
Red Hat Enterprise Linux 8grafana-postgresNot affected
Red Hat Enterprise Linux 8grafana-prometheusNot affected
Red Hat Enterprise Linux 8grafana-selinuxNot affected
Red Hat Enterprise Linux 8grafana-stackdriverNot affected
Red Hat Enterprise Linux 8libslirpFixed0:4.4.0-2.module+el8.10.0+21672+01ba06aeRHSA-2024:4246
Red Hat Enterprise Linux 8libslirp-develFixed0:4.4.0-2.module+el8.10.0+21962+8143777bRHSA-2024:3254
Red Hat Enterprise Linux 8netavarkFixed2:1.10.3-1.module+el8.10.0+21306+6be40ce7RHSA-2024:4246
Red Hat Enterprise Linux 8oci-seccomp-bpf-hookFixed0:1.2.10-1.module+el8.10.0+21962+8143777bRHSA-2024:3254
Red Hat Enterprise Linux 8osbuild-composerWill not fix
Will not fix
Red Hat Enterprise Linux 8osbuild-composer-coreWill not fix
Will not fix
Red Hat Enterprise Linux 8osbuild-composer-dnf-jsonWill not fix
Will not fix
Red Hat Enterprise Linux 8osbuild-composer-workerWill not fix
Will not fix
Red Hat Enterprise Linux 8podmanFixed
Affected
4:4.9.4-1.module+el8.10.0+21632+761e0d34RHSA-2024:4246
Red Hat Enterprise Linux 8podman-catatonitFixed
Affected
4:4.9.4-4.module+el8.10.0+21995+81e8507cRHSA-2024:3254
Red Hat Enterprise Linux 8podman-dockerFixed
Affected
4:4.9.4-1.module+el8.10.0+21632+761e0d34RHSA-2024:4246
Red Hat Enterprise Linux 8podman-gvproxyFixed
Affected
4:4.9.4-1.module+el8.10.0+21632+761e0d34RHSA-2024:4246
Red Hat Enterprise Linux 8podman-manpagesFix pending
Affected
Red Hat Enterprise Linux 8podman-pluginsFixed
Affected
4:4.9.4-4.module+el8.10.0+21995+81e8507cRHSA-2024:3254
Red Hat Enterprise Linux 8podman-remoteFixed
Affected
4:4.9.4-4.module+el8.10.0+21995+81e8507cRHSA-2024:3254
Red Hat Enterprise Linux 8podman-testsFixed
Affected
4:4.9.4-4.module+el8.10.0+21995+81e8507cRHSA-2024:3254
Red Hat Enterprise Linux 8python-podmanFixed0:4.9.0-1.module+el8.10.0+21962+8143777bRHSA-2024:3254
Red Hat Enterprise Linux 8python3-criuFixed0:3.18-5.module+el8.10.0+21962+8143777bRHSA-2024:3254
Red Hat Enterprise Linux 8python3-podmanFixed0:4.9.0-1.module+el8.10.0+21196+3f0abbcaRHSA-2024:4246
Red Hat Enterprise Linux 8runcFixed1:1.1.12-1.module+el8.10.0+21974+acd2159cRHSA-2024:3254
Red Hat Enterprise Linux 8skopeoFixed
Affected
2:1.14.4-1.module+el8.10.0+21995+81e8507cRHSA-2024:3254
Red Hat Enterprise Linux 8skopeo-testsFixed
Affected
2:1.14.3-2.module+el8.10.0+21728+a1d9b0abRHSA-2024:4246
Red Hat Enterprise Linux 8slirp4netnsFixed0:1.2.3-1.module+el8.10.0+21962+8143777bRHSA-2024:3254
Red Hat Enterprise Linux 8toolboxFixed0:0.0.99.5-2.module+el8.10.0+21341+ff0b5f89RHSA-2024:4246
Red Hat Enterprise Linux 8toolbox-testsFixed0:0.0.99.5-2.module+el8.10.0+21962+8143777bRHSA-2024:3254
Red Hat Enterprise Linux 8udicaFixed0:0.2.6-21.module+el8.10.0+21672+01ba06aeRHSA-2024:4246
Red Hat Enterprise Linux 7rhc-worker-scriptFixed0:0.7-1.el7_9RHSA-2024:1874
AlmaLinux 9buildahFixed2:1.33.7-1.el9_4ALSA-2024:2550
AlmaLinux 9buildah-testsFixed2:1.33.7-1.el9_4ALSA-2024:2550
AlmaLinux 9podmanFixed4:4.9.4-3.el9_4ALSA-2024:2548
AlmaLinux 9podman-dockerFixed4:4.9.4-3.el9_4ALSA-2024:2548
AlmaLinux 9podman-pluginsFixed4:4.9.4-3.el9_4ALSA-2024:2548
AlmaLinux 9podman-remoteFixed4:4.9.4-3.el9_4ALSA-2024:2548
AlmaLinux 9podman-testsFixed4:4.9.4-3.el9_4ALSA-2024:2548
AlmaLinux 9skopeoFixed2:1.14.3-2.el9_4ALSA-2024:2549
AlmaLinux 9skopeo-testsFixed2:1.14.3-2.el9_4ALSA-2024:2549
AlmaLinux 8aardvark-dnsFixed2:1.10.0-1.module_el8.10.0+3858+6ad51f9fALSA-2024:3254
AlmaLinux 8buildahFixed2:1.33.7-1.module_el8.10.0+3845+87b84552ALSA-2024:4246
AlmaLinux 8buildah-testsFixed2:1.33.7-1.module_el8.10.0+3845+87b84552ALSA-2024:4246
AlmaLinux 8cockpit-podmanFixed84.1-1.module_el8.10.0+3858+6ad51f9fALSA-2024:3254
AlmaLinux 8conmonFixed3:2.1.10-1.module_el8.10.0+3858+6ad51f9fALSA-2024:4246
AlmaLinux 8container-selinuxFixed2:2.229.0-2.module_el8.10.0+3792+03eaed9cALSA-2024:4246
AlmaLinux 8containernetworking-pluginsFixed1:1.4.0-2.module_el8.10.0+3792+03eaed9cALSA-2024:4246
AlmaLinux 8containers-commonFixed2:1-81.module_el8.10.0+3792+03eaed9cALSA-2024:4246
AlmaLinux 8critFixed3.18-5.module_el8.10.0+3845+87b84552ALSA-2024:4246
AlmaLinux 8criuFixed3.18-5.module_el8.10.0+3845+87b84552ALSA-2024:3254
AlmaLinux 8criu-develFixed3.18-5.module_el8.10.0+3845+87b84552ALSA-2024:4246
AlmaLinux 8criu-libsFixed3.18-5.module_el8.10.0+3845+87b84552ALSA-2024:4246
AlmaLinux 8crunFixed1.14.3-2.module_el8.10.0+3845+87b84552ALSA-2024:4246
AlmaLinux 8fuse-overlayfsFixed1.13-1.module_el8.10.0+3792+03eaed9cALSA-2024:4246
AlmaLinux 8libslirpFixed4.4.0-2.module_el8.10.0+3845+87b84552ALSA-2024:3254
AlmaLinux 8libslirp-develFixed4.4.0-2.module_el8.10.0+3845+87b84552ALSA-2024:3254
AlmaLinux 8netavarkFixed2:1.10.3-1.module_el8.10.0+3845+87b84552ALSA-2024:4246
AlmaLinux 8oci-seccomp-bpf-hookFixed1.2.10-1.module_el8.10.0+3792+03eaed9cALSA-2024:4246
AlmaLinux 8podmanFixed4:4.9.4-4.module_el8.10.0+3862+c5a22a8dALSA-2024:3254
AlmaLinux 8podman-catatonitFixed4:4.9.4-4.module_el8.10.0+3862+c5a22a8dALSA-2024:3254
AlmaLinux 8podman-dockerFixed4:4.9.4-4.module_el8.10.0+3862+c5a22a8dALSA-2024:3254
AlmaLinux 8podman-gvproxyFixed4:4.9.4-1.module_el8.10.0+3845+87b84552ALSA-2024:4246
AlmaLinux 8podman-pluginsFixed4:4.9.4-4.module_el8.10.0+3862+c5a22a8dALSA-2024:3254
AlmaLinux 8podman-remoteFixed4:4.9.4-4.module_el8.10.0+3862+c5a22a8dALSA-2024:3254
AlmaLinux 8podman-testsFixed4:4.9.4-4.module_el8.10.0+3862+c5a22a8dALSA-2024:3254
AlmaLinux 8python3-criuFixed3.18-5.module_el8.10.0+3845+87b84552ALSA-2024:4246
AlmaLinux 8python3-podmanFixed4.9.0-1.module_el8.10.0+3792+03eaed9cALSA-2024:3254
AlmaLinux 8runcFixed1:1.1.12-1.module_el8.10.0+3858+6ad51f9fALSA-2024:4246
AlmaLinux 8skopeoFixed2:1.14.3-2.module_el8.10.0+3845+87b84552ALSA-2024:4246
AlmaLinux 8skopeo-testsFixed2:1.14.4-1.module_el8.10.0+3862+c5a22a8dALSA-2024:3254
AlmaLinux 8slirp4netnsFixed1.2.3-1.module_el8.10.0+3845+87b84552ALSA-2024:4246
AlmaLinux 8toolboxFixed0.0.99.5-2.module_el8.10.0+3858+6ad51f9fALSA-2024:4246
AlmaLinux 8toolbox-testsFixed0.0.99.5-2.module_el8.10.0+3858+6ad51f9fALSA-2024:4246
AlmaLinux 8udicaFixed0.2.6-21.module_el8.10.0+3845+87b84552ALSA-2024:4246
Rocky Linux 9buildahFixed2:1.33.7-1.el9_4RLSA-2024:2550
Rocky Linux 9podmanFixed4:4.9.4-3.el9_4RLSA-2024:2548
Rocky Linux 9skopeoFixed2:1.14.3-2.el9_4RLSA-2024:2549
Rocky Linux 8aardvark-dnsFixed2:1.10.0-1.module+el8.10.0+1825+623b0c20RLSA-2024:4246
Rocky Linux 8buildahFixed2:1.33.7-1.module+el8.10.0+1825+623b0c20RLSA-2024:4246
Rocky Linux 8cockpit-podmanFixed0:84.1-1.module+el8.10.0+1815+5fe7415eRLSA-2024:4246
Rocky Linux 8conmonFixed3:2.1.10-1.module+el8.10.0+1874+ce489889RLSA-2024:4246
Rocky Linux 8container-selinuxFixed2:2.229.0-2.module+el8.10.0+1948+4b5cd4a9RLSA-2024:4246
Rocky Linux 8containernetworking-pluginsFixed1:1.4.0-2.module+el8.10.0+1815+5fe7415eRLSA-2024:4246
Rocky Linux 8containers-commonFixed2:1-81.module+el8.10.0+1815+5fe7415eRLSA-2024:3254
Rocky Linux 8criuFixed0:3.18-5.module+el8.10.0+1815+5fe7415eRLSA-2024:4246
Rocky Linux 8crunFixed0:1.14.3-2.module+el8.10.0+1948+4b5cd4a9RLSA-2024:4246
Rocky Linux 8fuse-overlayfsFixed0:1.13-1.module+el8.10.0+1815+5fe7415eRLSA-2024:4246
Rocky Linux 8libslirpFixed0:4.4.0-2.module+el8.10.0+1825+623b0c20RLSA-2024:4246
Rocky Linux 8netavarkFixed2:1.10.3-1.module+el8.10.0+1880+8e896d1bRLSA-2024:4246
Rocky Linux 8oci-seccomp-bpf-hookFixed0:1.2.10-1.module+el8.10.0+1815+5fe7415eRLSA-2024:3254
Rocky Linux 8podmanFixed4:4.9.4-1.module+el8.10.0+1815+5fe7415eRLSA-2024:4246
Rocky Linux 8python-podmanFixed0:4.9.0-1.module+el8.10.0+1815+5fe7415eRLSA-2024:4246
Rocky Linux 8runcFixed1:1.1.12-1.module+el8.10.0+1815+5fe7415eRLSA-2024:4246
Rocky Linux 8skopeoFixed2:1.14.3-2.module+el8.10.0+1815+5fe7415eRLSA-2024:4246
Rocky Linux 8slirp4netnsFixed0:1.2.3-1.module+el8.10.0+1815+5fe7415eRLSA-2024:3254
Rocky Linux 8toolboxFixed0:0.0.99.5-2.module+el8.10.0+1829+9bb2696f.rocky.0.2RLSA-2024:4246
Rocky Linux 8udicaFixed0:0.2.6-21.module+el8.10.0+1948+4b5cd4a9RLSA-2024:4246
Alpine Linux 3.24buildahFixed1.35.4-r0ALPINE-CVE-2024-24786
Alpine Linux 3.23buildahFixed1.35.4-r0ALPINE-CVE-2024-24786
Alpine Linux 3.22buildahFixed1.35.4-r0ALPINE-CVE-2024-24786
Alpine Linux 3.21buildahFixed1.35.4-r0ALPINE-CVE-2024-24786
Alpine Linux 3.20buildahFixed1.35.4-r0ALPINE-CVE-2024-24786
Go librarygoogle.golang.org/protobufFixed1.33.0GO-2024-2611
Go librarygoogle.golang.org/protobuf/encoding/protojsonFixed1.33.0GHSA-8r3f-844c-mc37
Go librarygoogle.golang.org/protobuf/internal/encoding/jsonFixed1.33.0GHSA-8r3f-844c-mc37

What the vendor says

As published in the CVE record by Go, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.