{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2022-30636","id":"CVE-2022-30636","title":"Limited directory traversal vulnerability on Windows in golang.org/x/crypto","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","descriptionLong":"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.","published":"2024-07-02T19:51:46.635Z","updated":"2026-06-17T04:43:59.593Z","reserved":"2022-05-12T19:48:54.308Z","status":"Deferred","rejected":false,"assigner":"Go","metric":{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","rating":"high","source":"CISA-ADP"},"metrics":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","rating":"high","source":"CISA-ADP"}],"rating":"high","products":["golang.org/x/crypto/acme/autocert"],"affectedProducts":[{"vendor":"golang.org/x/crypto","product":"golang.org/x/crypto/acme/autocert","defaultStatus":"unaffected","versions":[{"version":"0","lessThan":"0.0.0-20220525230936-793ad666bf5e","status":"affected","versionType":"semver"}],"platforms":["windows"]}],"packages":[{"ecosystem":"Go","name":"golang.org/x/crypto","purl":"pkg:golang/golang.org/x/crypto","ranges":["<0.0.0-20220525230936-793ad666bf5e"],"fixed":["0.0.0-20220525230936-793ad666bf5e"],"advisory":"GO-2024-2961"}],"cwes":[],"aliases":["GO-2024-2961"],"references":[{"url":"https://go.dev/cl/408694","tags":["x_transferred","web","fix"]},{"url":"https://go.dev/issue/53082","tags":["x_transferred","web","report"]},{"url":"https://pkg.go.dev/vuln/GO-2024-2961","tags":["x_transferred","web"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial"},"epss":0.00637,"epssPercentile":0.51352,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2022-30636","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-30636","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2022-30636","ok":true,"note":"1 package"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2022-30636","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":["go"],"critical":[],"attention":null}