{"id":"CVE-2022-30636","aliases":["DEBIAN-CVE-2022-30636","EUVD-2022-52467","GO-2024-2961"],"status":"published","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 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.","severity":{"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","level":"high","assessor":"adp","from":"cve"},"epss":{"day":"2026-11-09","score":0.00637,"percentile":0.50839,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"published":"2024-07-02T19:27:52Z","modified":"2026-10-15T08:03:04Z","fixes":[{"ecosystem":"Debian:12","package":"golang-go.crypto","fixed_in":["1:0.0~git20220829.c86fa9a-1"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"golang-go.crypto","fixed_in":["1:0.0~git20220829.c86fa9a-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"golang-go.crypto","fixed_in":["1:0.0~git20220829.c86fa9a-1"],"sources":["osv"]},{"ecosystem":"Go","package":"golang.org/x/crypto","fixed_in":["0.0.0-20220525230936-793ad666bf5e"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Debian:12","package":"golang-go.crypto","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:0.0~git20220829.c86fa9a-1"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"golang-go.crypto","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:0.0~git20220829.c86fa9a-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"golang-go.crypto","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:0.0~git20220829.c86fa9a-1"}]}]},{"source":"osv","ecosystem":"Go","package":"golang.org/x/crypto","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.0.0-20220525230936-793ad666bf5e"}]}]}],"products":[{"vendor":"golang","product":"crypto"},{"vendor":"golang.org/x/crypto","product":"golang.org/x/crypto/acme/autocert"}],"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"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2022-30636","tags":["advisory"]}],"sources":{"cve":[{"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 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.","status":"published","published":"2024-07-02T19:51:46.635Z","modified":"2024-08-07T16:21:06.868Z","cvss":[{"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","level":"high","assessor":"adp"}],"updated_at":"2026-11-02T14:34:31.184134Z"}],"euvd":[{"id":"EUVD-2022-52467","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.","status":"published","published":"2024-07-02T19:51:46Z","modified":"2024-08-07T16:21:06Z","cvss":[{"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","level":"high"}],"updated_at":"2026-11-03T01:16:10.838416Z"}],"nvd":[{"id":"CVE-2022-30636","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.","status":"published","published":"2024-07-02T20:15:05.173Z","modified":"2026-06-17T04:43:59.593Z","cvss":[{"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","level":"high","assessor":"secondary"}],"updated_at":"2026-11-02T14:07:40.49892Z"}],"osv":[{"id":"DEBIAN-CVE-2022-30636","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.","status":"published","published":"2024-07-02T20:15:05.173Z","modified":"2026-11-03T08:01:15.684374641Z","cvss":[{"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","level":"high"}],"updated_at":"2026-11-03T08:25:01.007408Z"},{"id":"CVE-2022-30636","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.","status":"published","published":"2024-07-02T20:15:05Z","modified":"2026-06-16T12:29:17.780415281Z","updated_at":"2026-11-02T15:44:25.516981Z"},{"id":"GO-2024-2961","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 the cache directory, and opened.\n\nSince 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.","status":"published","published":"2024-07-02T19:27:52Z","modified":"2026-06-16T12:29:17.908083296Z","updated_at":"2026-11-02T15:47:01.453823Z"}]}}
