Cms Craftcms Cms

Don't miss out!

Thousands of developers use stack.watch to stay informed.
Get an email whenever new security vulnerabilities are reported in Craftcms Cms.

By the Year

In 2026 there have been 10 vulnerabilities in Craftcms Cms with an average score of 8.6 out of ten.

Year Vulnerabilities Average Score
2026 10 8.60

It may take a day or so for new Cms vulnerabilities to show up in the stats or in the list of recent security vulnerabilities. Additionally vulnerabilities may be tagged under a different product or component name.

Recent Craftcms Cms Security Vulnerabilities

Craft CMS <4.18.9 / <5.11.2 unauthenticated SQLi in craft.search
CVE-2026-115934 9.3 - Critical - November 09, 2026

An unauthenticated SQL injection can occur on the front end of any site that uses craft.search to perform a search, allowing stacked query execution and enabling escalation to an administrator. Note that this only affects MySQL/MariaDB. Impact * SQL injection The attribute parameter is concatenated into the query unsanitized, and because PDO runs with emulated prepares, stacked statements execute. This gives unauthenticated read and write access to the application database. * Privilege escalation to administrator The write primitive was used to set the admin flag on user ID 1 in the users table, confirmed by reading the value back. Craft short-circuits its permission checks on this single column, so no further changes were needed. The same primitive can overwrite any accounts password hash. Update to the patched versions (4.18.9 and 5.11.2) to get the fix. If you cannot update immediately, you can block front-end requests with %5Battribute%5D and [attribute] anywhere in the query string as a temporary mitigation.

SQL Injection

Craft CMS RCE via Twig sandbox bypass in element-search
CVE-2026-115938 8.7 - High - October 23, 2026

Craft CMS allows any authenticated control panel user to submit an element-search condition whose element selector is evaluated as a sandboxed Twig object template. Crafts allowed column filter delegates property lookup to Yii ArrayHelper, outside Twigs SecurityPolicy. Repeated single-segment lookups therefore bypass the sandboxs empty property/method allowlists. The vulnerable condition value is ultimately cast to an integer. That does not protect the secret: the template can return author ID 1 when a guessed key character is correct and an impossible ID otherwise. The JSON endpoint returns entries for the first case and an empty array for the second, forming a stable remote character oracle. After recovering GeneralConfig::securityKey, the same user can compute Crafts generic HMAC wire format offline. Signed parameters such as redirect are then accepted and passed to unsandboxed View::renderObjectTemplate(), where Twigs string-callable form can invoke native PHP callables. The regression proof uses the harmless substr() callback and observes abcdef becoming cdef; it does not execute an OS command.

1336

Craft CMS .env CRLF Injection via API Headers Allows Security Key Overwrite
CVE-2026-115935 8.7 - High - October 23, 2026

The app/process-api-response-headers action accepts fake Craft API response headers from any authenticated control panel user. A non-admin user with only accessCp can place newline characters in X-Craft-Plugin-Licenses. Craft passes this value to its .env writer without removing the newlines. This lets the user insert a new attacker-known CRAFT_SECURITY_KEY into .env. After Craft loads that key, the user can forge a signed login redirect containing a Twig system() callback. This is different from the previous report. That report reads the existing key through a Twig sandbox bypass. This report replaces the key through fake API headers and CRLF injection. Fixing either source does not fix the other.

Code Injection

Craft CMS 5.10.13.2 RCE via CP app/render-components
CVE-2026-105985 8.7 - High - October 06, 2026

Craft CMS 5.10.13.2 contains an authenticated remote code execution vulnerability in the Control Panel action app/render-components. Any authenticated user with basic Control Panel access can submit request-controlled component classes and property overrides. By first overriding an EntryType objects uiLabelFormat and then rendering an Entry that resolves the same request-cached entry type, an attacker can cause arbitrary Twig supplied in the request to be evaluated by renderObjectTemplate(). This render path is not sandboxed. A Twig string callable can therefore reach PHP functions such as system(), resulting in operating-system command execution with the privileges of the PHP/web-server process. The issue was reproduced with an active non-admin Craft Team user with no optional permissions enabled. No access to entry-editing, Settings, utility, user-management, project-config, filesystem, Kubernetes, or environment variables was required.

1336

OS Command Injection via accessCp Permission in Craft CMS
CVE-2026-79987 8.7 - High - September 10, 2026

A remote, authenticated, non-admin Craft CMS Control Panel user with only the accessCp permission can execute operating system commands as the PHP web worker.

Reflection Injection

Craft CMS GraphQL Mutations Bypass Site Scope Filtering
CVE-2026-79991 7.1 - High - September 02, 2026

Craft CMS GraphQL entry mutation resolvers (saveEntry, deleteEntry) read siteIddirectly from$argumentswithout passing throughArgumentManagerprepareArguments(), which is the function that enforces site-scope filtering via array_intersect against the GraphQL schemas allowed sites. The query path (ElementResolverprepareElementQuery) correctly calls prepareArguments()`, so queries to unauthorized sites return empty. But mutations bypass this entirely an attacker with a token scoped to Site A can create, modify, or delete entries in Site B by passing siteId in the mutations argument.

SQL Injection

CraftCMS GraphQL Mutation SiteID Bypass via Unchecked Argument
CVE-2026-79990 8.7 - High - September 02, 2026

Craft CMS GraphQL entry mutation resolvers (saveEntry, deleteEntry) read siteIddirectly from$argumentswithout passing throughArgumentManagerprepareArguments(), which is the function that enforces site-scope filtering via array_intersect against the GraphQL schemas allowed sites. The query path (ElementResolverprepareElementQuery) correctly calls prepareArguments()`, so queries to unauthorized sites return empty. But mutations bypass this entirely an attacker with a token scoped to Site A can create, modify, or delete entries in Site B by passing siteId in the mutations argument.

Insecure Direct Object Reference / IDOR

Drupal Authenticated Password Change Without Current Password
CVE-2026-79989 8.7 - High - September 02, 2026

The vulnerability allows any authenticated user to change their own password without providing the current password or having an active elevated session. It also allows the attacker to change other users passwords if the attackers account has Edit users permission (which doesnt allow changing others passwords) and lacks Administrate users permission (which is required to change others passwords).

AuthZ

Authenticated RCE in Craft CMS via Twig Sandbox & Yii
CVE-2026-79988 8.7 - High - August 27, 2026

The Twig sandbox mechanism in Craft CMS is configured to allow dangerous functionality from the Yii framework, leading to authenticated RCE similar to previously disclosed vulnerabilities.

Protection Mechanism Failure

Craft CMS 4.x/5.x RCE via element-search config JSON cleanse bypass
CVE-2026-78416 8.7 - High - August 24, 2026

Craft CMS versions from 4.0.0-RC1 before 4.18.2 and from 5.0.0-RC1 before 5.10.6 contain an authenticated remote code execution vulnerability in control panel element-search condition handling. A JSON cleanse bypass in condition.config allows Yii behavior/event configuration keys to be interpreted after decoding, enabling command execution as the PHP/web user.

Mass Assignment

Stay on top of Security Vulnerabilities

Want an email whenever new vulnerabilities are published for Craftcms Cms or by Craftcms? Click the Watch button to subscribe.

Craftcms
Vendor

Craftcms Cms
Product

subscribe