---
id: CVE-2026-48945
title: >-
  The K2 article gallery upload path accepts a zip/tar archive, extracts it
  under `/media/k2/galleries/<id>/`, and only renames image files
  (gif/jpg/jpeg/png/webp) to safe names — non-image files (including `.php`) are
  extracted as-is and …
summary: >-
  The K2 article gallery upload path accepts a zip/tar archive, extracts it
  under `/media/k2/galleries/<id>/`, and only renames image files
  (gif/jpg/jpeg/png/webp) to safe names — non-image files (including `.php`) are
  extracted as-is and …
severity: medium
cvss: 5.3
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N'
cwe:
  - CWE-434
published: '2026-06-25'
updated: '2026-06-28'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-48945'
references:
  - url: 'https://www.getk2.org/'
    label: security@joomla.org
tags:
  - nvd
epss: 0.0033
epssPercentile: 0.26364
ingestedAt: '2026-06-29T13:42:12.012Z'
---

## Overview

The K2 article gallery upload path accepts a zip/tar archive, extracts it under `/media/k2/galleries/<id>/`, and only renames image files (gif/jpg/jpeg/png/webp) to safe names — non-image files (including `.php`) are extracted as-is and remain executable via direct HTTP access.

## Remediation

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