CVE-2022-30636
published high CVSS 3.1 · 7.5Limited directory traversal vulnerability on Windows in golang.org/x/crypto
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| golang.org/x/crypto | — | golang.org/x/crypto/acme/autocert0 to < 0.0.0-20220525230936-793ad666bf5e · Other versions: unaffected · Platforms: windows | Affected | Not stated | Go |
| golang | — | crypto0 to < 0.0.0-20220525230936-793ad666bf5e · Other versions: unknown | Affected | Not stated | CISA-ADP |
Description
httpTokenCacheKey uses path.Base to extract the expected HTTP-01 token value to lookup in the DirCache implementation. On Windows, path.Base acts differently to filepath.Base, since Windows uses a different path separator (\ vs. /), allowing a user to provide a relative path, i.e. .well-known/acme-challenge/..\..\asd becomes ..\..\asd. The extracted path is then suffixed with +http-01, joined with the cache directory, and opened. Since the controlled path is suffixed with +http-01 before opening, the impact of this is significantly limited, since it only allows reading arbitrary files on the system if and only if they have this suffix.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.5 / 10
- Severity
- high
- Provider
- CISA-ADP · adp
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| golang.org/x/crypto | golang.org/x/crypto/acme/autocert | 0 to < 0.0.0-20220525230936-793ad666bf5e (affected · semver)Default: unaffected | Go · cna |
| golang | crypto | 0 to < 0.0.0-20220525230936-793ad666bf5e (affected · custom)Default: unknown | CISA-ADP · adp |
Weaknesses
1- CWE 22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
References
3Provider assertions
3Go · cna
Limited directory traversal vulnerability on Windows in golang.org/x/crypto
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 17dfe7b22f88d63d8b1cf3e3ce33665d4781d183eb3b3e1666070b533330b9e2
- Ingested
- 23 Sep 2026, 08:00:17 UTC
- Source record
- Official CVE record