Vulnerabilities in pkg:golang/github.com/hashicorp/vault-ssh-helper
PACKAGECVE-2020-24359 is a HIGH (CVSS 7.5) improper input validation vulnerability (CWE-20: Improper Input Validation) affecting Github.com/hashicorp/vault ssh helper libraries in the Go ecosystem. The issue involves improper input validation in vault-ssh-helper. Remediation is available by upgrading affected packages to version 0.2.0.
pkg:golang/github.com/hashicorp/vault-ssh-helper
Vulnerability advisories affecting package pkg:golang/github.com/hashicorp/vault-ssh-helper. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-f9fq-vjvh-779p | CVE-2020-24359 | HIGH | Improper Input Validation in vault-ssh-helper |
CVE-2020-24359 at a Glance
Security Impact
CVSS: 7.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N).
How to Fix CVE-2020-24359
To remediate this vulnerability, upgrade all affected Github.com/hashicorp/vault ssh helper dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade github.com/hashicorp/vault-ssh-helper to 0.2.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/hashicorp/vault-ssh-helper
How to Check if You Are Affected
To determine whether your application is affected by CVE-2020-24359, inspect your project dependencies for Github.com/hashicorp/vault ssh helper:
inspect dependencies for github.com/hashicorp/vault-ssh-helper
Analyze the terminal output to locate any version of Github.com/hashicorp/vault ssh helper in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.2.0), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. In Github.com/hashicorp/vault ssh helper, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2020-24359 Affected Github.com/hashicorp/vault ssh helper Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/hashicorp/vault-ssh-helper
|
Go |
< 0.2.0
|
0.2.0
|
References
Frequently Asked Questions
What is CVE-2020-24359?
Which Github.com/hashicorp/vault ssh helper versions are affected?
What version fixes CVE-2020-24359?
Is github.com/hashicorp/vault-ssh-helper affected?
What is the CVSS score of CVE-2020-24359?
What CWE is associated with CVE-2020-24359?
How can I check Go dependencies for CVE-2020-24359?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-f9fq-vjvh-779p",
"modified" : "2023-10-02T13:57:55Z",
"published" : "2022-02-15T01:57:18Z",
"aliases" : [ "CVE-2020-24359" ],
"summary" : "Improper Input Validation in vault-ssh-helper",
"details" : "HashiCorp vault-ssh-helper (github.com/hashicorp/vault-ssh-helper/helper) up to and including version 0.1.6 incorrectly accepted Vault-issued SSH OTPs for the subnet in which a host's network interface was located, rather than the specific IP address assigned to that interface. Fixed in 0.2.0.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/hashicorp/vault-ssh-helper"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.2.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-24359"
}, {
"type" : "WEB",
"url" : "https://github.com/hashicorp/vault-ssh-helper/commit/83effd08cbcbe4b993d776bd9b39465cd9e4603f"
}, {
"type" : "WEB",
"url" : "https://github.com/hashicorp/vault-ssh-helper/blob/master/CHANGELOG.md#020-august-19-2020"
}, {
"type" : "WEB",
"url" : "https://github.com/hashicorp/vault-ssh-helper/releases"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-20" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2021-05-12T20:21:27Z",
"nvd_published_at" : null
}
}