CVE-2020-5297 Upload whitelisted files to any directory in OctoberCMS

Low 3.4 Published Updated

Authenticated users with asset management permissions can upload files to arbitrary directories, potentially leading to code execution or data modification.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2020-5297?

CVE-2020-5297 is a low-severity path traversal vulnerability in Octobercms October, published on 3 Jun 2020. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link.

Official description

In OctoberCMS (october/october composer package) versions from 1.0.319 and before 1.0.466, an attacker can exploit this vulnerability to upload jpg, jpeg, bmp, png, webp, gif, ico, css, js, woff, woff2, svg, ttf, eot, json, md, less, sass, scss, xml files to any directory of an October CMS server. The vulnerability is only exploitable by an authenticated backend user with the `cms.manage_assets` permission. Issue has been patched in Build 466 (v1.0.466).

Weakness: CWE-610, CWE-73

Which versions are affected by CVE-2020-5297?

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

PackageAffectedFixed in
october/cms PackagistFrom 1.0.3191.0.466
october/cms PackagistFrom 1.0.3191.0.466

Products include Octobercms October.

How do I fix CVE-2020-5297?

Upgrade october/cms to 1.0.466 or later.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2020-5297 being exploited?

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

All Octobercms October vulnerabilities

Sources

Also known as GHSA-9722-rr68-rfpg.

Is CVE-2020-5297 in your software?

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

Check your SBOMs for free