# CVE-2022-30636: Limited directory traversal vulnerability on Windows in golang.org/x/crypto

- 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:H/I:N/A:N`
- 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): 0.64%, higher than 51% of CVEs (2026-12-01)
- Published: 2024-07-02T19:27:52.000Z
- Modified: 2026-06-17T04:43:59.593Z
- Also known as: GO-2024-2961
- Related: CGA-wpqm-mm33-7q49
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: Go

## 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.

(As written by CVE List.)

## Affected

- golang.org/x/crypto/acme/autocert: before 0.0.0-20220525230936-793ad666bf5e
- golang crypto: before 0.0.0-20220525230936-793ad666bf5e
- golang.org/x/crypto (Go): before 0.0.0-20220525230936-793ad666bf5e

## References

- <https://go.dev/cl/408694> (fix)
- <https://go.dev/issue/53082> (report)
- <https://pkg.go.dev/vuln/GO-2024-2961>

## Sources

- CVE List: [CVE-2022-30636](https://www.cve.org/CVERecord?id=CVE-2022-30636), CVE Terms of Use, modified 2024-08-07
- Go Vulnerability Database: [GO-2024-2961](https://pkg.go.dev/vuln/GO-2024-2961), CC-BY-4.0, modified 2026-06-16
- NVD: [CVE-2022-30636](https://nvd.nist.gov/vuln/detail/CVE-2022-30636), Public domain, modified 2026-06-17

---

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