CVEfocus › CVE database › CVE-2022-30636

CVE-2022-30636Limited directory traversal vulnerability on Windows in golang.org/x/crypto

CVSS 7.5 HighEPSS 0.9% (higher than 57% of CVEs)Published 2024-07-02Updated 2024-08-07Assigner: Go

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.

What to do

Fixed builds are available from Debian, Go: see the table below for the fixed version per release.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

4Fixed
13Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 24.04golang-1.21Not affected
vulnerable_code_not_present
Ubuntu 24.04golang-1.22Not affected
vulnerable_code_not_present
Ubuntu 22.04golang-1.17Not affected
vulnerable_code_not_present
Ubuntu 22.04golang-1.18Not affected
vulnerable_code_not_present
Ubuntu 22.04golang-1.20Not affected
vulnerable_code_not_present
Ubuntu 22.04golang-1.21Not affected
vulnerable_code_not_present
Ubuntu 22.04golang-1.22Not affected
vulnerable_code_not_present
Ubuntu 20.04golang-1.13Not affected
vulnerable_code_not_present
Ubuntu 20.04golang-1.14Not affected
vulnerable_code_not_present
Ubuntu 20.04golang-1.18Not affected
vulnerable_code_not_present
Ubuntu 20.04golang-1.20Not affected
vulnerable_code_not_present
Ubuntu 20.04golang-1.21Not affected
vulnerable_code_not_present
Ubuntu 20.04golang-1.22Not affected
vulnerable_code_not_present
Debian 14golang-go.cryptoFixed1:0.0~git20220829.c86fa9a-1DEBIAN-CVE-2022-30636
Debian 13golang-go.cryptoFixed1:0.0~git20220829.c86fa9a-1DEBIAN-CVE-2022-30636
Debian 12golang-go.cryptoFixed1:0.0~git20220829.c86fa9a-1DEBIAN-CVE-2022-30636
Go librarygolang.org/x/cryptoFixed0.0.0-20220525230936-793ad666bf5eGO-2024-2961

What the vendor says

As published in the CVE record by Go, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.