Summary
CVE-2022-51024 is a path traversal vulnerability (CWE-22) in the cover-upload endpoint of Kavita, a self-hosted media server. Unauthenticated remote attackers can read files outside the intended directory. The CVSS v4.0 base score is 8.7 (High).
Technical details
- Root cause: improper limitation of a pathname. The cover-upload endpoint does not sanitize
../sequences in filename parameters. - Trigger conditions: the attacker sends a crafted request with traversal sequences in the filename parameter, for example
../appsettings.json. No authentication or user interaction is required. - Attack vector: network.
- Impact: disclosure of files outside the intended directory, such as application configuration files (
appsettings.json). The CVE record rates this as a confidentiality impact only.
Affected software
- Kavita versions 0.5.2 up to, but not including, 0.5.4.1 (the record lists 0.5.2 through 0.5.4.0)
Severity
- CVSS v4.0: 8.7 (High),
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N - CVSS v3.1: 7.5 (High),
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Mitigation and recommended actions
- Immediate: upgrade Kavita to version 0.5.4.1 or later.
- If you cannot patch immediately: restrict network access to the Kavita instance, for example to a VPN or an IP allowlist, and don’t expose it directly to the internet.
- After patching, consider rotating any secrets stored in files that may have been exposed, such as those in
appsettings.json, if you suspect the instance was exposed.

