CVE-2022-30636
Linux Debian vulnerability analysis and mitigation

Overview

The vulnerability (CVE-2022-30636) affects the golang.org/x/crypto/acme/autocert package, specifically related to the httpTokenCacheKey function. The issue was discovered in May 2022 and allows for limited directory traversal on Windows systems. The vulnerability exists in versions before v0.0.0-20220525230936-793ad666bf5e (Go Vuln DB).

Technical details

The vulnerability stems from the httpTokenCacheKey function using path.Base instead of filepath.Base to extract the expected HTTP-01 token value for DirCache implementation lookup. On Windows systems, due to different path separator handling (\ vs /), this allows users to provide relative paths. For example, '.well-known/acme-challenge/....\asd' becomes '....\asd'. The extracted path is then suffixed with '+http-01', joined with the cache directory, and opened (Go Issue).

Impact

The impact of this vulnerability is limited in scope. While it does allow for directory traversal, it only permits reading arbitrary files on the system if they have the '+http-01' suffix. This limitation significantly reduces the potential impact of the vulnerability (Go Issue).

Mitigation and workarounds

The vulnerability was fixed in golang.org/x/crypto version v0.0.0-20220525230936-793ad666bf5e through a patch that properly cleans DirCache paths. Users should upgrade to this version or later to mitigate the vulnerability (Go CL).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management