cve.bz

CVE-2022-30631 golang go: Uncontrolled Recursion

7.5 highEPSS 2.2%Fix available

High (7.5) in golang go. EPSS 2.2% 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 Reader.Read in compress/gzip before Go 1.17.12 and Go 1.18.4 allows an attacker to cause a panic due to stack exhaustion via an archive containing a large number of concatenated 0-length compressed files.

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
2.2% (unchanged from 2.2% a week ago; 2.1% 30 days ago) estimated probability of exploitation activity in the next 30 days; 83rd 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: no · Technical impact: partial, assessed 2025-10-20. 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-30631 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-30631?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-30631?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-30631 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 compress/gzipbefore 1.17.12
Go standard library compress/gzipfrom 1.18.0-0 before 1.18.4

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GO-2022-0524Gostdlib<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-30631
Ubuntu18.04:LTSgolang-1.181.18.1-1ubuntu1~18.04.4UBUNTU-CVE-2022-30631 USN-6038-1
Ubuntu20.04:LTSgolang-1.131.13.8-1ubuntu1.2UBUNTU-CVE-2022-30631 USN-6038-2
Ubuntu20.04:LTSgolang-1.161.16.2-0ubuntu1~20.04.1UBUNTU-CVE-2022-30631 USN-6038-2
Ubuntu20.04:LTSgolang-1.181.18.1-1ubuntu1~20.04.2UBUNTU-CVE-2022-30631 USN-6038-1
Ubuntu22.04:LTSgolang-1.131.13.8-1ubuntu2.22.04.2UBUNTU-CVE-2022-30631 USN-6038-2
Ubuntu22.04:LTSgolang-1.181.18.1-1ubuntu1.1UBUNTU-CVE-2022-30631 USN-6038-1
UbuntuPro:16.04:LTSgolang-1.131.13.8-1ubuntu1~16.04.3+esm3UBUNTU-CVE-2022-30631 USN-6038-2
UbuntuPro:18.04:LTSgolang-1.131.13.8-1ubuntu1~18.04.4+esm1UBUNTU-CVE-2022-30631 USN-6038-2
UbuntuPro:18.04:LTSgolang-1.161.16.2-0ubuntu1~18.04.2+esm1UBUNTU-CVE-2022-30631 USN-6038-2
Red Hatapplication_interconnect:1::el8skupper-cli0:1.0.2-2.el8RHSA-2022:6113
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 more0:1.19.9-6.module+el8.7.0+16212+65e1b35fRHSA-2022:7529
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:29-2.module+el8.7.0+16212+65e1b35fRHSA-2022:7529
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.0.26-3.module+el8.7.0+16212+65e1b35fRHSA-2022:7529
278 more for Red Hat in the JSON and on Red Hat's page.

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. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

To exploit CVE-2022-30631, an attacker supplies a specially crafted gzip archive to a Go application that uses a vulnerable version of the compress/gzip package without adequate input validation. This can lead to uncontrolled recursion, resulting in stack exhaustion and causing the application to panic, thereby affecting its availability.

As this is merely a DoS and there is no known way to control the instruction pointer, RH ProdSec has set the impact of this vulnerabilty to "Moderate".

ProductPackageStateAdvisory
Application Interconnect 1 for RHEL 8skupper-cli-0:1.0.2-2.el8Fixed 2022-08-18RHSA-2022:6113
Logging subsystem for Red Hat OpenShift 5.4openshift-logging/cluster-logging-rhel8-operator:v5.4.5-12Fixed 2022-09-06RHSA-2022:6183
Logging subsystem for Red Hat OpenShift 5.4openshift-logging/elasticsearch-proxy-rhel8:v1.0.0-267Fixed 2022-09-06RHSA-2022:6183
Logging subsystem for Red Hat OpenShift 5.4openshift-logging/elasticsearch-rhel8-operator:v5.4.5-9Fixed 2022-09-06RHSA-2022:6183
Logging subsystem for Red Hat OpenShift 5.4openshift-logging/eventrouter-rhel8:v0.4.0-26Fixed 2022-09-06RHSA-2022:6183
Logging subsystem for Red Hat OpenShift 5.4openshift-logging/log-file-metric-exporter-rhel8:v1.1.0-48Fixed 2022-09-06RHSA-2022:6183
Logging subsystem for Red Hat OpenShift 5.4openshift-logging/logging-loki-rhel8:v2.5.0-42Fixed 2022-09-06RHSA-2022:6183
Logging subsystem for Red Hat OpenShift 5.4openshift-logging/lokistack-gateway-rhel8:v5.4.5-11Fixed 2022-09-06RHSA-2022:6183
Logging subsystem for Red Hat OpenShift 5.4openshift-logging/opa-openshift-rhel8:v5.4.5-4Fixed 2022-09-06RHSA-2022:6183
Node Healthcheck Operator 0.3 for RHEL 8workload-availability/node-healthcheck-rhel8-operator:v0.3.1-1Fixed 2022-08-25RHSA-2022:6187
Migration Toolkit for Virtualizationmigration-toolkit-virtualization/mtv-controller-rhel9Affected
Migration Toolkit for Virtualizationmigration-toolkit-virtualization/mtv-must-gather-api-rhel8Affected
Node HealthCheck Operatorworkload-availability/node-healthcheck-rhel8-operatorAffected
Node Maintenance Operatorworkload-availability/node-maintenance-rhel8-operatorAffected
OpenShift API for Data Protectionoadp/oadp-registry-rhel8Affected
OpenShift Developer Tools and ServiceshelmWill not fix
OpenShift Developer Tools and Servicesocp-tools-4/jenkins-rhel8Not affected
OpenShift Developer Tools and ServicesodoAffected
OpenShift Pipelinesopenshift-pipelines-clientAffected
Red Hat 3scale API Management Platform 23scale-amp2/3scale-rhel7-operatorWill not fix
532 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-30631.

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