CVE-2020-5297 Upload whitelisted files to any directory in OctoberCMS
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).
Which versions are affected by CVE-2020-5297?
2 open source packages ship an affected version, including october/cms. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
october/cms Packagist | From 1.0.319 | 1.0.466 |
october/cms Packagist | From 1.0.319 | 1.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.
Other vulnerabilities in Octobercms October
Sources
Also known as GHSA-9722-rr68-rfpg.