Vulnerabilities in pkg:gem/bolt

PACKAGE
Advisory Identifier: GHSA-289m-2964-f8q5
Advisory Summary

CVE-2023-5214 is a CRITICAL (CVSS 9.8) puppet bolt privilege escalation vulnerability vulnerability (CWE-269: Improper Privilege Management) affecting Bolt libraries in the RubyGems ecosystem. The issue involves puppet bolt privilege escalation vulnerability. Remediation is available by upgrading affected packages to version 3.27.4.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:gem/bolt

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:gem/bolt. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-289m-2964-f8q5 CVE-2023-5214 CRITICAL Puppet Bolt privilege escalation vulnerability

CVE-2023-5214 at a Glance

CVE Identifier CVE-2023-5214
GHSA Identifier GHSA-289m-2964-f8q5
Severity CRITICAL
CVSS v3.1 Base Score 9.8
CWE Classification CWE-269: Improper Privilege Management
Affected Product Bolt
Package Ecosystem RubyGems
Published Date
Last Updated

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).

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

How to Fix CVE-2023-5214

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

bolt fixed: 3.27.4
Upgrade bolt to 3.27.4
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 bolt

How to Check if You Are Affected

To determine whether your application is affected by CVE-2023-5214, inspect your project dependencies for Bolt:

inspect dependencies for bolt

Analyze the terminal output to locate any version of Bolt in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.27.4), 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-269: Improper Privilege Management, where the product does not properly assign, modify, track, or check privileges for an actor, creating an unintended sphere of control for that actor. In Bolt, 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

In Puppet Bolt versions prior to 3.27.4, a path to escalate privileges was identified.

CVE-2023-5214 Affected Bolt Versions

1 component(s)
Fixed Versions:
3.27.4
Product / Package Ecosystem Affected Versions Fixed Version
bolt
RubyGems
< 3.27.4
3.27.4

References

Frequently Asked Questions

What is CVE-2023-5214?
CVE-2023-5214 is a security vulnerability in Bolt involving Puppet Bolt privilege escalation vulnerability under CWE-269: Improper Privilege Management.
Which Bolt versions are affected?
Affected versions include releases prior to 3.27.4 across affected packages: bolt.
What version fixes CVE-2023-5214?
Upgrading to 3.27.4 (or the latest patched release for your respective branch) resolves the vulnerability.
Is bolt affected?
Yes, bolt is affected in releases prior to 3.27.4. Upgrade your dependency to 3.27.4 or later.
What is the CVSS score of CVE-2023-5214?
CVE-2023-5214 has a CVSS v3.1 base score of 9.8 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2023-5214?
CVE-2023-5214 is classified under CWE-269: Improper Privilege Management (The product does not properly assign, modify, track, or check privileges for an actor, creating an unintended sphere of control for that actor.).
How can I check RubyGems dependencies for CVE-2023-5214?
Run the dependency tree command: 'inspect dependencies for bolt'. 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-289m-2964-f8q5",
  "modified" : "2023-11-02T17:26:30Z",
  "published" : "2023-10-06T18:30:32Z",
  "aliases" : [ "CVE-2023-5214" ],
  "summary" : "Puppet Bolt privilege escalation vulnerability",
  "details" : "In Puppet Bolt versions prior to 3.27.4, a path to escalate privileges was identified.\n",
  "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" : "RubyGems",
      "name" : "bolt"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "3.27.4"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-5214"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/puppetlabs/bolt"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/bolt/CVE-2023-5214.yml"
  }, {
    "type" : "WEB",
    "url" : "https://www.puppet.com/security/cve/cve-2023-5214-privilege-escalation-puppet-bolt"
  }, {
    "type" : "WEB",
    "url" : "https://www.puppet.com/security/cve/cve-2023-5255-denial-service-revocation-auto-renewed-certificates"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-269" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-10-10T22:28:50Z",
    "nvd_published_at" : "2023-10-06T18:15:12Z"
  }
}