{"id":"CVE-2022-30636","published":"2024-07-02T19:51:46Z","modified":"2024-08-07T16:21:06Z","title":"Limited directory traversal vulnerability on Windows in golang.org/x/crypto","vendor":"golang.org/x/crypto","product":"golang.org/x/crypto/acme/autocert","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.00637,"percentile":0.51493,"provenance":"source"},"cwes":[],"references":[{"url":"https://go.dev/cl/408694","tags":[]},{"url":"https://go.dev/issue/53082","tags":[]},{"url":"https://pkg.go.dev/vuln/GO-2024-2961","tags":[]}],"priority":{"score":15.5,"factors":[{"name":"EPSS percentile","points":10.3},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"golang-org-x-crypto","affectedVersions":[{"vendor":"golang.org/x/crypto","product":"golang.org/x/crypto/acme/autocert","versions":["< 0.0.0-20220525230936-793ad666bf5e"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2024-07-03T13:57:10.933970Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"golang.org/x/crypto","vulnerableRanges":["<0.0.0-20220525230936-793ad666bf5e"],"patched":["0.0.0-20220525230936-793ad666bf5e"],"from":["GO-2024-2961"],"provenance":"source"}],"summary":{"text":"The golang.org/x/crypto/acme/autocert package contains a directory traversal flaw on Windows: httpTokenCacheKey uses path.Base rather than filepath.Base to extract the HTTP-01 token, so backslash-separated relative paths survive and resolve outside the intended cache directory when DirCache is used. An attacker who can send HTTP requests to the challenge path can read arbitrary files on the system, but only those whose names end in the +http-01 suffix that the code appends before opening them.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:28:01Z"},"euvd":{"id":"EUVD-2022-52467","exploited":false,"provenance":"source"}}