Cloudanix VulnDB

CVE-2022-30636

High · 7.5

CVSS

7.5

EPSS

0.6%

Published

Jul 2, 2024

CISA due date

—

Cloudanix analysis

Monitor only SSVC: Track

A flaw in how certain software handles file paths on Windows could let an outsider read a small number of specific files on the system until the software is updated.

Exploitation
Remote Unauthenticated
Attacker needs
None
Complexity
Low
Impact
Data Exposure
Component
Library
Class
Path Traversal
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

Path traversal via misuse of path.Base instead of filepath.Base on Windows allows controlled relative paths to escape a cache directory when constructing file paths for HTTP-01 ACME tokens; impact is limited to reading files that end with the +http-01 suffix.

Why it matters to the business

Attackers may read a narrow set of system files containing the required suffix, potentially exposing limited sensitive configuration or token data and creating compliance or data-leakage risk until patches are applied.

How an attack unfolds

An unauthenticated remote attacker supplies a crafted HTTP-01 challenge path containing Windows-style traversal sequences such as ..\..\; the vulnerable cache-key logic extracts the traversal string, appends the required suffix, and opens the resulting path relative to the cache directory, returning the contents of the attacker-chosen file if it matches the suffix.

How to fix it

Upgrade all affected Chromium packages to the versions that contain the fix: chromium (Chainguard) 125.0.6422.60-r0 and later, chromium (Wolfi) 125.0.6422.60-r0 and later, and the equivalent fixed releases for chromium-docker-selenium-compat, chromium-lang, and chromium-qt on both Chainguard and Wolfi.

How to confirm the fix worked

Confirm the installed package version matches or exceeds the listed fixed releases; review source or binary for replacement of path.Base with filepath.Base in the httpTokenCacheKey path construction; test with a crafted Windows-style traversal path to verify the cache no longer escapes the intended directory.

Typical attack path

  1. Identify an ACME client or server component using the vulnerable DirCache implementation on Windows.
  2. Craft an HTTP-01 token request containing a relative path with ..\ sequences that resolves to a desired target file ending in +http-01.
  3. Send the request to trigger cache lookup and file read.
  4. Receive file contents in the response or error path.

How to detect it

Search web-server or ACME client logs for HTTP-01 requests containing ..\ sequences or paths that resolve outside the expected challenge directory; inspect cache directories for unexpected files ending in +http-01; review file-access audit logs for reads of arbitrary files with that suffix shortly after ACME-related requests.

What your security team should do

  • Apply the listed fixed package versions immediately on all Windows systems running the affected Chromium builds.
  • Audit any custom ACME or certificate automation code that implements similar DirCache logic for the same path.Base pattern.
  • Monitor EPSS and KEV updates for any change in observed exploitation activity.

The record

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 packages

Ecosystem Package Introduced Fixed
Go golang.org/x/crypto 0 0.0.0-20220525230936-793ad666bf5e
Debian:11 golang-go.crypto 0 No fix
Debian:12 golang-go.crypto 0 1:0.0~git20220829.c86fa9a-1
Debian:13 golang-go.crypto 0 1:0.0~git20220829.c86fa9a-1

Related vulnerabilities