Vulnerabilities in pkg:golang/github.com/hashicorp/vault-plugin-secrets-gcp
PACKAGECVE-2020-12757 is a CRITICAL (CVSS 9.8) improper input validation vulnerability (CWE-20: Improper Input Validation) affecting Github.com/hashicorp/vault plugin secrets gcp libraries in the Go ecosystem. The issue involves improper input validation in hashicorp vault. Remediation is available by upgrading affected packages to version 0.6.2.
pkg:golang/github.com/hashicorp/vault-plugin-secrets-gcp
Vulnerability advisories affecting package pkg:golang/github.com/hashicorp/vault-plugin-secrets-gcp. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-75pc-qvwc-jf3g | CVE-2020-12757 | CRITICAL | Improper Input Validation in HashiCorp Vault |
CVE-2020-12757 at a Glance
Security Impact
CVSS: 9.8
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:H/I:H/A:H).
How to Fix CVE-2020-12757
To remediate this vulnerability, upgrade all affected Github.com/hashicorp/vault plugin secrets gcp 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-plugin-secrets-gcp to 0.6.2
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-plugin-secrets-gcp
How to Check if You Are Affected
To determine whether your application is affected by CVE-2020-12757, inspect your project dependencies for Github.com/hashicorp/vault plugin secrets gcp:
inspect dependencies for github.com/hashicorp/vault-plugin-secrets-gcp
Analyze the terminal output to locate any version of Github.com/hashicorp/vault plugin secrets gcp in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.6.2), 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 plugin secrets gcp, 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-12757 Affected Github.com/hashicorp/vault plugin secrets gcp Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/hashicorp/vault-plugin-secrets-gcp
|
Go |
< 0.6.2
|
0.6.2
|
References
Frequently Asked Questions
What is CVE-2020-12757?
Which Github.com/hashicorp/vault plugin secrets gcp versions are affected?
What version fixes CVE-2020-12757?
Is github.com/hashicorp/vault-plugin-secrets-gcp affected?
What is the CVSS score of CVE-2020-12757?
What CWE is associated with CVE-2020-12757?
How can I check Go dependencies for CVE-2020-12757?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-75pc-qvwc-jf3g",
"modified" : "2023-10-02T15:01:12Z",
"published" : "2021-05-18T18:20:48Z",
"aliases" : [ "CVE-2020-12757" ],
"summary" : "Improper Input Validation in HashiCorp Vault",
"details" : "HashiCorp Vault and Vault Enterprise 1.4.x before 1.4.2 in Go package github.com/hashicorp/vault-plugin-secrets-gcp/plugin has Incorrect Access Control.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/hashicorp/vault-plugin-secrets-gcp"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.6.2"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-12757"
}, {
"type" : "WEB",
"url" : "https://github.com/hashicorp/vault-plugin-secrets-gcp/pull/85"
}, {
"type" : "WEB",
"url" : "https://github.com/hashicorp/vault-plugin-secrets-gcp/commit/e43d20870c50f7428dead1411debcec075b35fb4"
}, {
"type" : "WEB",
"url" : "https://github.com/hashicorp/vault/blob/master/CHANGELOG.md"
}, {
"type" : "WEB",
"url" : "https://github.com/hashicorp/vault/blob/master/CHANGELOG.md#142-may-21st-2020"
}, {
"type" : "WEB",
"url" : "https://www.hashicorp.com/blog/category/vault"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-20" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2021-05-13T14:47:09Z",
"nvd_published_at" : null
}
}