CVE-2022-30636
published 2024-07-02CVE-2022-30636: httpTokenCacheKey uses path.Base to extract the expected HTTP-01 token value to lookup in the DirCache implementation. On Windows, path.Base acts differently…
PriorityP343high7.5CVSS 3.1
AVNACLPRNUINSUCHINAN
EPSS
0.63%
45.7th percentile
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.
Affected
3 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | golang-go.crypto | < golang-go.crypto 1:0.0~git20220829.c86fa9a-1 (bookworm) | golang-go.crypto 1:0.0~git20220829.c86fa9a-1 (bookworm) |
| golang.org | x_crypto | >= 0 < 0.0.0-20220525230936-793ad666bf5e | 0.0.0-20220525230936-793ad666bf5e |
| golang.org | x_crypto_golang.org_x_crypto_acme_autocert | < 0.0.0-20220525230936-793ad666bf5e | 0.0.0-20220525230936-793ad666bf5e |
CVSS provenance
nvdv3.17.5HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
osv7.5HIGH
vendor_debian7.5LOW
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
OSV
Limited directory traversal vulnerability on Windows in golang.org/x/crypto
osv·2024-07-02
CVE-2022-30636 Limited directory traversal vulnerability on Windows in golang.org/x/crypto
Limited directory traversal vulnerability on Windows in golang.org/x/crypto
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.
OSV
CVE-2022-30636: httpTokenCacheKey uses path
osv·2024-07-02·CVSS 7.5
CVE-2022-30636 [HIGH] CVE-2022-30636: httpTokenCacheKey uses path
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.
Debian
CVE-2022-30636: golang-go.crypto - httpTokenCacheKey uses path.Base to extract the expected HTTP-01 token value to ...
vendor_debian·2022·CVSS 7.5
CVE-2022-30636 [HIGH] CVE-2022-30636: golang-go.crypto - httpTokenCacheKey uses path.Base to extract the expected HTTP-01 token value to ...
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.
Scope: local
bookworm: resolved (fixed in 1:0.0~git20220829.c86fa9a-1)
bullseye: open
forky: resolved (fixed in 1:0.0~git20220829.c86fa9a-1)
sid: resolved (
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
2024-07-02
Published