Moderate severityNVD Advisory· Published Jun 3, 2020· Updated Aug 4, 2024
Arbitrary File Deletion vulnerability in OctoberCMS
CVE-2020-5296
Description
In OctoberCMS (october/october composer package) versions from 1.0.319 and before 1.0.466, an attacker can exploit this vulnerability to delete arbitrary local files 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).
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
october/cmsPackagist | >= 1.0.319, < 1.0.466 | 1.0.466 |
Affected products
1- Range: >= 1.0.319, < 1.0.466
Patches
12b8939cc8b5bImprove asset file path handling
1 file changed · +8 −1
modules/cms/classes/Asset.php+8 −1 modified@@ -285,7 +285,14 @@ public function getFilePath($fileName = null) $fileName = $this->fileName; } - return $this->theme->getPath().'/'.$this->dirName.'/'.$fileName; + // Limit paths to those under the assets directory + $directory = $this->theme->getPath() . '/' . $this->dirName . '/'; + $path = realpath($directory . $fileName); + if (!starts_with($path, $directory)) { + return false; + } + + return $path; } /**
Vulnerability mechanics
Generated by null/stub on May 9, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.
References
6- github.com/advisories/GHSA-jv6v-fvvx-4932ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2020-5296ghsaADVISORY
- packetstormsecurity.com/files/158730/October-CMS-Build-465-XSS-File-Read-File-Deletion-CSV-Injection.htmlghsax_refsource_MISCWEB
- seclists.org/fulldisclosure/2020/Aug/2ghsamailing-listx_refsource_FULLDISCWEB
- github.com/octobercms/october/commit/2b8939cc8b5b6fe81e093fe2c9f883ada4e3c8ccghsax_refsource_MISCWEB
- github.com/octobercms/october/security/advisories/GHSA-jv6v-fvvx-4932ghsax_refsource_CONFIRMWEB
News mentions
0No linked articles in our index yet.