{"id":"CVE-2026-26274","aliases":["CVE-2026-26274","GHSA-h6jm-f4hh-fw27"],"related":[],"kind":"vulnerability","state":"published","title":"October: Safe Mode Bypass via Twig Database Write Operations","summary":"October is a Content Management System (CMS) and web platform. Prior to 3.7.14 and 4.1.10, a vulnerability was identified in the Twig sandbox security policy that allowed database write operations when cms.safe_mode is enabled. Backend users with Developer permissions could use Twig template markup to execute insert, update, and delete operations on any database table through the query builder, which is included in the sandbox allow-list. This vulnerability is fixed in 3.7.14 and 4.1.10.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"October is a Content Management System (CMS) and web platform. Prior to 3.7.14 and 4.1.10, a vulnerability was identified in the Twig sandbox security policy that allowed database write operations when cms.safe_mode is enabled. Backend users with Developer permissions could use Twig template markup to execute insert, update, and delete operations on any database table through the query builder, which is included in the sandbox allow-list. This vulnerability is fixed in 3.7.14 and 4.1.10.","source":"cvelist"},{"lang":"en","text":"A vulnerability was identified in the Twig sandbox security policy that allowed database write operations when `cms.safe_mode` is enabled. Backend users with Developer permissions could use Twig template markup to execute insert, update, and delete operations on any database table through the query builder, which is included in the sandbox allow-list.\n\n### Impact\n- Arbitrary database writes including modification or deletion of any table\n- Requires authenticated backend access with Developer permissions\n- Only relevant when `cms.safe_mode` is enabled (otherwise direct PHP injection is already possible)\n\n### Patches\nThe vulnerability has been patched in v3.7.14 and v4.1.10. Write operations such as `insert`, `update`, `delete`, and `truncate` are now blocked on query builder and model objects within the Twig sandbox. All users are encouraged to upgrade to the latest patched version.\n\n### Workarounds\nIf upgrading immediately is not possible:\n- Restrict Developer tool access to fully trusted administrators only\n\n### Reporter\n- Reported by [Chris Alupului](https://github.com/neosprings)","format":"markdown","source":"ghsa"},{"lang":"es","text":"October es un Sistema de Gestión de Contenidos (CMS) y plataforma web. Antes de 3.7.14 y 4.1.10, se identificó una vulnerabilidad en la política de seguridad del sandbox de Twig que permitía operaciones de escritura en la base de datos cuando cms.safe_mode está habilitado. Usuarios de backend con permisos de Desarrollador podían usar el marcado de plantillas de Twig para ejecutar operaciones de inserción, actualización y eliminación en cualquier tabla de la base de datos a través del constructor de consultas, que está incluido en la lista de permitidos del sandbox. Esta vulnerabilidad está corregida en 3.7.14 y 4.1.10.","source":"nvd"}],"published":"2026-04-21T16:16:06.488Z","modified":"2026-10-26T22:10:00.163Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H","score":6.6,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H","score":6.6,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H","score":6.6,"rating":"MEDIUM"}],"cwes":["CWE-184","CWE-863"],"affected":[{"ranges":[{"version":">= 4.0.0, < 4.1.10","status":"affected"},{"version":"< 3.7.14","status":"affected"}],"vendor":"octobercms","product":"october","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"3.7.14"}],"ecosystem":"Packagist","package":"october/october","purl":"pkg:composer/october/october","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"4.0.0","status":"affected","fixed":"4.1.10"}],"ecosystem":"Packagist","package":"october/october","purl":"pkg:composer/october/october","source":"ghsa"}],"references":[{"url":"https://github.com/octobercms/october/security/advisories/GHSA-h6jm-f4hh-fw27","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-26274","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/octobercms/october","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-04-21T19:16:28.731Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-26274","url":"https://www.cve.org/CVERecord?id=CVE-2026-26274","licence":"CVE Terms of Use","modified":"2026-04-21T19:16:38.739Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-h6jm-f4hh-fw27","url":"https://github.com/advisories/GHSA-h6jm-f4hh-fw27","licence":"CC-BY-4.0","modified":"2026-05-05T16:07:20.580Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-26274","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-26274","licence":"Public domain","modified":"2026-10-26T22:10:00.163Z"}],"updatedAt":"2026-11-25T22:59:19.112Z","epss":{"score":0.00238,"percentile":0.15922,"date":"2026-12-01T12:00:22.000Z"}}