CVE-2020-26255: Getkirby/panel Kirby Panel Users Could Upload Vulnerability
MODERATECVE-2020-26255 is a MODERATE (CVSS 6.8) kirby panel users could upload vulnerability (CWE-434: Unrestricted Upload of File with Dangerous Type) affecting Getkirby/panel libraries in the Packagist ecosystem. The issue involves kirby panel users could upload php phar archives as content files before v2.5.14 and v3.4.5. Remediation is available by upgrading affected packages to version 2.5.14, 3.4.5.
CVE-2020-26255 at a Glance
Security Impact
CVSS: 6.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:N/I:H/A:N).
How to Fix CVE-2020-26255
To remediate this vulnerability, upgrade all affected Getkirby/panel dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade getkirby/panel to 2.5.14
Upgrade getkirby/cms to 3.4.5
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for getkirby/panel
How to Check if You Are Affected
To determine whether your application is affected by CVE-2020-26255, inspect your project dependencies for Getkirby/panel:
inspect dependencies for getkirby/panel
Analyze the terminal output to locate any version of Getkirby/panel in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.5.14), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-434: Unrestricted Upload of File with Dangerous Type, where the product allows the upload or transfer of dangerous file types that are automatically processed within its environment. In Getkirby/panel, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2020-26255 Affected Getkirby/panel Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
getkirby/panel
|
Packagist |
< 2.5.14
|
2.5.14
|
|
getkirby/cms
|
Packagist |
≥ 3.0.0
< 3.4.5
|
3.4.5
|
References
Frequently Asked Questions
What is CVE-2020-26255?
Which Getkirby/panel versions are affected?
What version fixes CVE-2020-26255?
Is getkirby/panel affected?
Is getkirby/cms affected?
What is the CVSS score of CVE-2020-26255?
What CWE is associated with CVE-2020-26255?
How can I check Packagist dependencies for CVE-2020-26255?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-g3h8-cg9x-47qw",
"modified" : "2022-07-20T16:59:44Z",
"published" : "2020-12-08T14:42:08Z",
"aliases" : [ "CVE-2020-26255" ],
"summary" : "Kirby Panel users could upload PHP Phar archives as content files before v2.5.14 and v3.4.5",
"details" : "### Impact\n\nAn editor with full access to the Kirby Panel can upload a PHP `.phar` file and execute it on the server. This vulnerability is critical if you might have potential attackers in your group of authenticated Panel users, as they can gain access to the server with such a Phar file.\n\nVisitors without Panel access *cannot* use this attack vector.\n\n### Patches\n\nThe problem has been patched in [Kirby 2.5.14](https://github.com/getkirby-v2/panel/releases/tag/2.5.14) and [Kirby 3.4.5](https://github.com/getkirby/kirby/releases/tag/3.4.5). Please update to one of these or a [later version](https://github.com/getkirby/kirby/releases/) to fix the vulnerability.\n\n**Note:** Kirby 2 reaches end of life on December 31, 2020. We therefore recommend to upgrade your Kirby 2 sites to Kirby 3. If you cannot upgrade, we still recommend to update to Kirby 2.5.14.\n\n### Workarounds\n\nKirby 2 sites on older releases can also be patched by applying the [changes from this commit](https://github.com/getkirby-v2/panel/commit/5a569d4e3ddaea2b6628d7ec1472a3e8bc410881).\n\n### Credits\n\nThanks to Thore Imhof of Accenture for reporting the problem.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:N/I:H/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "getkirby/panel"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.5.14"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "getkirby/cms"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.0.0"
}, {
"fixed" : "3.4.5"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/getkirby/kirby/security/advisories/GHSA-g3h8-cg9x-47qw"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-26255"
}, {
"type" : "WEB",
"url" : "https://github.com/getkirby-v2/panel/commit/5a569d4e3ddaea2b6628d7ec1472a3e8bc410881"
}, {
"type" : "WEB",
"url" : "https://github.com/getkirby/kirby/commit/db8f371b13036861c9cc5ba3e85e27f73fce5e09"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/getkirby/kirby"
}, {
"type" : "WEB",
"url" : "https://github.com/getkirby/kirby/releases/tag/3.4.5"
}, {
"type" : "WEB",
"url" : "https://packagist.org/packages/getkirby/cms"
}, {
"type" : "WEB",
"url" : "https://packagist.org/packages/getkirby/panel"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-434" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2020-12-08T14:41:42Z",
"nvd_published_at" : null
}
}