CVE-2025-34086 Bolt CMS Authenticated Remote Code Execution via Profile Injection and File Rename
Authenticated attackers can inject PHP code into user profiles and rename session files to achieve remote code execution in Bolt CMS.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is CVE-2025-34086?
CVE-2025-34086 is a high-severity code injection vulnerability in Bolt CMS, published on 3 Jul 2025. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.
Official description
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.
Which versions are affected by CVE-2025-34086?
2 open source packages ship an affected version, including bolt/bolt. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
bolt/bolt Packagist | All versions to 3.7.0 | None |
bolt/bolt Packagist | All versions to 3.7.0 | None |
Products include Boltcms Bolt.
How do I fix CVE-2025-34086?
No fix has been published for CVE-2025-34086 yet. Limit exposure of the affected software until one is available.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2025-34086 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-34086 exists.
Public exploit code: 1 Metasploit module.
Other vulnerabilities in Bolt CMS
Sources
Also known as GHSA-p9qc-8jjx-g8cg.