CVE-2021-32649 Authenticated file write leads to remote code execution in october/system

High 8.8 Published Updated

Authenticated attackers with page management privileges can execute arbitrary PHP code via crafted Twig templates in October CMS.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2021-32649?

CVE-2021-32649 is a high-severity code injection vulnerability in Octobercms October, published on 14 Jan 2022. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

October CMS is a self-hosted content management system (CMS) platform based on the Laravel PHP Framework. Prior to versions 1.0.473 and 1.1.6, an attacker with "create, modify and delete website pages" privileges in the backend is able to execute PHP code by running specially crafted Twig code in the template markup. The issue has been patched in Build 473 (v1.0.473) and v1.1.6. Those unable to upgrade may apply the patch to their installation manually as a workaround.

Weakness: CWE-94, CWE-74

Which versions are affected by CVE-2021-32649?

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

PackageAffectedFixed in
october/system PackagistAll versions1.0.473
october/system PackagistAll versions1.0.473
october/system PackagistFrom 1.1.01.1.6
october/system PackagistFrom 1.1.01.1.6

Products include Octobercms October.

How do I fix CVE-2021-32649?

Upgrade october/system to a fixed version for your release line: 1.0.473 or 1.1.6.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2021-32649 being exploited?

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

All Octobercms October vulnerabilities

Sources

Also known as GHSA-wv23-pfj7-2mjj.

Is CVE-2021-32649 in your software?

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

Check your SBOMs for free