CVE-2020-5295
PHP vulnerability analysis and mitigation

Overview

CVE-2020-5295 is a local file inclusion vulnerability affecting OctoberCMS (october/october composer package) versions from 1.0.319 and before 1.0.466. The vulnerability allows authenticated backend users with 'cms.manage_assets' permission to read local files on the October CMS server through the asset management functionality (GitHub Advisory).

Technical details

The vulnerability exists in the asset editing functionality, specifically in the index_onOpenTemplate() function defined in modules/cms/controllers/Index.php. The function initializes the template variable directly using the 'path' parameter without proper validation, allowing an attacker to retrieve contents of any file on the server. The issue was patched in Build 466 by improving asset file path handling to limit paths to those under the assets directory (GitHub Commit).

Impact

An authenticated attacker with 'cms.manage_assets' permission can read sensitive local files on the October CMS server, potentially exposing configuration files, credentials, and other confidential information (Full Disclosure).

Exploitability

The vulnerability requires authentication and specific permissions ('cms.manage_assets') to exploit. An attacker can exploit this by modifying the 'path' parameter in requests that retrieve assets for editing, allowing them to read arbitrary files on the server. A proof-of-concept exploit has been published that demonstrates the ability to retrieve any file from October CMS when provided with the appropriate user cookies (Full Disclosure).

Mitigation and workarounds

The primary mitigation is to upgrade to OctoberCMS version 1.0.466 or later, which includes the security patch. For users unable to upgrade, a manual workaround is available by applying the patch from commit 2b8939c, which implements proper validation of the asset file paths (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related PHP vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-56825HIGH8.1
  • PHP logoPHP
  • shopper/framework
NoYesSep 11, 2026
CVE-2026-56829HIGH8.1
  • PHP logoPHP
  • shopper/framework
NoYesSep 11, 2026
CVE-2026-56830MEDIUM6.5
  • PHP logoPHP
  • shopper/framework
NoYesSep 11, 2026
CVE-2026-56831MEDIUM6.5
  • PHP logoPHP
  • shopper/framework
NoYesSep 11, 2026
CVE-2026-49992MEDIUM6.3
  • PHP logoPHP
  • kimai/kimai
NoYesSep 11, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management