CVE catalog

CVE-2022-30636

golang-go.crypto: CVE-2022-30636

[CVE catalog]

Severity
Medium
Published
Source
[NVD] · [CVE record]
EPSS
0.64% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debiangolang-go.cryptosid1:0.58.0-1fixed
Debiangolang-go.cryptoforky1:0.58.0-1fixed
Debiangolang-go.cryptotrixie1:0.25.0-1fixed
Debiangolang-go.cryptobookworm1:0.4.0-1fixed
Gogolang.org/x/cryptoNot reported0.0.0-20220525230936-793ad666bf5efixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debiangolang-go.cryptosourcesid1:0.0~git20220829.c86fa9a-1unimportantNot reportedNot reported
Debiangolang-go.cryptosourceforky1:0.0~git20220829.c86fa9a-1unimportantNot reportedNot reported
Debiangolang-go.cryptosourcetrixie1:0.0~git20220829.c86fa9a-1unimportantNot reportedNot reported
Debiangolang-go.cryptosourcebookworm1:0.0~git20220829.c86fa9a-1unimportantNot reportedNot reported
Gogolang.org/x/cryptoGoNot reported0.0.0-20220525230936-793ad666bf5eNot reportedGO-2024-2961Not reported

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • Source package: [golang-go.crypto]

    Details (4)
    • 1:0.4.0-1 · all · bookworm

      Fixed · Fixed: 1:0.0~git20220829.c86fa9a-1

      dsa · golang-go.crypto · debian · bookworm

    • 1:0.4.0-1 · all · bookworm

      Fixed · Fixed: 1:0.0~git20220829.c86fa9a-1

      dsa · golang-go.crypto · debian · bookworm

    • 1:0.25.0-1~bpo12+1 · all · bookworm-backports

      Fixed · Fixed: 1:0.0~git20220829.c86fa9a-1

      dsa · golang-go.crypto · debian · bookworm

    • 1:0.25.0-1~bpo12+1 · all · bookworm-backports

      Fixed · Fixed: 1:0.0~git20220829.c86fa9a-1

      dsa · golang-go.crypto · debian · bookworm

Observed:

References