CVE-2023-0690: Github.com/hashicorp/boundary HashiCorp Boundary Workers Store Rotated Vulnerability

HIGH
Advisory Identifier: GHSA-9vrm-v9xv-x3xr
CVSS 7.1
CWE-312 CWE-311
Published
Advisory Summary

CVE-2023-0690 is a HIGH (CVSS 7.1) hashicorp boundary workers store rotated vulnerability (CWE-312: Cleartext Storage of Sensitive Information) affecting Github.com/hashicorp/boundary libraries in the Go ecosystem. The issue involves hashicorp boundary workers store rotated credentials in plaintext even when key management service configured. Remediation is available by upgrading affected packages to version 0.12.0.

CVE-2023-0690 at a Glance

CVE Identifier CVE-2023-0690
GHSA Identifier GHSA-9vrm-v9xv-x3xr
Severity HIGH
CVSS v3.1 Base Score 7.1
CWE Classification CWE-312: Cleartext Storage of Sensitive Information
Affected Product Github.com/hashicorp/boundary
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 7.1

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N).

Attack Vector Local (AV:L)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability None (A:N)

How to Fix CVE-2023-0690

To remediate this vulnerability, upgrade all affected Github.com/hashicorp/boundary dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/hashicorp/boundary fixed: 0.12.0
Upgrade github.com/hashicorp/boundary to 0.12.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/hashicorp/boundary

How to Check if You Are Affected

To determine whether your application is affected by CVE-2023-0690, inspect your project dependencies for Github.com/hashicorp/boundary:

inspect dependencies for github.com/hashicorp/boundary

Analyze the terminal output to locate any version of Github.com/hashicorp/boundary in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.12.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-312: Cleartext Storage of Sensitive Information, where the product stores sensitive information in cleartext within a resource that might be accessible to another control sphere. In Github.com/hashicorp/boundary, 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

HashiCorp Boundary from 0.10.0 through 0.11.2 contain an issue where when using a PKI-based worker with a Key Management Service (KMS) defined in the configuration file, new credentials created after an automatic rotation may not have been encrypted via the intended KMS. This would result in the credentials being stored in plaintext on the Boundary PKI worker’s disk. This issue is fixed in version 0.12.0.

CVE-2023-0690 Affected Github.com/hashicorp/boundary Versions

1 component(s)
Fixed Versions:
0.12.0
Product / Package Ecosystem Affected Versions Fixed Version
github.com/hashicorp/boundary
Go
≥ 0.10.0
< 0.12.0
0.12.0

References

Frequently Asked Questions

What is CVE-2023-0690?
CVE-2023-0690 is a security vulnerability in Github.com/hashicorp/boundary involving HashiCorp Boundary Workers Store Rotated Credentials in Plaintext Even When Key Management Service Configured under CWE-312: Cleartext Storage of Sensitive Information.
Which Github.com/hashicorp/boundary versions are affected?
Affected versions include releases prior to 0.12.0 across affected packages: github.com/hashicorp/boundary.
What version fixes CVE-2023-0690?
Upgrading to 0.12.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/hashicorp/boundary affected?
Yes, github.com/hashicorp/boundary is affected in releases prior to 0.12.0. Upgrade your dependency to 0.12.0 or later.
What is the CVSS score of CVE-2023-0690?
CVE-2023-0690 has a CVSS v3.1 base score of 7.1 (HIGH) with vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N.
What CWE is associated with CVE-2023-0690?
CVE-2023-0690 is classified under CWE-312: Cleartext Storage of Sensitive Information (The product stores sensitive information in cleartext within a resource that might be accessible to another control sphere.).
How can I check Go dependencies for CVE-2023-0690?
Run the dependency tree command: 'inspect dependencies for github.com/hashicorp/boundary'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-9vrm-v9xv-x3xr",
  "modified" : "2023-07-06T21:47:39Z",
  "published" : "2023-07-06T19:24:09Z",
  "aliases" : [ "CVE-2023-0690" ],
  "summary" : "HashiCorp Boundary Workers Store Rotated Credentials in Plaintext Even When Key Management Service Configured",
  "details" : "HashiCorp Boundary from 0.10.0 through 0.11.2 contain an issue where when using a PKI-based worker with a Key Management Service (KMS) defined in the configuration file, new credentials created after an automatic rotation may not have been encrypted via the intended KMS. This would result in the credentials being stored in plaintext on the Boundary PKI worker’s disk. This issue is fixed in version 0.12.0.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/hashicorp/boundary"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.10.0"
      }, {
        "fixed" : "0.12.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-0690"
  }, {
    "type" : "WEB",
    "url" : "https://discuss.hashicorp.com/t/hcsec-2023-03-boundary-workers-store-rotated-credentials-in-plaintext-even-when-key-management-service-configured/49907"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/hashicorp/boundary"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-311", "CWE-312" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-07-06T21:47:39Z",
    "nvd_published_at" : "2023-02-08T19:15:00Z"
  }
}