# CVE-2022-30632: Stack exhaustion on crafted paths in path/filepath

- Severity: High 7.5 (CVSS:3.1, scored by NVD) `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-20T17:02:29.000Z
- Modified: 2026-09-08T08:47:48.415Z
- Also known as: GO-2022-0522, BIT-GOLANG-2022-30632
- Weaknesses: CWE-674
- Assigned by: Go

## Description

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.

(As written by CVE List.)

## Affected

- path/filepath: 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

- 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/417066> (advisory, fix, patch, vendor-advisory)
- <https://go.googlesource.com/go/+/ac68c6c683409f98250d34ad282b9e1b0c9095ef> (advisory, fix, mailing-list, patch, vendor-advisory)
- <https://go.dev/issue/53416> (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-0522> (advisory, vendor-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-30632> (web)

## Sources

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

---

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