KDWSS / checkov

Prevent cloud misconfigurations and find vulnerabilities during build-time in infrastructure as code, container images and open source packages with Checkov by Bridgecrew.
https://www.checkov.io/
Apache License 2.0
0 stars 0 forks source link

golang.org/x/crypto-v0.0.0-20200622213623-75b288015ac9: 1 vulnerabilities (highest severity is: 5.3) #13

Open mend-for-github-com[bot] opened 1 year ago

mend-for-github-com[bot] commented 1 year ago
Vulnerable Library - golang.org/x/crypto-v0.0.0-20200622213623-75b288015ac9

Library home page: https://proxy.golang.org/golang.org/x/crypto/@v/v0.0.0-20200622213623-75b288015ac9.zip

Path to dependency file: /tests/sca_package/examples/go.mod

Path to vulnerable library: /tests/sca_package/examples/go.mod,/tests/sca_package_2/examples/go.mod

Found in HEAD commit: 4d489b9f7c0daf4e81386f69e00c17d8627c5d9c

Vulnerabilities

CVE Severity CVSS Dependency Type Fixed in (golang.org/x/crypto-v0.0.0 version) Remediation Possible**
CVE-2022-30636 Medium 5.3 golang.org/x/crypto-v0.0.0-20200622213623-75b288015ac9 Direct github.com/golang/crypto-v0.1.0

**In some cases, Remediation PR cannot be created automatically for a vulnerability despite the availability of remediation

Details

CVE-2022-30636 ### Vulnerable Library - golang.org/x/crypto-v0.0.0-20200622213623-75b288015ac9

Library home page: https://proxy.golang.org/golang.org/x/crypto/@v/v0.0.0-20200622213623-75b288015ac9.zip

Path to dependency file: /tests/sca_package/examples/go.mod

Path to vulnerable library: /tests/sca_package/examples/go.mod,/tests/sca_package_2/examples/go.mod

Dependency Hierarchy: - :x: **golang.org/x/crypto-v0.0.0-20200622213623-75b288015ac9** (Vulnerable Library)

Found in HEAD commit: 4d489b9f7c0daf4e81386f69e00c17d8627c5d9c

Found in base branch: main

### Vulnerability Details

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.

Publish Date: 2024-07-02

URL: CVE-2022-30636

### CVSS 3 Score Details (5.3)

Base Score Metrics: - Exploitability Metrics: - Attack Vector: Network - Attack Complexity: Low - Privileges Required: None - User Interaction: None - Scope: Unchanged - Impact Metrics: - Confidentiality Impact: Low - Integrity Impact: None - Availability Impact: None

For more information on CVSS3 Scores, click here.

### Suggested Fix

Type: Upgrade version

Origin: https://www.cve.org/CVERecord?id=CVE-2022-30636

Release Date: 2024-07-02

Fix Resolution: github.com/golang/crypto-v0.1.0

:rescue_worker_helmet: Automatic Remediation will be attempted for this issue.

:rescue_worker_helmet:Automatic Remediation will be attempted for this issue.

mend-for-github-com[bot] commented 1 year ago

:heavy_check_mark: This issue was automatically closed by Mend because the vulnerable library in the specific branch(es) was either marked as ignored or it is no longer part of the Mend inventory.

mend-for-github-com[bot] commented 1 year ago

:heavy_check_mark: This issue was automatically closed by Mend because the vulnerable library in the specific branch(es) was either marked as ignored or it is no longer part of the Mend inventory.

mend-for-github-com[bot] commented 1 year ago

:heavy_check_mark: This issue was automatically closed by Mend because the vulnerable library in the specific branch(es) was either marked as ignored or it is no longer part of the Mend inventory.

mend-for-github-com[bot] commented 1 month ago

:information_source: This issue was automatically re-opened by Mend because the vulnerable library in the specific branch(es) has been detected in the Mend inventory.