PHP2Shell: Read our blog on the critical RCE vulnerabilities affecting 70% of the Internet

CVE-2020-26255: 
PHP vulnerability analysis and mitigation

Overview

Kirby CMS (getkirby/cms) before version 3.4.5, and Kirby Panel before version 2.5.14, contained a critical vulnerability (CVE-2020-26255) that allowed authenticated users with Panel access to upload and execute PHP .phar files on the server. The vulnerability was discovered and reported by security researcher Thore Imhof of Accenture in December 2020 (GitHub Security).

Technical details

The vulnerability is classified as CWE-434 (Unrestricted Upload of File with Dangerous Type) and received a CVSS v3.1 score of 10.0 (Critical). The issue stems from insufficient file upload validation that allowed .phar files to be uploaded and executed on the server. While the system had restrictions for PHP files, it did not properly block PHAR archives, which could be used to execute arbitrary PHP code (GitHub Advisory).

Impact

The vulnerability could allow authenticated users with Panel access to gain unauthorized server access and execute arbitrary code. This was particularly critical in environments where potential attackers might have legitimate access to the Kirby Panel. However, it's important to note that visitors without Panel access could not exploit this vulnerability (Kirby Release).

Exploitability

The vulnerability required an authenticated user with Panel access to exploit. The attack could be performed by uploading a specially crafted PHAR file through the Panel interface. The attacker would need low privileges and no special user interaction was required beyond the file upload (GitHub Security).

Mitigation and workarounds

The vulnerability was patched in Kirby 2.5.14 and Kirby 3.4.5. Users were strongly advised to upgrade to these versions or later to fix the vulnerability. For Kirby 2 users, which reached end-of-life on December 31, 2020, it was recommended to upgrade to Kirby 3. If upgrading was not immediately possible, users were advised to at least update to Kirby 2.5.14 (GitHub Security).

Additional resources


Source: This report was generated using AI

Related PHP vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-3qcx-mjf6-48vjHIGHN/A
  • PHP logoPHP
  • craftcms/commerce-mollie
NoYesOct 23, 2026
GHSA-5v62-pcq7-fxj9LOWN/A
  • PHP logoPHP
  • craftcms/cms
NoYesOct 23, 2026
GHSA-hvp5-pwxx-2752LOWN/A
  • PHP logoPHP
  • craftcms/cms
NoYesOct 23, 2026
GHSA-mp59-9rf5-93wrMEDIUMN/A
  • PHP logoPHP
  • craftcms/cms
NoYesOct 23, 2026
GHSA-xpg7-m6gm-4xfhMEDIUMN/A
  • PHP logoPHP
  • craftcms/cms
NoYesOct 23, 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