{"id":"CVE-2022-30636","aliases":["CVE-2022-30636","GO-2024-2961"],"related":["CGA-wpqm-mm33-7q49"],"kind":"vulnerability","state":"published","title":"Limited directory traversal vulnerability on Windows in golang.org/x/crypto","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"httpTokenCacheKey usa path.Base para extraer el valor del token HTTP-01 esperado para buscarlo en la implementación de DirCache. En Windows, path.Base actúa de manera diferente a filepath.Base, ya que Windows usa un separador de ruta diferente (\\ vs. /), lo que permite al usuario proporcionar una ruta relativa, es decir, .well-known/acme-challenge/..\\. .\\asd se convierte en ..\\..\\asd. Luego, la ruta extraída tiene el sufijo +http-01, se une al directorio de caché y se abre. Dado que la ruta controlada tiene el sufijo +http-01 antes de abrirse, el impacto de esto es significativamente limitado, ya que solo permite leer archivos arbitrarios en el sistema si y solo si tienen este sufijo.","source":"nvd"}],"published":"2024-07-02T19:27:52.000Z","modified":"2026-06-17T04:43:59.593Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"0.0.0-20220525230936-793ad666bf5e","status":"affected"}],"vendor":"golang.org/x/crypto","product":"golang.org/x/crypto/acme/autocert","package":"golang.org/x/crypto/acme/autocert","platforms":["windows"],"source":"cvelist"},{"ranges":[{"type":"custom","introduced":"0","fixed":"0.0.0-20220525230936-793ad666bf5e","status":"affected"}],"vendor":"golang","product":"crypto","cpe":"cpe:2.3:a:golang:crypto:-:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.0.0-20220525230936-793ad666bf5e"}],"ecosystem":"Go","package":"golang.org/x/crypto","purl":"pkg:golang/golang.org/x/crypto","source":"go"}],"references":[{"url":"https://go.dev/cl/408694","tags":["fix","x-transferred"],"sources":["cvelist","go","nvd"]},{"url":"https://go.dev/issue/53082","tags":["report","x-transferred"],"sources":["cvelist","go","nvd"]},{"url":"https://pkg.go.dev/vuln/GO-2024-2961","tags":["x-transferred"],"sources":["cvelist","nvd"]}],"credits":["Juho Nurminen of Mattermost"],"assigner":"Go","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"partial","date":"2024-07-03T13:57:10.933Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-30636","url":"https://www.cve.org/CVERecord?id=CVE-2022-30636","licence":"CVE Terms of Use","modified":"2024-08-07T16:21:06.868Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2024-2961","url":"https://pkg.go.dev/vuln/GO-2024-2961","licence":"CC-BY-4.0","modified":"2026-06-16T12:29:17.908Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-30636","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-30636","licence":"Public domain","modified":"2026-06-17T04:43:59.593Z"}],"updatedAt":"2026-11-25T22:58:19.872Z","epss":{"score":0.00637,"percentile":0.51875,"date":"2026-12-01T12:00:22.000Z"}}