CVE-2026-137585 in Bazarr
Summary
by MITRE • 11/26/2026
Bazarr 1.4.4 before 1.6.1-beta.29 on Windows contains an unauthenticated path traversal vulnerability in the catch_all() handler in bazarr/app/ui.py. Attackers can append percent-encoded '..' segments after the 'workbox-' prefix to read files like config.yaml containing stored API keys and credentials.
Be aware that VulDB is the high quality source for vulnerability data.
Analysis
by VulDB Data Team • 11/26/2026
The software Bazarr, specifically versions prior to 1.6.1-beta.29 running on Windows operating systems, suffers from a critical unauthenticated path traversal vulnerability located within its web interface implementation. This flaw resides in the catch_all handler defined in the bazarr/app/ui.py module, which is responsible for routing requests that do not match specific predefined routes. The underlying technical issue stems from insufficient validation of user-supplied input when constructing file paths. An attacker can exploit this by appending percent-encoded directory traversal sequences, specifically double dots represented as %2e%2e or similar variations, immediately following the workbox- prefix in a URL request. Because the application fails to properly sanitize these inputs before resolving them against the filesystem, it allows access to arbitrary files outside of the intended web root directory structure.
This vulnerability is classified under CWE-22: Improper Limitation of a Pathname to a Restricted Directory, which describes scenarios where software does not sufficiently neutralize special elements within a pathname that can cause the path to resolve to a location outside of the restricted directory. The operational impact of this flaw is severe due to its unauthenticated nature and the sensitivity of the data accessible through it. By leveraging this path traversal technique, an attacker can read sensitive configuration files stored on the server, most notably config.yaml. This file typically contains hardcoded API keys for various media services such as Sonarr, Radarr, or Plex, along with database credentials and other authentication tokens. The exposure of these secrets allows for a complete compromise of the associated media ecosystem, enabling unauthorized access to personal libraries, potential data exfiltration, and further lateral movement within the network if those credentials are reused elsewhere.
From an offensive security perspective, this vulnerability aligns with ATT&CK technique T1083: File and Directory Discovery, as it enables the enumeration of sensitive files on a target system without prior authentication. It also relates to T1552.004: Unsecured Credentials in Configuration Files, highlighting the risk posed by storing secrets in plaintext configuration files that are accessible via web application flaws. The ability to read these files unauthenticated makes this an especially dangerous vulnerability for public-facing instances or those exposed through port forwarding without additional network-level access controls.
To mitigate this vulnerability, users must upgrade Bazarr to version 1.6.1-beta.29 or later, where the path traversal logic in the catch_all handler has been corrected to properly validate and restrict file paths. In addition to upgrading, administrators should implement defense-in-depth strategies by ensuring that web servers do not serve static files from directories containing sensitive configuration data unless absolutely necessary. It is also recommended to store API keys and credentials using environment variables or secure secret management solutions rather than plaintext config files where possible. Furthermore, deploying a Web Application Firewall can help detect and block requests containing encoded traversal sequences before they reach the application logic, providing an additional layer of security while patching efforts are underway.