cve.bz

CVE-2022-30632 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 Glob in path/filepath before Go 1.17.12 and Go 1.18.4 allows an attacker to cause a panic due to stack exhaustion via a path containing a large number of path separators.

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.
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-30632 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-30632?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-30632?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-30632 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 path/filepathbefore 1.17.12
Go standard library path/filepathfrom 1.18.0-0 before 1.18.4

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GO-2022-0522Gostdlib<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-30632
Ubuntu18.04:LTSgolang-1.181.18.1-1ubuntu1~18.04.4UBUNTU-CVE-2022-30632 USN-6038-1
Ubuntu20.04:LTSgolang-1.131.13.8-1ubuntu1.2UBUNTU-CVE-2022-30632 USN-6038-2
Ubuntu20.04:LTSgolang-1.161.16.2-0ubuntu1~20.04.1UBUNTU-CVE-2022-30632 USN-6038-2
Ubuntu20.04:LTSgolang-1.181.18.1-1ubuntu1~20.04.2UBUNTU-CVE-2022-30632 USN-6038-1
Ubuntu22.04:LTSgolang-1.131.13.8-1ubuntu2.22.04.2UBUNTU-CVE-2022-30632 USN-6038-2
Ubuntu22.04:LTSgolang-1.181.18.1-1ubuntu1.1UBUNTU-CVE-2022-30632 USN-6038-1
UbuntuPro:16.04:LTSgolang-1.131.13.8-1ubuntu1~16.04.3+esm3UBUNTU-CVE-2022-30632 USN-6038-2
UbuntuPro:18.04:LTSgolang-1.131.13.8-1ubuntu1~18.04.4+esm1UBUNTU-CVE-2022-30632 USN-6038-2
UbuntuPro:18.04:LTSgolang-1.161.16.2-0ubuntu1~18.04.2+esm1UBUNTU-CVE-2022-30632 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
60 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.19.9-6.module_el8.7.0+3297+1eb250cfALSA-2022:7529
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-podman29-2.module_el8.6.0+2876+9ed4eae2ALSA-2022:7529
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.0.26-3.module_el8.7.0+3297+1eb250cfALSA-2022:7529
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.189.0-1.module_el8.6.0+3336+00d107d5ALSA-2022:7529
AlmaLinux8container-selinux2:2.189.0-1.module_el8.7.0+3297+1eb250cfALSA-2022:7529
68 more for AlmaLinux in the JSON.
Rocky Linux8buildah0:1.19.9-6.module+el8.7.0+1076+9b1c11c1RLSA-2022:7529
Rocky Linux8cockpit-podman0:29-2.module+el8.4.0+556+40122d08RLSA-2022:7529
Rocky Linux8cockpit-podman0:29-2.module+el8.5.0+709+440d5e7eRLSA-2022:7529
Rocky Linux8cockpit-podman0:29-2.module+el8.6.0+783+10209741RLSA-2022:7529
Rocky Linux8cockpit-podman0:29-2.module+el8.7.0+1076+9b1c11c1RLSA-2022:7529
Rocky Linux8cockpit-podman0:46-1.module+el8.9.0+1445+07728297RLSA-2023:2802
Rocky Linux8conmon2:2.0.26-3.module+el8.4.0+556+40122d08RLSA-2022:7529
Rocky Linux8conmon2:2.0.26-3.module+el8.7.0+1076+9b1c11c1RLSA-2022:7529
Rocky Linux8container-selinux2:2.189.0-1.module+el8.6.0+1054+50b00ff4RLSA-2022:7529
Rocky Linux8container-selinux2:2.189.0-1.module+el8.7.0+1076+9b1c11c1RLSA-2022:7529
Rocky Linux8containernetworking-plugins0:0.9.1-1.module+el8.4.0+556+40122d08RLSA-2022:7529
Rocky Linux8containernetworking-plugins0:0.9.1-1.module+el8.5.0+709+440d5e7eRLSA-2022:7529
47 more for Rocky Linux in the JSON.
Alpinev3.16, v3.17, v3.18 and 6 morego1.18.4-r0ALPINE-CVE-2022-30632
Azure Linux2golang1.18.5-1AZL-10535
Azure Linux3golangno fix listedAZL-79096 AZL-98955

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

The exploitation of this flaw will only result in a denial of service of the application via the application crashing which is why this has been rated as moderate.

ProductPackageStateAdvisory
Application Interconnect 1 for RHEL 8skupper-cli-0:1.0.2-2.el8Fixed 2022-08-18RHSA-2022:6113
Node Maintenance Operator 4.11 for RHEL 8workload-availability/node-maintenance-rhel8-operator:v4.11.1-1Fixed 2022-08-25RHSA-2022:6188
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
Migration Toolkit for Virtualizationmigration-toolkit-virtualization/mtv-controller-rhel9Affected
mirror registry for Red Hat OpenShiftmirror-registry-containerAffected
Node Maintenance Operatorworkload-availability/node-maintenance-rhel8-operatorAffected
OpenShift Developer Tools and ServiceshelmWill not fix
OpenShift Developer Tools and ServicesodoAffected
OpenShift Pipelinesopenshift-pipelines-clientAffected
Red Hat 3scale API Management Platform 23scale-amp2/3scale-rhel7-operatorAffected
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
104 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-30632.

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