Skip to content
Threat Feed
high threat

Kavita: Path traversal vulnerability (CVE-2022-51024)

Kavita versions 0.5.2 through 0.5.4.0 contain a path traversal vulnerability in the /api/image/cover-upload endpoint, allowing unauthenticated attackers to read arbitrary files.

CVE search metadata

CVE search record: CVE-2022-51024. Severity: high. CVSS: 7.5. KEV: no. Product: Kavita (0.5.2 <= version < 0.5.4.1). Brief: Kavita: Path traversal vulnerability (CVE-2022-51024). Brief link: https://feed.craftedsignal.io/briefs/2026-10-kavita-path-traversal/

Triage facts

Revision 1
Applicability
Kavita (0.5.2 <= version < 0.5.4.1)
Evidence
Unknown
Severity
High
Action
Immediate escalation
Sources
1 public source
Freshness
Revision 1Oct 22, 14:15 UTC
Detection
1 rule
Vulnerabilities
1 CVE
Source quality
A1Very likely

Kavita versions prior to 0.5.4.1 are susceptible to a path traversal vulnerability. Unauthenticated attackers can exploit the 'filename' parameter within the '/api/image/cover-upload' endpoint to access files outside of the intended directory by injecting directory traversal sequences (e.g., '../'). The Shadowserver Foundation observed in-the-wild exploitation of this vulnerability beginning on 2023-10-18.

Impact

Successful exploitation allows unauthenticated attackers to read arbitrary files from the server's filesystem, including sensitive configuration files such as 'appsettings.json'.

Recommendation

  • Update Kavita to version 0.5.4.1 or later immediately.
  • Audit server access logs for requests to '/api/image/cover-upload' containing directory traversal sequences ('../').
  • Restrict network access to the Kavita management interface to trusted subnets.

Immediate actions

Patch Kavita to 0.5.4.1 or later

IT Operations 24h

Hunt for historical exploitation attempts in web logs

SOC 48h

Mitigations

Upgrade Kavita to 0.5.4.1

immediate IT Operations

CVE-2022-51024

Detection coverage 1

Detect CVE-2022-51024 Exploitation - Path Traversal

high

Detects exploitation attempts against CVE-2022-51024 where the filename parameter contains traversal sequences

sigma tactics: initial_access techniques: T1190 sources: webserver

Detection queries are available on the platform. Get full rules →