CVE-2022-51024: Kavita path traversal in cover upload API

CVE-2022-51024 · Severity: high · CVSS 7.5 · Published 2026-10-22

Kavita is a self-hosted server for managing digital media libraries. A path traversal vulnerability in the cover upload endpoint allows unauthenticated attackers to read arbitrary files from the server by supplying directory traversal sequences in filenames, potentially exposing sensitive configuration files and other data.

Technologies: Kareadita Kavita. Vendors: Kareadita.

Quick answers

Is CVE-2022-51024 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2022-51024 being exploited in the wild.
How severe is CVE-2022-51024?
High severity, with a CVSS score of 7.5, published 22 October 2026.
Which products and versions are affected?
Kareadita Kavita 0.5.2 before 0.5.4.1.
Is there a fix for CVE-2022-51024?
Yes: fixed in 0.5.4.1. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is CVE-2022-51024 attacked?
It is attacked over the network.
Am I affected by CVE-2022-51024?
Check whether you run Kareadita Kavita at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • Fixed in: 0.5.4.1

Technical details

The /api/image/cover-upload endpoint accepts a filename parameter without proper validation, allowing attackers to inject directory traversal sequences like '../' to read files outside the intended temp directory. This is an unauthenticated local file inclusion (LFI) vulnerability requiring only network access. Attackers can retrieve sensitive files such as appsettings.json containing credentials and configuration secrets.

Affected products

  • Kareadita Kavita 0.5.2 before 0.5.4.1

Timeline

  • 2022-08-08: disclosed: Security hotfix commit addressing cover-upload validation
  • 2026-10-22: advisory
  • 2023-10-18: exploited: Exploitation evidence observed by Shadowserver Foundation

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.