cve.bz

CVE-2022-24921 Uncontrolled Recursion

7.5 highEPSS 3.2%Fix available

High (7.5). EPSS 3.2% estimated probability of exploitation activity in the next 30 days. Fixed in stdlib 1.16.15, 1.17.8.

On this page
regexp.Compile in Go before 1.16.15 and 1.17.x before 1.17.8 allows stack exhaustion via a deeply nested expression.

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
3.2% (unchanged from 3.2% a week ago; 3.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 89th percentile. Scored 2026-11-21. 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-24921 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-24921?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-24921?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-24921 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 NVD's CPE matches.

ProductAffected
golang:gobefore 1.16.15
golang:gofrom 1.17 before 1.17.8
debian:debian_linux9.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GO-2021-0347Gostdlib<1.16.15
>=1.17.0-0 <1.17.8
1.16.15, 1.17.8

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian9golang-1.71.7.4-2+deb9u5DLA-2985-1
Debian9golang-1.81.8.1-1+deb9u5DLA-2986-1
Debian10golang-1.111.11.6-1+deb10u6DLA-3395-1
Debian11golang-1.151.15.15-1~deb11u4DEBIAN-CVE-2022-24921
Ubuntu14.04:LTSgolang-1.10no fix listedUBUNTU-CVE-2022-24921
Ubuntu16.04:LTSgolang-1.6, golang-1.10no fix listedUBUNTU-CVE-2022-24921
Ubuntu18.04:LTSgolang-1.8, golang-1.9, golang-1.10no fix listedUBUNTU-CVE-2022-24921
Ubuntu20.04:LTSgolang-1.13, golang-1.14no fix listedUBUNTU-CVE-2022-24921
UbuntuPro:16.04:LTS, Pro:22.04:LTSgolang-1.13no fix listedUBUNTU-CVE-2022-24921
UbuntuPro:18.04:LTSgolang-1.13, golang-1.16no fix listedUBUNTU-CVE-2022-24921
UbuntuPro:20.04:LTSgolang-1.16no fix listedUBUNTU-CVE-2022-24921
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-golang, go-toolset-1.17-golang-bin, go-toolset-1.17-golang-src and 4 more0:1.17.10-1.el7_9RHSA-2022:5415
Red Hatenterprise_linux:8::appstreamdelve, delve-debuginfo, delve-debugsource0:1.7.2-1.module+el8.6.0+12972+ebab5911RHSA-2022:5337
Red Hatenterprise_linux:8::appstreamgolang, go-toolset, golang-bin and 5 more0:1.17.10-1.module+el8.6.0+15486+6d4da7dbRHSA-2022:5337
Red Hatenterprise_linux:9::appstreamgolang, go-toolset, golang-bin and 5 more0:1.17.12-1.el9_0RHSA-2022:5799
Red Hatopenshift:4.10::el7cri-o, cri-o-debuginfo0:1.23.3-11.rhaos4.10.gitddf4b1a.1.el7RHSA-2022:5729
Red Hatopenshift:4.10::el7cri-tools, cri-tools-debuginfo0:1.23.0-1.1.el7RHSA-2022:5729
Red Hatopenshift:4.10::el7openshift, openshift-hyperkube0:4.10.0-202207192015.p0.g012e945.assembly.stream.el7RHSA-2022:5729
Red Hatopenshift:4.10::el7openshift-clients, openshift-clients-redistributable0:4.10.0-202207192015.p0.g45460a5.assembly.stream.el7RHSA-2022:5729
Red Hatopenshift:4.10::el8atomic-openshift-service-idler0:4.10.0-202207192015.p0.g39cfc66.assembly.stream.el8RHSA-2022:5729
Red Hatopenshift:4.10::el8cri-o, cri-o-debuginfo, cri-o-debugsource0:1.23.3-11.rhaos4.10.gitddf4b1a.1.el8RHSA-2022:5729
158 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.161.16.15-150000.1.46.1SUSE-SU-2022:1164-1
SUSEEnterprise Storage 7, Linux Enterprise High Performance Computing 15 SP2-ESPOS, Linux Enterprise High Performance Computing 15 SP2-LTSS and 8 morego1.171.17.8-150000.1.25.1SUSE-SU-2022:1167-1
openSUSELeap 15.3go1.161.16.15-150000.1.46.1SUSE-SU-2022:1164-1
openSUSELeap 15.3go1.171.17.8-150000.1.25.1SUSE-SU-2022:1167-1
openSUSETumbleweedgo1.161.16.15-1.1openSUSE-SU-2024:11892-1
openSUSETumbleweedgo1.171.17.8-1.1openSUSE-SU-2024:11893-1
Rocky Linux8delve0:1.7.2-1.module+el8.6.0+824+8e984c20RLSA-2022:5337
Rocky Linux8golang, go-toolset0:1.17.10-1.module+el8.6.0+986+efe4cea4RLSA-2022:5337
Rocky Linux9golang, go-toolset0:1.17.12-1.el9_0RLSA-2022:5799
Alpinev3.14go1.16.15-r0ALPINE-CVE-2022-24921
Alpinev3.15go1.17.9-r0ALPINE-CVE-2022-24921
Alpinev3.16, v3.17, v3.18 and 6 morego1.17.8-r0ALPINE-CVE-2022-24921
Azure Linux2golang1.17.8-1AZL-8898
Azure Linux3golangno fix listedAZL-79112 AZL-98922

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; 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

This flaw has been rated as a Moderate impact flaw because the exploitation of this flaw requires that an affected application accept arbitrarily long regexps from untrusted sources, which has inherent risks (even without this flaw), especially involving impacts to application availability.

ProductPackageStateAdvisory
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
Openshift Serveless 1.24openshift-serverless-1/eventing-kafka-broker-webhook-rhel8:1.3.2-2Fixed 2022-08-10RHSA-2022:6040
Openshift Serveless 1.24openshift-serverless-1/eventing-mtbroker-filter-rhel8:1.3.2-3Fixed 2022-08-10RHSA-2022:6040
Migration Toolkit for ContainerscpmaAffected
Migration Toolkit for Containersrhmtc/openshift-migration-velero-rhel8Affected
OpenShift Serverlessknative-eventingAffected
OpenShift Service Mesh 2.0servicemeshAffected
OpenShift Service Mesh 2.0servicemesh-grafanaAffected
OpenShift Service Mesh 2.1servicemesh-grafanaWill not fix
Red Hat Ceph Storage 2golangOut of support scope
Red Hat Ceph Storage 2grafanaOut of support scope
Red Hat Ceph Storage 3golangOut of support scope
Red Hat Ceph Storage 3golang-github-prometheus-node_exporterOut of support scope
322 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-24921.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-23-047-04Siemens Brownfield Connectivity Gateway2023-02-14MultipleBrownfield Connectivity - Gatewaynone listed

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

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