5.7
MEDIUM
CVE-2023-38491
"Kirby Content Management System Remote Code Execution Vulnerability"
Description

Kirby is a content management system. A vulnerability in versions prior to 3.5.8.3, 3.6.6.3, 3.7.5.2, 3.8.4.1, and 3.9.6 affects all Kirby sites that might have potential attackers in the group of authenticated Panel users or that allow external visitors to upload an arbitrary file to the content folder. Kirby sites are not affected if they don't allow file uploads for untrusted users or visitors or if the file extensions of uploaded files are limited to a fixed safe list. The attack requires user interaction by another user or visitor and cannot be automated. An editor with write access to the Kirby Panel could upload a file with an unknown file extension like `.xyz` that contains HTML code including harmful content like `<script>` tags. The direct link to that file could be sent to other users or visitors of the site. If the victim opened that link in a browser where they are logged in to Kirby and the file had not been opened by anyone since the upload, Kirby would not be able to send the correct MIME content type, instead falling back to `text/html`. The browser would then run the script, which could for example trigger requests to Kirby's API with the permissions of the victim. The issue was caused by the underlying `Kirby\Http\Response::file()` method, which didn't have an explicit fallback if the MIME type could not be determined from the file extension. If you use this method in site or plugin code, these uses may be affected by the same vulnerability. The problem has been patched in Kirby 3.5.8.3, 3.6.6.3, 3.7.5.2, 3.8.4.1, and 3.9.6. In all of the mentioned releases, the maintainers have fixed the affected method to use a fallback MIME type of `text/plain` and set the `X-Content-Type-Options: nosniff` header if the MIME type of the file is unknown.

INFO

Published Date :

July 27, 2023, 4:15 p.m.

Last Modified :

Aug. 3, 2023, 1:35 p.m.

Remotely Exploitable :

Yes !

Impact Score :

3.6

Exploitability Score :

2.1
Affected Products

The following products are affected by CVE-2023-38491 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Getkirby kirby
References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2023-38491.

URL Resource
https://github.com/getkirby/kirby/commit/2f06ba1c026bc91cb0702bc16b7d505642536d15 Patch Third Party Advisory
https://github.com/getkirby/kirby/releases/tag/3.5.8.3 Third Party Advisory
https://github.com/getkirby/kirby/releases/tag/3.6.6.3 Third Party Advisory
https://github.com/getkirby/kirby/releases/tag/3.7.5.2 Third Party Advisory
https://github.com/getkirby/kirby/releases/tag/3.8.4.1 Third Party Advisory
https://github.com/getkirby/kirby/releases/tag/3.9.6 Third Party Advisory
https://github.com/getkirby/kirby/security/advisories/GHSA-8fv7-wq38-f5c9 Third Party Advisory

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2023-38491 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2023-38491 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by [email protected]

    May. 14, 2024

    Action Type Old Value New Value
  • Initial Analysis by [email protected]

    Aug. 03, 2023

    Action Type Old Value New Value
    Added CVSS V3.1 NIST AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
    Changed Reference Type https://github.com/getkirby/kirby/commit/2f06ba1c026bc91cb0702bc16b7d505642536d15 No Types Assigned https://github.com/getkirby/kirby/commit/2f06ba1c026bc91cb0702bc16b7d505642536d15 Patch, Third Party Advisory
    Changed Reference Type https://github.com/getkirby/kirby/releases/tag/3.5.8.3 No Types Assigned https://github.com/getkirby/kirby/releases/tag/3.5.8.3 Third Party Advisory
    Changed Reference Type https://github.com/getkirby/kirby/releases/tag/3.6.6.3 No Types Assigned https://github.com/getkirby/kirby/releases/tag/3.6.6.3 Third Party Advisory
    Changed Reference Type https://github.com/getkirby/kirby/releases/tag/3.7.5.2 No Types Assigned https://github.com/getkirby/kirby/releases/tag/3.7.5.2 Third Party Advisory
    Changed Reference Type https://github.com/getkirby/kirby/releases/tag/3.8.4.1 No Types Assigned https://github.com/getkirby/kirby/releases/tag/3.8.4.1 Third Party Advisory
    Changed Reference Type https://github.com/getkirby/kirby/releases/tag/3.9.6 No Types Assigned https://github.com/getkirby/kirby/releases/tag/3.9.6 Third Party Advisory
    Changed Reference Type https://github.com/getkirby/kirby/security/advisories/GHSA-8fv7-wq38-f5c9 No Types Assigned https://github.com/getkirby/kirby/security/advisories/GHSA-8fv7-wq38-f5c9 Third Party Advisory
    Added CPE Configuration OR *cpe:2.3:a:getkirby:kirby:*:*:*:*:*:*:*:* versions from (including) 3.5.0 up to (excluding) 3.5.8.3 *cpe:2.3:a:getkirby:kirby:*:*:*:*:*:*:*:* versions from (including) 3.6.0 up to (excluding) 3.6.6.3 *cpe:2.3:a:getkirby:kirby:*:*:*:*:*:*:*:* versions from (including) 3.7.0 up to (excluding) 3.7.5.2 *cpe:2.3:a:getkirby:kirby:*:*:*:*:*:*:*:* versions from (including) 3.8.0 up to (excluding) 3.8.4.1 *cpe:2.3:a:getkirby:kirby:*:*:*:*:*:*:*:* versions from (including) 3.9.0 up to (excluding) 3.9.6
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2023-38491 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2023-38491 weaknesses.

Exploit Prediction

EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.

0.18 }} 0.02%

score

0.55858

percentile

CVSS31 - Vulnerability Scoring System
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability