CVE-2022-30636
httpTokenCacheKey uses path.Base to extract the expected HTTP-01 token ...
Overview
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.
Source: OX vulnerability database
Severity
7.5 · HIGH
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- None
- Availability
- None
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Affected packages · 3
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| Go | golang.org/x/crypto | <0.0.0-20220525230936-793ad666bf5e | 0.0.0-20220525230936-793ad666bf5e |
| Seal Go | golang.org/x/crypto | >=0.0.0-20211117183948-ae814b36b871-sp0, <0.0.0-20211117183948-ae814b36b871-sp3 | 0.0.0-20211117183948-ae814b36b871-sp3 |
| Seal Go | sealsecurity.io/golang.org/x/crypto | >=0.0.0-20211117183948-ae814b36b871-sp1, <0.0.0-20211117183948-ae814b36b871-sp3 | 0.0.0-20211117183948-ae814b36b871-sp3 |
Open a package to see all its vulnerabilities.
Operating systems · 7 fixes
debian 4 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 11 | golang-go-crypto | affected |
| 12 | golang-go-crypto | 1:0.0~git20220829.c86fa9a-1 |
| 13 | golang-go-crypto | 1:0.0~git20220829.c86fa9a-1 |
| 14 | golang-go-crypto | 1:0.0~git20220829.c86fa9a-1 |
echo 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| golang-go-crypto | 1:0.0~git20220829.c86fa9a-1 |
chainguard 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| dex-k8s-authenticator +2 | not affected |
wolfi 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| nfs-subdir-external-provisioner | not affected |
References
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.