CVE-2020-12757
vault: GCP Credentials are created with incorrect time-to-live lease duration
Severity by source
Trivy's own label is CRITICAL. Rated critical by NVD, GHSA, Bitnami. Rated lower by Red Hat (medium).
Description
HashiCorp Vault and Vault Enterprise 1.4.0 and 1.4.1, when configured with the GCP Secrets Engine, may incorrectly generate GCP Credentials with the default time-to-live lease duration instead of the engine-configured setting. This may lead to generated GCP credentials being valid for longer than intended. Fixed in 1.4.2.
Affected packages and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| bitnami::Bitnami Vulnerability Database | vault | 1.4.2 |
| go::GitHub Security Advisory Go | github.com/hashicorp/vault-plugin-secrets-gcp | 0.6.2 |
References
- https://access.redhat.com/security/cve/CVE-2020-12757
- https://github.com/hashicorp/vault-plugin-secrets-gcp/commit/e43d20870c50f7428dead1411debcec075b35fb4
- https://github.com/hashicorp/vault-plugin-secrets-gcp/pull/85
- https://github.com/hashicorp/vault/blob/master/CHANGELOG.md
- https://github.com/hashicorp/vault/blob/master/CHANGELOG.md#142-may-21st-2020
- https://nvd.nist.gov/vuln/detail/CVE-2020-12757
- https://www.cve.org/CVERecord?id=CVE-2020-12757
- https://www.hashicorp.com/blog/category/vault