CVE-2026-145160: Janus WebRTC Server before 0.16.5 and 1.4.5 protected_folders Bypass on musl
Janus WebRTC Server before 0.16.5 and 1.4.5 contains a protectedfolders check bypass in janusisfolderprotected() that allows API clients to create recording files in protected directories on musl-based builds. Attackers can supply a recording filename or recdir to the VideoRoom or AudioBridge plugin to write recordings under directories like /etc or /var with Janus process privileges.
Affected Software
Event History
Frequently Asked Questions
Which deployments are exposed?
The bypass affects musl-based Janus builds that use the VideoRoom or AudioBridge plugins and run a version before 0.16.5 or 1.4.5. The practical impact depends on the filesystem permissions of the Janus process.
What must an attacker be able to do?
An attacker needs to act as an API client able to provide a recording filename or rec_dir value to the VideoRoom or AudioBridge plugin. No existing operating-system privileges are required by the vulnerability itself.
What is the impact of successful exploitation?
An attacker can cause recording files to be created in directories that should be protected, such as /etc or /var. Files are written with the privileges of the Janus process, so the consequence is unauthorized modification of locations writable by that account.
How can I determine whether an instance needs remediation?
Check whether Janus is built against musl, whether VideoRoom or AudioBridge recording requests are available to API clients, and whether the deployed release predates 0.16.5 or 1.4.5. Systems not using musl are not identified as affected by the provided information.
What is the primary remediation?
Update Janus WebRTC Server to 0.16.5 or 1.4.5 or a later release. Until updating, restrict access to API functionality that can set recording filenames or rec_dir values and ensure the Janus process has minimal filesystem write permissions.