cve.bz

CVE-2022-30635 golang go: Uncontrolled Recursion

7.5 highEPSS 1.9%Fix available

High (7.5) in golang go. EPSS 1.9% estimated probability of exploitation activity in the next 30 days. Fixed in stdlib 1.17.12, 1.18.4.

On this page
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.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
1.9% (unchanged from 1.9% a week ago; 1.8% 30 days ago) estimated probability of exploitation activity in the next 30 days; 80th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: partial, assessed 2026-03-06. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-674 Uncontrolled Recursion
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2022-30635 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-30635?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-30635?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2022-30635 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Go standard library encoding/gobbefore 1.17.12
Go standard library encoding/gobfrom 1.18.0-0 before 1.18.4

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GO-2022-0526Gostdlib<1.17.12
>=1.18.0-0 <1.18.4
1.17.12, 1.18.4

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12golang-1.191.19~rc2-1DEBIAN-CVE-2022-30635
Ubuntu18.04:LTSgolang-1.181.18.1-1ubuntu1~18.04.4UBUNTU-CVE-2022-30635 USN-6038-1
Ubuntu20.04:LTSgolang-1.131.13.8-1ubuntu1.2UBUNTU-CVE-2022-30635 USN-6038-2
Ubuntu20.04:LTSgolang-1.161.16.2-0ubuntu1~20.04.1UBUNTU-CVE-2022-30635 USN-6038-2
Ubuntu20.04:LTSgolang-1.181.18.1-1ubuntu1~20.04.2UBUNTU-CVE-2022-30635 USN-6038-1
Ubuntu22.04:LTSgolang-1.131.13.8-1ubuntu2.22.04.2UBUNTU-CVE-2022-30635 USN-6038-2
Ubuntu22.04:LTSgolang-1.181.18.1-1ubuntu1.1UBUNTU-CVE-2022-30635 USN-6038-1
UbuntuPro:16.04:LTSgolang-1.131.13.8-1ubuntu1~16.04.3+esm3UBUNTU-CVE-2022-30635 USN-6038-2
UbuntuPro:18.04:LTSgolang-1.131.13.8-1ubuntu1~18.04.4+esm1UBUNTU-CVE-2022-30635 USN-6038-2
UbuntuPro:18.04:LTSgolang-1.161.16.2-0ubuntu1~18.04.2+esm1UBUNTU-CVE-2022-30635 USN-6038-2
Red Hatcontainer_native_virtualization:4.12::el7kubevirt, kubevirt-virtctl, kubevirt-virtctl-redistributable0:4.12.0-1057.el7RHSA-2023:0407
Red Hatcontainer_native_virtualization:4.12::el8kubevirt, kubevirt-virtctl, kubevirt-virtctl-redistributable0:4.12.0-1057.el8RHSA-2023:0407
Red Hatdevtools:2022go-toolset-1.17, go-toolset-1.17-build, go-toolset-1.17-golang and 8 more0:1.17.12-1.el7_9RHSA-2022:5866
Red Hatenterprise_linux:8::appstreamaardvark-dns2:1.5.0-2.module+el8.8.0+18060+3f21f2ccRHSA-2023:2758
Red Hatenterprise_linux:8::appstreambuildah, buildah-tests, buildah-debuginfo and 2 more1:1.24.6-5.module+el8.8.0+18083+cd85596bRHSA-2023:2802
Red Hatenterprise_linux:8::appstreambuildah, buildah-tests, buildah-debuginfo and 2 more1:1.29.1-1.module+el8.8.0+18195+471da4bbRHSA-2023:2758
Red Hatenterprise_linux:8::appstreamcockpit-podman0:46-1.module+el8.8.0+17821+de1b53f1RHSA-2023:2802
Red Hatenterprise_linux:8::appstreamcockpit-podman0:63.1-1.module+el8.8.0+18286+cd236dceRHSA-2023:2758
Red Hatenterprise_linux:8::appstreamconmon, conmon-debuginfo, conmon-debugsource2:2.1.4-1.module+el8.8.0+17821+de1b53f1RHSA-2023:2802
Red Hatenterprise_linux:8::appstreamconmon, conmon-debuginfo, conmon-debugsource3:2.1.6-1.module+el8.8.0+18098+9b44df5fRHSA-2023:2758
Red Hatenterprise_linux:8::appstreamcontainer-selinux2:2.199.0-1.module+el8.8.0+18113+8b5b6979RHSA-2023:2802
Red Hatenterprise_linux:8::appstreamcontainer-selinux2:2.205.0-2.module+el8.8.0+18438+15d3aa65RHSA-2023:2758
41 more for Red Hat in the JSON and on Red Hat's page.
SUSEEnterprise Storage 7, Linux Enterprise High Performance Computing 15 SP2-ESPOS, Linux Enterprise High Performance Computing 15 SP2-LTSS and 8 morego1.171.17.13-150000.1.42.1SUSE-SU-2022:2671-1
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-ESPOS, Linux Enterprise High Performance Computing 15 SP3-LTSS and 4 morego1.18-openssl1.18.10.1-150000.1.9.1SUSE-SU-2023:2312-1
SUSELinux Enterprise Module for Development Tools 15 SP3, Linux Enterprise Module for Development Tools 15 SP4go1.181.18.5-150000.1.25.1SUSE-SU-2022:2672-1
openSUSELeap 15.3, Leap 15.4go1.171.17.13-150000.1.42.1SUSE-SU-2022:2671-1
openSUSELeap 15.3, Leap 15.4go1.181.18.5-150000.1.25.1SUSE-SU-2022:2672-1
openSUSELeap 15.4, Leap 15.5go1.18-openssl1.18.10.1-150000.1.9.1SUSE-SU-2023:2312-1
openSUSETumbleweedgo1.171.17.12-1.1openSUSE-SU-2024:12189-1
openSUSETumbleweedgo1.181.18.4-1.1openSUSE-SU-2024:12190-1
AlmaLinux8aardvark-dns2:1.5.0-2.module_el8.8.0+3470+252b1910ALSA-2023:2758
AlmaLinux8buildah, buildah-tests1:1.24.6-5.module_el8.8.0+3468+16b86c82ALSA-2023:2802
AlmaLinux8buildah, buildah-tests1:1.29.1-1.module_el8.8.0+3470+252b1910ALSA-2023:2758
AlmaLinux8cockpit-podman46-1.module_el8.7.0+3344+5bcd850fALSA-2023:2802
AlmaLinux8cockpit-podman63.1-1.module_el8.8.0+3557+7ba9cc13ALSA-2023:2758
AlmaLinux8conmon2:2.1.4-1.module_el8.7.0+3344+5bcd850fALSA-2023:2802
AlmaLinux8conmon3:2.1.6-1.module_el8.8.0+3470+252b1910ALSA-2023:2758
AlmaLinux8container-selinux2:2.199.0-1.module_el8.8.0+3468+16b86c82ALSA-2023:2802
AlmaLinux8container-selinux2:2.205.0-2.module_el8.8.0+3557+7ba9cc13ALSA-2023:2758
AlmaLinux8containernetworking-plugins1:1.1.1-2.module_el8.7.0+3344+5bcd850fALSA-2023:2802
AlmaLinux8containernetworking-plugins1:1.2.0-1.module_el8.8.0+3470+252b1910ALSA-2023:2758
AlmaLinux8containers-common2:1-37.module_el8.8.0+3468+16b86c82ALSA-2023:2802
39 more for AlmaLinux in the JSON.
Rocky Linux8cockpit-podman0:46-1.module+el8.9.0+1445+07728297RLSA-2023:2802
Rocky Linux8criu0:3.15-3.module+el8.9.0+1445+07728297RLSA-2023:2758 RLSA-2023:2802
Rocky Linux8delve0:1.7.2-1.module+el8.6.0+824+8e984c20RLSA-2022:5775
Rocky Linux8git-lfs0:2.13.3-3.el8_6RLSA-2022:7129
Rocky Linux8golang, go-toolset0:1.17.12-1.module+el8.6.0+993+4fde2340RLSA-2022:5775
Rocky Linux8grafana0:7.5.15-3.el8RLSA-2022:7519
Rocky Linux8grafana-pcp0:3.2.0-2.el8RLSA-2022:7648
Rocky Linux8libslirp0:4.4.0-1.module+el8.9.0+1445+07728297RLSA-2023:2758 RLSA-2023:2802
Rocky Linux8oci-seccomp-bpf-hook0:1.2.5-2.module+el8.9.0+1445+07728297RLSA-2023:2802
Rocky Linux9golang, go-toolset0:1.17.12-1.el9_0RLSA-2022:5799
Rocky Linux9grafana0:7.5.15-3.el9RLSA-2022:8057
Rocky Linux9grafana-pcp0:3.2.0-3.el9RLSA-2022:8250
Alpinev3.16, v3.17, v3.18 and 6 morego1.18.4-r0ALPINE-CVE-2022-30635
Azure Linux2golang1.18.5-1AZL-10537
Azure Linux3golangno fix listedAZL-79086 AZL-98712

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

OpenShift Container Platform (OCP) starting from 4.10 stream is already compiled in the patched version of Go, hence is not affected by this vulnerability.The vulnerability has been rated as moderate instead of high because the vulnerability can only result in a minor denial of service.

ProductPackageStateAdvisory
OADP-1.1-RHEL-8oadp/oadp-velero-rhel8:1.1.1-20Fixed 2022-11-28RHSA-2022:8634
OpenShift Custom Metrics Autoscaler 2custom-metrics-autoscaler-tech-preview/custom-metrics-autoscaler-rhel8:2.8.2-143Fixed 2023-03-06RHSA-2023:1042
Openshift Serveless 1.24openshift-serverless-1/client-kn-rhel8:1.3.1-4Fixed 2022-08-10RHSA-2022:6040
Openshift Serveless 1.24openshift-serverless-1/eventing-apiserver-receive-adapter-rhel8:1.3.2-3Fixed 2022-08-10RHSA-2022:6040
Openshift Serveless 1.24openshift-serverless-1/eventing-controller-rhel8:1.3.2-3Fixed 2022-08-10RHSA-2022:6040
Openshift Serveless 1.24openshift-serverless-1/eventing-in-memory-channel-controller-rhel8:1.3.2-3Fixed 2022-08-10RHSA-2022:6040
Openshift Serveless 1.24openshift-serverless-1/eventing-in-memory-channel-dispatcher-rhel8:1.3.2-3Fixed 2022-08-10RHSA-2022:6040
Openshift Serveless 1.24openshift-serverless-1/eventing-kafka-broker-controller-rhel8:1.3.2-2Fixed 2022-08-10RHSA-2022:6040
Openshift Serveless 1.24openshift-serverless-1/eventing-kafka-broker-dispatcher-rhel8:1.3.2-2Fixed 2022-08-10RHSA-2022:6040
Openshift Serveless 1.24openshift-serverless-1/eventing-kafka-broker-post-install-rhel8:1.3.2-2Fixed 2022-08-10RHSA-2022:6040
Migration Toolkit for Virtualizationmigration-toolkit-virtualization/mtv-controller-rhel9Affected
OpenShift Developer Tools and ServicesodoAffected
OpenShift Pipelinesopenshift-pipelines-clientAffected
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/gatekeeper-rhel8-operatorAffected
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/subctl-rhel9Affected
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/volsync-rhel9Affected
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/work-rhel8Affected
Red Hat Advanced Cluster Security 3advanced-cluster-security/rhacs-main-rhel8Affected
Red Hat Ansible Automation Platform 2openshift-clientsAffected
Red Hat Ceph Storage 3golangOut of support scope
76 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2022-30635.

Attack patterns (CAPEC)

  • CAPEC-230 Serialized Data with Nested Payloads Likelihood: Medium · Severity: High
  • CAPEC-231 Oversized Serialized Data Payloads Likelihood: Medium · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON