CVE-2023-44382 October CMS safe mode bypass using Twig sandbox escape
Authenticated users with editor permissions can bypass safe mode via Twig sandbox escape to execute arbitrary PHP code.
- Exploited in the wild
- Not known
- Login needed
- An administrator
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2023-44382?
CVE-2023-44382 is a critical code injection vulnerability in Octobercms October, published on 1 Dec 2023. An attacker needs administrator access to exploit it, with no action from the victim.
Official description
October is a Content Management System (CMS) and web platform to assist with development workflow. An authenticated backend user with the `editor.cms_pages`, `editor.cms_layouts`, or `editor.cms_partials` permissions who would normally not be permitted to provide PHP code to be executed by the CMS due to `cms.safe_mode` being enabled can write specific Twig code to escape the Twig sandbox and execute arbitrary PHP. This issue has been patched in 3.4.15.
Weakness: CWE-94
Which versions are affected by CVE-2023-44382?
2 open source packages ship an affected version, including october/system. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
october/system Packagist | From 3.0.0 | 3.4.15 |
october/system Packagist | From 3.0.0 | 3.4.15 |
Products include Octobercms October.
How do I fix CVE-2023-44382?
Upgrade october/system to 3.4.15 or later.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2023-44382 being exploited?
There is no known exploitation of CVE-2023-44382 in the wild and no public exploit code.
Other vulnerabilities in Octobercms October
Sources
Also known as GHSA-p8q3-h652-65vx.