6.6medium
October: Safe Mode Bypass via Twig Database Write Operations
- Severity
- 6.6medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.24% (higher than 15% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-h6jm-f4hh-fw27
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| octobercms october | >= 4.0.0, < 4.1.10, < 3.7.14 | CVE List |
| october/october (Packagist) | before 3.7.14, from 4.0.0 before 4.1.10 | GitHub Advisory Database |
All scores
| GitHub_M | 6.6medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 6.6medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H |
Classification
What each source says
CVE List
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.
GitHub Advisory Database
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.
Impact
- Arbitrary database writes including modification or deletion of any table
- Requires authenticated backend access with Developer permissions
- Only relevant when
cms.safe_modeis enabled (otherwise direct PHP injection is already possible)
Patches
The 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.
Workarounds
If upgrading immediately is not possible:
- Restrict Developer tool access to fully trusted administrators only
Reporter
- Reported by Chris Alupului
NVD (es)
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.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-26274 changed 2026-04-21 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-h6jm-f4hh-fw27 changed 2026-05-05 | CC-BY-4.0 |
| NVD | CVE-2026-26274 changed 2026-10-26 | Public domain |