CVE-2024-12289: Github.com/hashicorp/boundary Denial of Service Vulnerability

MODERATE
Advisory Identifier: GHSA-xx83-cxmq-x89m
CVSS 5.9
CWE-460 CWE-665
Published
Advisory Summary

CVE-2024-12289 is a MODERATE (CVSS 5.9) denial of service vulnerability (CWE-460: Improper Cleanup on Thrown Exception) affecting Github.com/hashicorp/boundary libraries in the Go ecosystem. The issue involves boundary community edition incorrectly handles http requests on initialization which may lead to a denial of service. Remediation is available by upgrading affected packages to version 0.18.2.

CVE-2024-12289 at a Glance

CVE Identifier CVE-2024-12289
GHSA Identifier GHSA-xx83-cxmq-x89m
Severity MODERATE
CVSS v3.1 Base Score 5.9
CWE Classification CWE-460: Improper Cleanup on Thrown Exception
Affected Product Github.com/hashicorp/boundary
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 5.9

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

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

How to Fix CVE-2024-12289

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.18.2
Upgrade github.com/hashicorp/boundary to 0.18.2
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-12289, 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.18.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-460: Improper Cleanup on Thrown Exception, where the product does not clean up its state or incorrectly cleans up its state when an exception is thrown, leading to unexpected state or control flow. 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 Community Edition and Boundary Enterprise (“Boundary”) incorrectly handle HTTP requests during the initialization of the Boundary controller, which may cause the Boundary server to terminate prematurely. Boundary is only vulnerable to this flaw during the initialization of the Boundary controller, which on average is measured in milliseconds during the Boundary startup process. This vulnerability, CVE-2024-12289, is fixed in Boundary Community Edition and Boundary Enterprise 0.16.4, 0.17.3, 0.18.2.

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

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

References

Frequently Asked Questions

What is CVE-2024-12289?
CVE-2024-12289 is a security vulnerability in Github.com/hashicorp/boundary involving Boundary Community Edition Incorrectly Handles HTTP Requests On Initialization Which May Lead to a Denial of Service under CWE-460: Improper Cleanup on Thrown Exception.
Which Github.com/hashicorp/boundary versions are affected?
Affected versions include releases prior to 0.18.2 across affected packages: github.com/hashicorp/boundary.
What version fixes CVE-2024-12289?
Upgrading to 0.18.2 (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.18.2. Upgrade your dependency to 0.18.2 or later.
What is the CVSS score of CVE-2024-12289?
CVE-2024-12289 has a CVSS v3.1 base score of 5.9 (MODERATE) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H.
What CWE is associated with CVE-2024-12289?
CVE-2024-12289 is classified under CWE-460: Improper Cleanup on Thrown Exception (The product does not clean up its state or incorrectly cleans up its state when an exception is thrown, leading to unexpected state or control flow.).
How can I check Go dependencies for CVE-2024-12289?
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-xx83-cxmq-x89m",
  "modified" : "2025-12-31T22:00:42Z",
  "published" : "2024-12-13T00:30:50Z",
  "aliases" : [ "CVE-2024-12289" ],
  "summary" : "Boundary Community Edition Incorrectly Handles HTTP Requests On Initialization Which May Lead to a Denial of Service",
  "details" : "Boundary Community Edition and Boundary Enterprise (“Boundary”) incorrectly handle HTTP requests during the initialization of the Boundary controller, which may cause the Boundary server to terminate prematurely. Boundary is only vulnerable to this flaw during the initialization of the Boundary controller, which on average is measured in milliseconds during the Boundary startup process.\n\nThis vulnerability, CVE-2024-12289, is fixed in Boundary Community Edition and Boundary Enterprise 0.16.4, 0.17.3, 0.18.2.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/hashicorp/boundary"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.18.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-12289"
  }, {
    "type" : "WEB",
    "url" : "https://discuss.hashicorp.com/t/hcsec-2024-28-boundary-controller-incorrectly-handles-http-requests-on-initialization-which-may-lead-to-a-denial-of-service"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/hashicorp/boundary"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-460", "CWE-665" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-12-13T20:37:17Z",
    "nvd_published_at" : "2024-12-12T23:15:10Z"
  }
}