CVE-2026-130156: Bazarr: Authenticated path traversal (arbitrary file read & write) in subtitle operations due to missing path containment
Bazarr is a companion application to Sonarr and Radarr. Prior to 1.6.3-beta.11, the /api/subtitles/subtitles-info handler uses SubtitleNameContents.get() in subtitlescontents.py and reads the caller-supplied subtitlePath after checking only its subtitle extension; because the resolved path is not confined to files indexed by Bazarr, traversal can read files outside the media library. The /api/subtitles/subtitles handler in subtitles.py passes caller-supplied path and reference to sync and translation without per-path authorization, allowing an out-of-library reference file to be read and output to overwrite a file outside the media library. The authenticate decorator gates both endpoints when API authentication is enabled, while auth = None allows access without credentials. Both paths can affect only files that the Bazarr process can read or write. This issue is fixed in version 1.6.3-beta.11.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 1.6.3-beta.11
Event History
Frequently Asked Questions
Who can exploit the affected endpoints?
When API authentication is enabled, an attacker must authenticate to reach the affected endpoints. If Bazarr is configured with auth = None, the endpoints can be accessed without credentials.
What access can an attacker gain through this issue?
An attacker can use a traversal path to read files outside the media library through the subtitle information endpoint. They can also cause translation or sync operations to use an out-of-library reference file and overwrite a file outside the media library.
Are all files on the host exposed?
No. The issue affects only files that the Bazarr process account is permitted to read or write.
What should be done if upgrading cannot happen immediately?
Enable API authentication if it is currently disabled, since auth = None permits unauthenticated access to the affected endpoints. Restrict Bazarr's process permissions so it has access only to files it needs, limiting the files that can be read or overwritten.
Which versions are affected and which version fixes the issue?
Versions prior to 1.6.3-beta.11 are affected. The issue is fixed in 1.6.3-beta.11.