---
id: CVE-2026-48946
title: >-
  The K2 frontend article-attachment upload path accepts files whose extension
  is `.php`, and Apache's standard mod_php matches `\.php$` and executes them
  under the K2 web user
summary: >-
  The K2 frontend article-attachment upload path accepts files whose extension
  is `.php`, and Apache's standard mod_php matches `\.php$` and executes them
  under the K2 web user. A K2 Author can upload a `shell.php`, then fetch
  `/media/k2/a…
severity: medium
cvss: 6.3
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L'
cwe:
  - CWE-434
published: '2026-06-25'
updated: '2026-06-28'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-48946'
references:
  - url: 'https://www.getk2.org/'
    label: security@joomla.org
tags:
  - nvd
epss: 0.00284
epssPercentile: 0.21139
ingestedAt: '2026-06-29T13:42:12.014Z'
---

## Overview

The K2 frontend article-attachment upload path accepts files whose extension is `.php`, and Apache's standard mod_php matches `\.php$` and executes them under the K2 web user. A K2 Author can upload a `shell.php`, then fetch `/media/k2/attachments/shell.php` and execute arbitrary PHP code in the web server's context.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
