CVE-2022-30630: Stack exhaustion in Glob on certain paths in io/fs

Published Jul 12, 2022
·
Updated

A flaw was found in the golang standard library, io/fs. Calling Glob on a path that contains a large number of path separators can cause a panic issue due to stack exhaustion. This could allow an attacker to impact availability.

Other sources

Calling Glob on a path which contains a large number of path separators can cause a panic due to stack exhaustion.

Red Hat

Golang Go is vulnerable to a denial of service, caused by an uncontrolled recursion flaw in Glob in io/fs due to stack exhaustion. By sending a specially-crafted request using a path which contains a large number of path separators, a remote attacker could exploit this vulnerability to cause a panic.

IBM

Uncontrolled recursion in Glob in io/fs before Go 1.17.12 and Go 1.18.4 allows an attacker to cause a panic due to stack exhaustion via a path which contains a large number of path separators.

Affected Software

21 affected componentsFixes available
redhat/skupper-cli<0:1.0.2-2.el8
0:1.0.2-2.el8
redhat/openshift-serverless-clients<0:1.3.1-4.el8
0:1.3.1-4.el8
redhat/go-toolset<1.17-golang-0:1.17.12-1.el7_9
1.17-golang-0:1.17.12-1.el7_9
redhat/git-lfs<0:2.13.3-3.el8_6
0:2.13.3-3.el8_6
redhat/grafana<0:7.5.15-3.el8
0:7.5.15-3.el8
redhat/grafana-pcp<0:3.2.0-2.el8
0:3.2.0-2.el8
redhat/golang<0:1.17.12-1.el9_0
0:1.17.12-1.el9_0
redhat/grafana<0:7.5.15-3.el9
0:7.5.15-3.el9
redhat/toolbox<0:0.0.99.3-5.el9
0:0.0.99.3-5.el9
redhat/grafana-pcp<0:3.2.0-3.el9
0:3.2.0-3.el9
redhat/git-lfs<0:3.2.0-1.el9
0:3.2.0-1.el9
redhat/etcd<0:3.3.23-12.el8
0:3.3.23-12.el8
redhat/kubevirt<0:4.12.0-1057.el7
0:4.12.0-1057.el7
redhat/kubevirt<0:4.12.0-1057.el8
0:4.12.0-1057.el8
debian/golang-1.15
1.15.15-1~deb11u4
debian/golang-1.19
1.19.8-2
IBM Concert Software<=1.0.0 - 1.0.1
Golang GO<1.17.12
Golang GO>=1.18.0<1.18.4
redhat/golang<1.18.4
1.18.4
redhat/golang<1.17.12
1.17.12

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade redhat/skupper-cli to a version that resolves this vulnerability.

    Fixed in 0:1.0.2-2.el8
  2. Upgrade

    Upgrade redhat/openshift-serverless-clients to a version that resolves this vulnerability.

    Fixed in 0:1.3.1-4.el8
  3. Upgrade

    Upgrade redhat/go-toolset to a version that resolves this vulnerability.

    Fixed in 1.17-golang-0:1.17.12-1.el7_9
  4. Upgrade

    Upgrade redhat/git-lfs to a version that resolves this vulnerability.

    Fixed in 0:2.13.3-3.el8_6
  5. Upgrade

    Upgrade redhat/grafana to a version that resolves this vulnerability.

    Fixed in 0:7.5.15-3.el8
  6. Upgrade

    Upgrade redhat/grafana-pcp to a version that resolves this vulnerability.

    Fixed in 0:3.2.0-2.el8
  7. Upgrade

    Upgrade redhat/golang to a version that resolves this vulnerability.

    Fixed in 0:1.17.12-1.el9_0
  8. Upgrade

    Upgrade redhat/grafana to a version that resolves this vulnerability.

    Fixed in 0:7.5.15-3.el9
  9. Upgrade

    Upgrade redhat/toolbox to a version that resolves this vulnerability.

    Fixed in 0:0.0.99.3-5.el9
  10. Upgrade

    Upgrade redhat/grafana-pcp to a version that resolves this vulnerability.

    Fixed in 0:3.2.0-3.el9
  11. Upgrade

    Upgrade redhat/git-lfs to a version that resolves this vulnerability.

    Fixed in 0:3.2.0-1.el9
  12. Upgrade

    Upgrade redhat/etcd to a version that resolves this vulnerability.

    Fixed in 0:3.3.23-12.el8
  13. Upgrade

    Upgrade redhat/kubevirt to a version that resolves this vulnerability.

    Fixed in 0:4.12.0-1057.el7
  14. Upgrade

    Upgrade redhat/kubevirt to a version that resolves this vulnerability.

    Fixed in 0:4.12.0-1057.el8
  15. Upgrade

    Upgrade debian/golang-1.15 to a version that resolves this vulnerability.

    Fixed in 1.15.15-1~deb11u4
  16. Upgrade

    Upgrade debian/golang-1.19 to a version that resolves this vulnerability.

    Fixed in 1.19.8-2
  17. Upgrade

    Upgrade redhat/golang to a version that resolves this vulnerability.

    Fixed in 1.18.4
  18. Upgrade

    Upgrade redhat/golang to a version that resolves this vulnerability.

    Fixed in 1.17.12
  19. Upgrade

    Upgrade golang/io/fs to a version that resolves this vulnerability.

    Fixed in 1.17.12
  20. Upgrade

    Upgrade golang/io/fs to a version that resolves this vulnerability.

    Fixed in 1.18.4

Event History

Jul 12, 2022
CVE Published
12:00 AM
Jul 14, 2022
Data Sourced
via Red Hat·08:30 PM
DescriptionSeverityAffected Software
Aug 9, 2022
CVE Published
via MITRE·08:17 PM
Data Sourced
via MITRE·08:17 PM
DescriptionWeakness
Aug 10, 2022
Data Sourced
via NVD·08:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Oct 10, 2024
Data Sourced
via Ubuntu·01:15 PM
RemedyDescriptionSeverityAffected Software
Data Sourced
via Launchpad·01:16 PM
Description
Oct 21, 2024
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the vulnerability ID of this flaw?

The vulnerability ID of this flaw is CVE-2022-30630.

2

What is the severity of CVE-2022-30630?

The severity of CVE-2022-30630 is high.

3

What is the affected software?

The affected software includes golang versions up to 1.17.12 and 1.18.4, skupper-cli version up to 1.0.2-2.el8, openshift-serverless-clients version up to 1.3.1-4.el8, go-toolset version up to 1.17-golang-1.17.12-1.el7_9, git-lfs version up to 2.13.3-3.el8_6, grafana versions up to 7.5.15-3.el8 and 7.5.15-3.el9, grafana-pcp versions up to 3.2.0-2.el8 and 3.2.0-3.el9, etcd version up to 3.3.23-12.el8, kubevirt versions up to 4.12.0-1057.el7 and 4.12.0-1057.el8, and Golang Go versions up to 1.17.12 and between 1.18.0 and 1.18.4.

4

How can an attacker exploit this vulnerability?

An attacker can exploit this vulnerability by calling Glob on a path that contains a large number of path separators, causing a panic issue due to stack exhaustion.

5

How can I fix CVE-2022-30630?

To fix CVE-2022-30630, you need to update golang to version 1.17.12 or 1.18.4, skupper-cli to version 1.0.2-2.el8, openshift-serverless-clients to version 1.3.1-4.el8, go-toolset to version 1.17-golang-1.17.12-1.el7_9, git-lfs to version 2.13.3-3.el8_6, grafana to version 7.5.15-3.el8 or 7.5.15-3.el9, grafana-pcp to version 3.2.0-2.el8 or 3.2.0-3.el9, etcd to version 3.3.23-12.el8, kubevirt to version 4.12.0-1057.el7 or 4.12.0-1057.el8, or Golang Go to version 1.17.12 or between 1.18.0 and 1.18.4.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203
CVE-2022-30630 - Stack exhaustion in Glob on certain paths in io/fs - SecAlerts