CVE-2022-30630Golang Go
High 7.5 No auth needed
Follow: this CVE · Golang · Golang Go We alert you by email or Slack (account required).
- Priority
- 60
- CVSS 3.1
- 7.5
- EPSS
- 1.6% probability of exploitation in 30 days · percentile 76
- Auth required
- No
- Published
- Aug 10, 2022
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-674
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
What happens
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.
What to do
- Apply the vendor's security update for Go.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Go | stdlib |
< 1.17.12 |
1.17.12 |
go get stdlib@v1.17.12 |
| Go | stdlib |
≥ 1.18.0-0 < 1.18.4 |
1.18.4 |
go get stdlib@v1.18.4 |
Per OSV / GitHub Advisories (GO-2022-0527). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| golang | go | < 1.17.12 |
| golang | go | ≥ 1.18.0 < 1.18.4 |
Official advisories
- Red Hat Security Advisory: container-tools:4.0 security and bug fix update · Red Hat · RHSA-2023:2802 · Oct 21, 2024 Medium
- Red Hat Security Advisory: container-tools:rhel8 security, bug fix, and enhancement update · Red Hat · RHSA-2023:2758 · Oct 21, 2024 Medium
- Red Hat Security Advisory: container-tools:3.0 security update · Red Hat · RHSA-2022:7529 · Oct 21, 2024 Medium
Also: Red Hat (+12)
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- go.dev Patch Vendor Advisory
- go.dev Issue Tracking Vendor Advisory
- go.googlesource.com Mailing List Patch Vendor Advisory
- groups.google.com Mailing List Vendor Advisory
- pkg.go.dev Vendor Advisory