CVE-2023-44381 October CMS safe mode bypass using Page template injection

Medium 4.9 Published Updated

Authenticated users with editor permissions can bypass safe mode to inject PHP code into CMS templates, enabling remote code execution.

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-44381?

CVE-2023-44381 is a medium-severity 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 craft a special request to include PHP code in the CMS template. This issue has been patched in version 3.4.15.

Weakness: CWE-94

Which versions are affected by CVE-2023-44381?

2 open source packages ship an affected version, including october/system. It affects 1 product.

PackageAffectedFixed in
october/system PackagistFrom 3.0.03.4.15
october/system PackagistFrom 3.0.03.4.15

Products include Octobercms October.

How do I fix CVE-2023-44381?

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-44381 being exploited?

There is no known exploitation of CVE-2023-44381 in the wild and no public exploit code.

All Octobercms October vulnerabilities

Sources

Also known as GHSA-q22j-5r3g-9hmh.

Is CVE-2023-44381 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free