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

- Severity: High 7.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.21%, higher than 83% of CVEs (2026-12-01)
- Published: 2022-07-20T20:52:22.000Z
- Modified: 2026-09-08T08:47:49.114Z
- Also known as: GO-2022-0527, BIT-GOLANG-2022-30630
- Weaknesses: CWE-674
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Go

## Description

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.

(As written by CVE List.)

## Affected

- io/fs: before 1.17.12; from 1.18.0-0 before 1.18.4
- stdlib (Go): before 1.17.12; from 1.18.0-0 before 1.18.4
- golang go: before 1.17.12; from 1.18.0 before 1.18.4
- golang (Bitnami): before 1.17.12; from 1.18.0 before 1.18.4

## Every score

- CISA-ADP: 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`
- NVD: 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`
- Bitnami Vulnerability Database: rating High

## References

- <https://go.dev/cl/417065> (advisory, fix, patch, vendor-advisory)
- <https://go.googlesource.com/go/+/fa2d41d0ca736f3ad6b200b2a4e134364e9acc59> (advisory, fix, mailing-list, patch, vendor-advisory)
- <https://go.dev/issue/53415> (advisory, issue-tracking, report, vendor-advisory)
- <https://groups.google.com/g/golang-announce/c/nqrv9fbR0zE> (advisory, mailing-list, vendor-advisory, web)
- <https://pkg.go.dev/vuln/GO-2022-0527> (advisory, vendor-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-30630> (web)

## Sources

- CVE List: [CVE-2022-30630](https://www.cve.org/CVERecord?id=CVE-2022-30630), CVE Terms of Use, modified 2026-03-06
- Go Vulnerability Database: [GO-2022-0527](https://pkg.go.dev/vuln/GO-2022-0527), CC-BY-4.0, modified 2024-05-20
- NVD: [CVE-2022-30630](https://nvd.nist.gov/vuln/detail/CVE-2022-30630), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-GOLANG-2022-30630](https://osv.dev/vulnerability/BIT-GOLANG-2022-30630), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2022-30630 · Whole record: https://cve.day/CVE-2022-30630.json · Rebuilt by cve.day 2026-11-25T22:58:14.062Z
