CVEfocus › CVE database › CVE-2022-30635

CVE-2022-30635Stack exhaustion when decoding certain messages in encoding/gob

CVSS 7.5 HighEPSS 1.9% (higher than 80% of CVEs)Published 2022-08-09Updated 2026-03-06Assigner: Go

Uncontrolled recursion in Decoder.Decode in encoding/gob before Go 1.17.12 and Go 1.18.4 allows an attacker to cause a panic due to stack exhaustion via a message which contains deeply nested structures.

CWE-674

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.

Ubuntu has 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

145Fixed
3Fix pending
9Will not fix

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 22.04golang-1.13Fixed1.13.8-1ubuntu2.22.04.2UBUNTU-CVE-2022-30635
Ubuntu 22.04golang-1.18Fixed1.18.1-1ubuntu1.1UBUNTU-CVE-2022-30635
Ubuntu 20.04golang-1.13Fixed1.13.8-1ubuntu1.2UBUNTU-CVE-2022-30635
Ubuntu 20.04golang-1.16Fixed1.16.2-0ubuntu1~20.04.1UBUNTU-CVE-2022-30635
Ubuntu 20.04golang-1.18Fixed1.18.1-1ubuntu1~20.04.2UBUNTU-CVE-2022-30635
Ubuntu 18.04golang-1.13Fix pending1.13.8-1ubuntu1~18.04.4+esm1 (Ubuntu Pro)UBUNTU-CVE-2022-30635
Ubuntu 18.04golang-1.16Fix pending1.16.2-0ubuntu1~18.04.2+esm1 (Ubuntu Pro)UBUNTU-CVE-2022-30635
Ubuntu 18.04golang-1.18Fixed1.18.1-1ubuntu1~18.04.4UBUNTU-CVE-2022-30635
Ubuntu 16.04golang-1.13Fix pending1.13.8-1ubuntu1~16.04.3+esm3 (Ubuntu Pro)UBUNTU-CVE-2022-30635
Debian 12golang-1.19Fixed1.19~rc2-1DEBIAN-CVE-2022-30635
Red Hat Enterprise Linux 9containernetworking-pluginsWill not fix
Will not fix
Red Hat Enterprise Linux 9git-lfsFixed0:3.2.0-1.el9RHSA-2023:2357
Red Hat Enterprise Linux 9go-toolsetFixed
Affected
0:1.17.12-1.el9_0RHSA-2022:5799
Red Hat Enterprise Linux 9golangFixed0:1.17.12-1.el9_0RHSA-2022:5799
Red Hat Enterprise Linux 9golang-binFixed0:1.17.12-1.el9_0RHSA-2022:5799
Red Hat Enterprise Linux 9golang-docsFixed0:1.17.12-1.el9_0RHSA-2022:5799
Red Hat Enterprise Linux 9golang-miscFixed0:1.17.12-1.el9_0RHSA-2022:5799
Red Hat Enterprise Linux 9golang-raceFixed0:1.17.12-1.el9_0RHSA-2022:5799
Red Hat Enterprise Linux 9golang-srcFixed0:1.17.12-1.el9_0RHSA-2022:5799
Red Hat Enterprise Linux 9golang-testsFixed0:1.17.12-1.el9_0RHSA-2022:5799
Red Hat Enterprise Linux 9grafanaFixed0:7.5.15-3.el9RHSA-2022:8057
Red Hat Enterprise Linux 9grafana-pcpFixed0:3.2.0-3.el9RHSA-2022:8250
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 8aardvark-dnsFixed2:1.5.0-2.module+el8.8.0+18060+3f21f2ccRHSA-2023:2802
Red Hat Enterprise Linux 8buildahFixed1:1.24.6-5.module+el8.8.0+18083+cd85596bRHSA-2023:2758
Red Hat Enterprise Linux 8buildah-testsFixed1:1.29.1-1.module+el8.8.0+18195+471da4bbRHSA-2023:2802
Red Hat Enterprise Linux 8cockpit-podmanFixed0:46-1.module+el8.8.0+17821+de1b53f1RHSA-2023:2758
Red Hat Enterprise Linux 8conmonFixed3:2.1.6-1.module+el8.8.0+18098+9b44df5fRHSA-2023:2802
Red Hat Enterprise Linux 8container-selinuxFixed2:2.199.0-1.module+el8.8.0+18113+8b5b6979RHSA-2023:2758
Red Hat Enterprise Linux 8containernetworking-pluginsFixed
Affected
1:1.1.1-2.module+el8.8.0+17821+de1b53f1RHSA-2023:2758
Red Hat Enterprise Linux 8containers-commonFixed2:1-37.module+el8.8.0+17954+9046de88RHSA-2023:2758
Red Hat Enterprise Linux 8critFixed0:3.15-3.module+el8.8.0+17821+de1b53f1RHSA-2023:2758
Red Hat Enterprise Linux 8criuFixed0:3.15-3.module+el8.8.0+17821+de1b53f1RHSA-2023:2758
Red Hat Enterprise Linux 8criu-develFixed0:3.15-3.module+el8.8.0+18060+3f21f2ccRHSA-2023:2802
Red Hat Enterprise Linux 8criu-libsFixed0:3.15-3.module+el8.8.0+18060+3f21f2ccRHSA-2023:2802
Red Hat Enterprise Linux 8crunFixed0:1.8.1-2.module+el8.8.0+18418+f0e540feRHSA-2023:2802
Red Hat Enterprise Linux 8delveFixed0:1.7.2-1.module+el8.6.0+12972+ebab5911RHSA-2022:5775
Red Hat Enterprise Linux 8fuse-overlayfsFixed0:1.9-1.module+el8.8.0+17821+de1b53f1RHSA-2023:2758
Red Hat Enterprise Linux 8git-lfsFixed0:2.13.3-3.el8_6RHSA-2022:7129
Red Hat Enterprise Linux 8go-toolsetFixed0:1.17.12-1.module+el8.6.0+16014+a372c00bRHSA-2022:5775
Red Hat Enterprise Linux 8golangFixed0:1.17.12-1.module+el8.6.0+16014+a372c00bRHSA-2022:5775
Red Hat Enterprise Linux 8golang-binFixed0:1.17.12-1.module+el8.6.0+16014+a372c00bRHSA-2022:5775
Red Hat Enterprise Linux 8golang-docsFixed0:1.17.12-1.module+el8.6.0+16014+a372c00bRHSA-2022:5775
Red Hat Enterprise Linux 8golang-miscFixed0:1.17.12-1.module+el8.6.0+16014+a372c00bRHSA-2022:5775
Red Hat Enterprise Linux 8golang-raceFixed0:1.17.12-1.module+el8.6.0+16014+a372c00bRHSA-2022:5775
Red Hat Enterprise Linux 8golang-srcFixed0:1.17.12-1.module+el8.6.0+16014+a372c00bRHSA-2022:5775
Red Hat Enterprise Linux 8golang-testsFixed0:1.17.12-1.module+el8.6.0+16014+a372c00bRHSA-2022:5775
Red Hat Enterprise Linux 8grafanaFixed0:7.5.15-3.el8RHSA-2022:7519
Red Hat Enterprise Linux 8grafana-pcpFixed0:3.2.0-2.el8RHSA-2022:7648
Red Hat Enterprise Linux 8libslirpFixed0:4.4.0-1.module+el8.8.0+17821+de1b53f1RHSA-2023:2758
Red Hat Enterprise Linux 8libslirp-develFixed0:4.4.0-1.module+el8.8.0+18060+3f21f2ccRHSA-2023:2802
Red Hat Enterprise Linux 8netavarkFixed2:1.5.0-4.module+el8.8.0+18060+3f21f2ccRHSA-2023:2802
Red Hat Enterprise Linux 8oci-seccomp-bpf-hookFixed0:1.2.8-1.module+el8.8.0+18060+3f21f2ccRHSA-2023:2802
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 8podmanFixed3:4.4.1-8.module+el8.8.0+18438+15d3aa65RHSA-2023:2802
Red Hat Enterprise Linux 8podman-catatonitFixed3:4.4.1-8.module+el8.8.0+18438+15d3aa65RHSA-2023:2802
Red Hat Enterprise Linux 8podman-dockerFixed3:4.4.1-8.module+el8.8.0+18438+15d3aa65RHSA-2023:2802
Red Hat Enterprise Linux 8podman-gvproxyFixed3:4.4.1-8.module+el8.8.0+18438+15d3aa65RHSA-2023:2802
Red Hat Enterprise Linux 8podman-pluginsFixed2:4.0.2-20.module+el8.8.0+18201+6ad7332cRHSA-2023:2758
Red Hat Enterprise Linux 8podman-remoteFixed3:4.4.1-8.module+el8.8.0+18438+15d3aa65RHSA-2023:2802
Red Hat Enterprise Linux 8podman-testsFixed2:4.0.2-20.module+el8.8.0+18201+6ad7332cRHSA-2023:2758
Red Hat Enterprise Linux 8python-podmanFixed0:4.4.1-1.module+el8.8.0+18275+3a56cc62RHSA-2023:2802
Red Hat Enterprise Linux 8python3-criuFixed0:3.15-3.module+el8.8.0+17821+de1b53f1RHSA-2023:2758
Red Hat Enterprise Linux 8python3-podmanFixed0:4.4.1-1.module+el8.8.0+18275+3a56cc62RHSA-2023:2802
Red Hat Enterprise Linux 8runcFixed1:1.1.4-1.module+el8.8.0+18060+3f21f2ccRHSA-2023:2802
Red Hat Enterprise Linux 8skopeoFixed2:1.11.2-0.2.module+el8.8.0+18251+ad5b274cRHSA-2023:2802
Red Hat Enterprise Linux 8skopeo-testsFixed2:1.11.2-0.2.module+el8.8.0+18251+ad5b274cRHSA-2023:2802
Red Hat Enterprise Linux 8slirp4netnsFixed0:1.1.8-2.module+el8.8.0+17821+de1b53f1RHSA-2023:2758
Red Hat Enterprise Linux 8toolboxFixed0:0.0.99.3-7.module+el8.8.0+18119+e3deee03RHSA-2023:2802
Red Hat Enterprise Linux 8toolbox-testsFixed0:0.0.99.3-7.module+el8.8.0+18115+45021590RHSA-2023:2758
Red Hat Enterprise Linux 8udicaFixed0:0.2.6-20.module+el8.8.0+18060+3f21f2ccRHSA-2023:2802
AlmaLinux 9git-lfsFixed3.2.0-1.el9ALSA-2023:2357
AlmaLinux 9golangFixed1.17.12-1.el9_0ALSA-2022:5799
AlmaLinux 9golang-binFixed1.17.12-1.el9_0ALSA-2022:5799
AlmaLinux 9golang-docsFixed1.17.12-1.el9_0ALSA-2022:5799
AlmaLinux 9golang-miscFixed1.17.12-1.el9_0ALSA-2022:5799
AlmaLinux 9golang-raceFixed1.17.12-1.el9_0ALSA-2022:5799
AlmaLinux 9golang-srcFixed1.17.12-1.el9_0ALSA-2022:5799
AlmaLinux 9golang-testsFixed1.17.12-1.el9_0ALSA-2022:5799
AlmaLinux 9grafanaFixed7.5.15-3.el9ALSA-2022:8057
AlmaLinux 9grafana-pcpFixed3.2.0-3.el9ALSA-2022:8250
AlmaLinux 8aardvark-dnsFixed2:1.5.0-2.module_el8.8.0+3470+252b1910ALSA-2023:2802
AlmaLinux 8buildahFixed1:1.29.1-1.module_el8.8.0+3470+252b1910ALSA-2023:2802
AlmaLinux 8buildah-testsFixed1:1.24.6-5.module_el8.8.0+3468+16b86c82ALSA-2023:2758
AlmaLinux 8cockpit-podmanFixed63.1-1.module_el8.8.0+3557+7ba9cc13ALSA-2023:2802
AlmaLinux 8conmonFixed3:2.1.6-1.module_el8.8.0+3470+252b1910ALSA-2023:2802
AlmaLinux 8container-selinuxFixed2:2.205.0-2.module_el8.8.0+3557+7ba9cc13ALSA-2023:2802
AlmaLinux 8containernetworking-pluginsFixed1:1.1.1-2.module_el8.7.0+3344+5bcd850fALSA-2023:2758
AlmaLinux 8containers-commonFixed2:1-63.module_el8.8.0+3568+e8578284ALSA-2023:2802
AlmaLinux 8critFixed3.15-3.module_el8.7.0+3407+95aa0ca9ALSA-2023:2802
AlmaLinux 8criuFixed3.15-3.module_el8.6.0+2877+8e437bf5ALSA-2023:2758
AlmaLinux 8criu-develFixed3.15-3.module_el8.7.0+3407+95aa0ca9ALSA-2023:2802
AlmaLinux 8criu-libsFixed3.15-3.module_el8.6.0+3137+d33c3efbALSA-2023:2802
AlmaLinux 8crunFixed1.8.1-2.module_el8.8.0+3568+e8578284ALSA-2023:2802
AlmaLinux 8delveFixed1.7.2-1.module_el8.6.0+2736+ec10aba8ALSA-2022:5775
AlmaLinux 8fuse-overlayfsFixed1.10-1.module_el8.8.0+3470+252b1910ALSA-2023:2802
AlmaLinux 8git-lfsFixed2.13.3-3.el8_6ALSA-2022:7129
AlmaLinux 8go-toolsetFixed1.17.12-1.module_el8.6.0+3065+e17ed2d4ALSA-2022:5775
AlmaLinux 8golangFixed1.17.12-1.module_el8.6.0+3065+e17ed2d4ALSA-2022:5775
AlmaLinux 8golang-binFixed1.17.12-1.module_el8.6.0+3065+e17ed2d4ALSA-2022:5775
AlmaLinux 8golang-docsFixed1.17.12-1.module_el8.6.0+3065+e17ed2d4ALSA-2022:5775
AlmaLinux 8golang-miscFixed1.17.12-1.module_el8.6.0+3065+e17ed2d4ALSA-2022:5775
AlmaLinux 8golang-raceFixed1.17.12-1.module_el8.6.0+3065+e17ed2d4ALSA-2022:5775
AlmaLinux 8golang-srcFixed1.17.12-1.module_el8.6.0+3065+e17ed2d4ALSA-2022:5775
AlmaLinux 8golang-testsFixed1.17.12-1.module_el8.6.0+3065+e17ed2d4ALSA-2022:5775
AlmaLinux 8grafanaFixed7.5.15-3.el8ALSA-2022:7519
AlmaLinux 8grafana-pcpFixed3.2.0-2.el8ALSA-2022:7648
AlmaLinux 8libslirpFixed4.4.0-1.module_el8.6.0+3137+d33c3efbALSA-2023:2758
AlmaLinux 8libslirp-develFixed4.4.0-1.module_el8.7.0+3407+95aa0ca9ALSA-2023:2802
AlmaLinux 8netavarkFixed2:1.0.1-37.module_el8.8.0+3468+16b86c82ALSA-2023:2758
AlmaLinux 8oci-seccomp-bpf-hookFixed1.2.5-2.module_el8.8.0+3468+16b86c82ALSA-2023:2758
AlmaLinux 8podmanFixed3:4.4.1-8.module_el8.8.0+3568+e8578284ALSA-2023:2802
AlmaLinux 8podman-catatonitFixed2:4.0.2-20.module_el8.8.0+3468+16b86c82ALSA-2023:2758
AlmaLinux 8podman-dockerFixed3:4.4.1-8.module_el8.8.0+3568+e8578284ALSA-2023:2802
AlmaLinux 8podman-gvproxyFixed3:4.4.1-8.module_el8.8.0+3568+e8578284ALSA-2023:2802
AlmaLinux 8podman-pluginsFixed3:4.4.1-8.module_el8.8.0+3568+e8578284ALSA-2023:2802
AlmaLinux 8podman-remoteFixed2:4.0.2-20.module_el8.8.0+3468+16b86c82ALSA-2023:2758
AlmaLinux 8podman-testsFixed3:4.4.1-8.module_el8.8.0+3568+e8578284ALSA-2023:2802
AlmaLinux 8python3-criuFixed3.15-3.module_el8.6.0+2877+8e437bf5ALSA-2023:2802
AlmaLinux 8python3-podmanFixed4.0.0-1.module_el8.6.0+2877+8e437bf5ALSA-2023:2758
AlmaLinux 8runcFixed1:1.1.4-1.module_el8.7.0+3407+95aa0ca9ALSA-2023:2802
AlmaLinux 8skopeoFixed2:1.11.2-0.2.module_el8.8.0+3470+252b1910ALSA-2023:2802
AlmaLinux 8skopeo-testsFixed2:1.11.2-0.2.module_el8.8.0+3470+252b1910ALSA-2023:2802
AlmaLinux 8slirp4netnsFixed1.1.8-2.module_el8.6.0+3137+d33c3efbALSA-2023:2758
AlmaLinux 8toolboxFixed0.0.99.3-7.module_el8.8.0+3470+252b1910ALSA-2023:2802
AlmaLinux 8toolbox-testsFixed0.0.99.3-7.module_el8.8.0+3468+16b86c82ALSA-2023:2758
AlmaLinux 8udicaFixed0.2.6-20.module_el8.8.0+3470+252b1910ALSA-2023:2802
Rocky Linux 9go-toolsetFixed0:1.17.12-1.el9_0RLSA-2022:5799
Rocky Linux 9golangFixed0:1.17.12-1.el9_0RLSA-2022:5799
Rocky Linux 9grafanaFixed0:7.5.15-3.el9RLSA-2022:8057
Rocky Linux 9grafana-pcpFixed0:3.2.0-3.el9RLSA-2022:8250
Rocky Linux 8cockpit-podmanFixed0:46-1.module+el8.9.0+1445+07728297RLSA-2023:2802
Rocky Linux 8criuFixed0:3.15-3.module+el8.9.0+1445+07728297RLSA-2023:2758
Rocky Linux 8delveFixed0:1.7.2-1.module+el8.6.0+824+8e984c20RLSA-2022:5775
Rocky Linux 8git-lfsFixed0:2.13.3-3.el8_6RLSA-2022:7129
Rocky Linux 8go-toolsetFixed0:1.17.12-1.module+el8.6.0+993+4fde2340RLSA-2022:5775
Rocky Linux 8golangFixed0:1.17.12-1.module+el8.6.0+993+4fde2340RLSA-2022:5775
Rocky Linux 8grafanaFixed0:7.5.15-3.el8RLSA-2022:7519
Rocky Linux 8grafana-pcpFixed0:3.2.0-2.el8RLSA-2022:7648
Rocky Linux 8libslirpFixed0:4.4.0-1.module+el8.9.0+1445+07728297RLSA-2023:2802
Rocky Linux 8oci-seccomp-bpf-hookFixed0:1.2.5-2.module+el8.9.0+1445+07728297RLSA-2023:2802
Alpine Linux 3.24goFixed1.18.4-r0ALPINE-CVE-2022-30635
Alpine Linux 3.23goFixed1.18.4-r0ALPINE-CVE-2022-30635
Alpine Linux 3.22goFixed1.18.4-r0ALPINE-CVE-2022-30635
Alpine Linux 3.21goFixed1.18.4-r0ALPINE-CVE-2022-30635
Alpine Linux 3.20goFixed1.18.4-r0ALPINE-CVE-2022-30635
Alpine Linux 3.19goFixed1.18.4-r0ALPINE-CVE-2022-30635
Alpine Linux 3.18goFixed1.18.4-r0ALPINE-CVE-2022-30635
Alpine Linux 3.17goFixed1.18.4-r0ALPINE-CVE-2022-30635
Alpine Linux 3.16goFixed1.18.4-r0ALPINE-CVE-2022-30635
Go librarystdlibFixed1.17.12GO-2024-3106

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.