Read the docs
TI-2022-12772 Aliases CVE-2022-30636

Limited directory traversal vulnerability on Windows in golang.org/x/crypto

Priority HIGH 72Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Impact type
—
Confidentiality · integrity · availability
High · None · None
Fix status
Fixed

Attack profile from CVSS 3.1 · CISA ADP. Fix status from CNA.

Summary

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.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.00637 50th percentileScored 2026-11-07
Fix Fixed golang.org/x/crypto/acme/autocert (golang.org/x/crypto): 0.0.0-20220525230936-793ad666bf5e

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
Automatable
Yes
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
Go standard librarygolang.org/x/crypto/acme/autocertbefore 0.0.0-20220525230936-793ad666bf5e0.0.0-20220525230936-793ad666bf5ePatch availableCNA
  • golang.org/x/crypto/acme/autocert VendorGo standard library Affected before 0.0.0-20220525230936-793ad666bf5e Fixed in 0.0.0-20220525230936-793ad666bf5e Patch available CNA

CPE names CISA-ADP · 1

CPEVersionsRoleVendor
cpe:2.3:a:golang:crypto:-:*:*:*:*:*:*:*not specified by CISA-ADP—Go standard library
  • cpe:2.3:a:golang:crypto:-:*:*:*:*:*:*:* Versions not specified by CISA-ADP — ·Go standard library

Remediation

  • Fix · CNA golang.org/x/crypto/acme/autocert (golang.org/x/crypto) Fixed in 0.0.0-20220525230936-793ad666bf5e

Timeline

  1. 2026-10-02 Threatist record created from CVE-2022-30636
  2. 2026-10-25 EPSS moved to the 50th–90th percentile

References

  • TI-2020-00578 Improper certificate validation in Microsoft Windows KEVCVSS 3.1HIGH 8.1
  • TI-2023-23979 The HTTP/2 protocol allows a denial of service (server resource consumption) because… KEVCVSS 3.1HIGH 7.5
  • TI-2023-24278 HTTP/2 CONTINUATION flood in net/http CVSS 3.1HIGH 7.5
  • TI-2018-05208 The "go get" implementation in Go 1.9.4, when the -insecure command-line option is used… CVSS 3.1HIGH 8.8
  • TI-2024-16309 Panic when parsing invalid palette-color images in golang.org/x/image CVSS 3.1HIGH 7.5
  • TI-2022-20112 Request smuggling due to improper request handling in golang.org/x/net/http2/h2c CVSS 3.1HIGH 7.5
See all 297 →

Sources

This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences