CVE-2024-1052: Github.com/hashicorp/boundary Boundary Vulnerable To Session Hijacking Vulnerability

HIGH
Advisory Identifier: GHSA-vh73-q3rw-qx7w
CVSS 8.0
CWE-295
Published
Advisory Summary

CVE-2024-1052 is a HIGH (CVSS 8.0) boundary vulnerable to session hijacking vulnerability (CWE-295: Improper Certificate Validation) affecting Github.com/hashicorp/boundary libraries in the Go ecosystem. The issue involves boundary vulnerable to session hijacking through tls certificate tampering. Remediation is available by upgrading affected packages to version 0.15.0.

CVE-2024-1052 at a Glance

CVE Identifier CVE-2024-1052
GHSA Identifier GHSA-vh73-q3rw-qx7w
Severity HIGH
CVSS v3.1 Base Score 8.0
CWE Classification CWE-295: Improper Certificate Validation
Affected Product Github.com/hashicorp/boundary
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 8.0

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

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required Low (PR:L)
User Interaction Required (UI:R)
Scope Changed (S:C)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2024-1052

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.15.0
Upgrade github.com/hashicorp/boundary to 0.15.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-2024-1052, 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.15.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-295: Improper Certificate Validation, where the product does not validate, or incorrectly validates, a certificate. 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

Boundary and Boundary Enterprise (“Boundary”) is vulnerable to session hijacking through TLS certificate tampering. An attacker with privileges to enumerate active or pending sessions, obtain a private key pertaining to a session, and obtain a valid trust on first use (TOFU) token may craft a TLS certificate to hijack an active session and gain access to the underlying service or application.

CVE-2024-1052 Affected Github.com/hashicorp/boundary Versions

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

References

Frequently Asked Questions

What is CVE-2024-1052?
CVE-2024-1052 is a security vulnerability in Github.com/hashicorp/boundary involving Boundary vulnerable to session hijacking through TLS certificate tampering under CWE-295: Improper Certificate Validation.
Which Github.com/hashicorp/boundary versions are affected?
Affected versions include releases prior to 0.15.0 across affected packages: github.com/hashicorp/boundary.
What version fixes CVE-2024-1052?
Upgrading to 0.15.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.15.0. Upgrade your dependency to 0.15.0 or later.
What is the CVSS score of CVE-2024-1052?
CVE-2024-1052 has a CVSS v3.1 base score of 8.0 (HIGH) with vector string CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H.
What CWE is associated with CVE-2024-1052?
CVE-2024-1052 is classified under CWE-295: Improper Certificate Validation (The product does not validate, or incorrectly validates, a certificate.).
How can I check Go dependencies for CVE-2024-1052?
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-vh73-q3rw-qx7w",
  "modified" : "2024-02-05T23:06:56Z",
  "published" : "2024-02-05T21:30:31Z",
  "aliases" : [ "CVE-2024-1052" ],
  "summary" : "Boundary vulnerable to session hijacking through TLS certificate tampering",
  "details" : "Boundary and Boundary Enterprise (“Boundary”) is vulnerable to session hijacking through TLS certificate tampering. An attacker with privileges to enumerate active or pending sessions, obtain a private key pertaining to a session, and obtain a valid trust on first use (TOFU) token may craft a TLS certificate to hijack an active session and gain access to the underlying service or application.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/hashicorp/boundary"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.8.0"
      }, {
        "fixed" : "0.15.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-1052"
  }, {
    "type" : "WEB",
    "url" : "https://discuss.hashicorp.com/t/hcsec-2024-02-boundary-vulnerable-to-session-hijacking-through-tls-certificate-tampering/62458"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/hashicorp/boundary"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-295" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-02-05T23:06:56Z",
    "nvd_published_at" : "2024-02-05T21:15:11Z"
  }
}