CVE-2025-52880CWE-799

Komga Vulnerable to Arbitrary Code Execution via Crafted EPUB File

Medium · published June 24, 2025

CVSS v3.1
4.2
EPSS
0%
Percentile
24.0
In the wild
Unconfirmed
What it is

Komga is a media server for comics, mangas, BDs, magazines and eBooks. A Cross-Site Scripting (XSS) vulnerability has been discovered in versions 1.8.0 through 1.21.3 when serving EPUB resources, either directly from the API, or when reading using the epub reader. The vulnerability lets an attacker perform actions on the victim's behalf. When targeting an admin user, this can be combined with controlling a server-side command to achieve arbitrary code execution. For this vulnerability to be exploited, a malicious EPUB file has to be present in a Komga library, and subsequently accessed in the Epub reader by an admin user. Version 1.22.0 contains a patch for the issue.

The record
Technical detail
CVSS v3.1
4.2 · MEDIUM
Vector
CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:N/I:H/A:N
CVSS v4.0
Not supplied
EPSS
0.00322 · 24.0th percentile
Weakness
CWE-799 · Improper Control of Interaction Frequency
Published
2025-06-24T19:56Z
EPSS history
Timeline
  • 24 JUN 19:56Z
    Komga Vulnerable to Arbitrary Code Execution via Crafted EPUB File
    cvelistv5