Intel

AIKIDO-2026-965926

bolt/core is vulnerable to Remote Code Execution (RCE)

Remote Code Execution (RCE)GHSA-m2j9-f9xw-xxgw Published 3 days ago

68

Medium Risk

This Affects:

PHPbolt/core
0.0.1 - 6.1.6
Fixed in 6.1.7
Are you affected? Scan for Free

TL;DR

Bolt's async upload endpoint does not enforce a location-specific role check, so a user holding the ROLE_EDITOR role can upload files such as .twig templates into the active theme directory that is intended to be writable only by administrators. The same user can then reference the uploaded template through a templateselect field, causing Bolt to compile and render the influenced Twig when the record is viewed. Because the rendered Twig runs in the full application environment, missing authorization chains can lead to code execution as the web server user. The fix adds the missing authorization check to the upload controller so editors can no longer write into protected theme locations.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you grant non-administrator users the ROLE_EDITOR role.

Background info

bolt/core is vulnerable to Remote Code Execution (RCE) in versions 0.0.1 - 6.1.6.

How to fix this

Upgrade the bolt/core library to the patch version.