cbcvebase.
CVE-2022-30636
published 2024-07-02

CVE-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
VendorProductVersion rangeFixed in
debiangolang-go.crypto< golang-go.crypto 1:0.0~git20220829.c86fa9a-1 (bookworm)golang-go.crypto 1:0.0~git20220829.c86fa9a-1 (bookworm)
golang.orgx_crypto>= 0 < 0.0.0-20220525230936-793ad666bf5e0.0.0-20220525230936-793ad666bf5e
golang.orgx_crypto_golang.org_x_crypto_acme_autocert< 0.0.0-20220525230936-793ad666bf5e0.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.