CVE-2025-34086: Bolt/bolt Remote Code Execution Vulnerability

HIGH
Advisory Identifier: GHSA-p9qc-8jjx-g8cg
CWE-94
Published
Advisory Summary

CVE-2025-34086 is a HIGH remote code execution vulnerability (CWE-94: Improper Control of Generation of Code ('Code Injection')) affecting Bolt/bolt libraries in the Packagist ecosystem. The issue involves bolt cms vulnerable to authenticated remote code execution. Remediation is available in the latest vendor maintenance releases.

CVE-2025-34086 at a Glance

CVE Identifier CVE-2025-34086
GHSA Identifier GHSA-p9qc-8jjx-g8cg
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-94: Improper Control of Generation of Code ('Code Injection')
Affected Product Bolt/bolt
Package Ecosystem Packagist
Published Date
Last Updated

How to Fix CVE-2025-34086

To remediate this vulnerability, upgrade all affected Bolt/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/bolt fixed: Latest secure release
Upgrade bolt/bolt to Latest secure release
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/bolt

How to Check if You Are Affected

To determine whether your application is affected by CVE-2025-34086, inspect your project dependencies for Bolt/bolt:

inspect dependencies for bolt/bolt

Analyze the terminal output to locate any version of Bolt/bolt in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), 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-94: Improper Control of Generation of Code ('Code Injection'), where the product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment. In Bolt/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

Bolt CMS versions 3.7.0 and earlier contain a chain of vulnerabilities that together allow an authenticated user to achieve remote code execution. A user with valid credentials can inject arbitrary PHP code into the displayname field of the user profile, which is rendered unsanitized in backend templates. The attacker can then list and rename cached session files via the /async/browse/cache/.sessions and /async/folder/rename endpoints. By renaming a .session file to a path under the publicly accessible /files/ directory with a .php extension, the attacker can turn the injected code into an executable web shell. Finally, the attacker triggers the payload via a crafted HTTP GET request to the rogue file. NOTE: The vendor announced that Bolt 3 reached end-of-life after 31 December 2021.

CVE-2025-34086 Affected Bolt/bolt Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
bolt/bolt
Packagist
≤ 3.7.0

References

Frequently Asked Questions

What is CVE-2025-34086?
CVE-2025-34086 is a security vulnerability in Bolt/bolt involving Bolt CMS vulnerable to authenticated remote code execution under CWE-94: Improper Control of Generation of Code ('Code Injection').
Which Bolt/bolt versions are affected?
Affected versions include releases prior to current release patches across affected packages: bolt/bolt.
What version fixes CVE-2025-34086?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is bolt/bolt affected?
Yes, bolt/bolt is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What CWE is associated with CVE-2025-34086?
CVE-2025-34086 is classified under CWE-94: Improper Control of Generation of Code ('Code Injection') (The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.).
How can I check Packagist dependencies for CVE-2025-34086?
Run the dependency tree command: 'inspect dependencies for bolt/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-p9qc-8jjx-g8cg",
  "modified" : "2025-07-07T19:10:40Z",
  "published" : "2025-07-03T21:31:25Z",
  "aliases" : [ "CVE-2025-34086" ],
  "summary" : "Bolt CMS vulnerable to authenticated remote code execution",
  "details" : "Bolt CMS versions 3.7.0 and earlier contain a chain of vulnerabilities that together allow an authenticated user to achieve remote code execution. A user with valid credentials can inject arbitrary PHP code into the displayname field of the user profile, which is rendered unsanitized in backend templates. The attacker can then list and rename cached session files via the /async/browse/cache/.sessions and /async/folder/rename endpoints. By renaming a .session file to a path under the publicly accessible /files/ directory with a .php extension, the attacker can turn the injected code into an executable web shell. Finally, the attacker triggers the payload via a crafted HTTP GET request to the rogue file.\n\nNOTE: The vendor announced that Bolt 3 reached end-of-life after 31 December 2021.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "bolt/bolt"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "3.7.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-34086"
  }, {
    "type" : "WEB",
    "url" : "https://boltcms.io/newsitem/major-announcements-bolt-3-eol-bolt-4-2-5-0-releases"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/bolt/bolt"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/bolt/bolt/blob/3.7/src/Controller/Backend/Users.php#L279-L311"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/bolt/bolt/releases/tag/3.7.1"
  }, {
    "type" : "WEB",
    "url" : "https://raw.githubusercontent.com/rapid7/metasploit-framework/master/modules/exploits/unix/webapp/bolt_authenticated_rce.rb"
  }, {
    "type" : "WEB",
    "url" : "https://www.exploit-db.com/exploits/48296"
  }, {
    "type" : "WEB",
    "url" : "https://www.rapid7.com/db/modules/exploit/unix/webapp/bolt_authenticated_rce"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-94" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-07-07T19:10:40Z",
    "nvd_published_at" : "2025-07-03T20:15:22Z"
  }
}