CVE-2022-30636

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

HIGH
7.5
CVSS Score
Published: July 2, 2024 at 07:51 PM UTC
Updated: June 17, 2026 at 04:43 AM UTC
2 products affected across 2 vendorsCryptoAcme Autocert

Using golang.org/x/crypto/acme/autocert by golang.org/x/crypto?

Get instant alerts when new vulnerabilities affect golang.org/x/crypto/acme/autocert - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.5
Exploit prediction
EPSS 0.6%
SSVC
PoC

Description

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 0.0.0-20220525230936-793ad666bf5e
Affected range stops below 0.0.0-20220525230936-793ad666bf5e, so it looks safe — our inference, not a vendor statement
v < 0.0.0-20220525230936-793ad666bf5e
Affected range stops below 0.0.0-20220525230936-793ad666bf5e, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet, and no fixed version or vendor advisory is recorded against it.

SSVC — Action Prioritization

SSVCPoCAutomatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

7.5HIGHCISA-ADP
Attack Vector
NETWORK
Complexity
LOW
Privileges
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
NONE
Availability
NONE
Vector?

Quick Info

StatusDEFERRED

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card