# CVE-2026-145160: Janus WebRTC Server before 0.16.5 and 1.4.5 protected_folders Bypass on musl

Source: https://aplosec.si/cve/CVE-2026-145160/

[AploSec](https://aplosec.si/) / [Disclosures](https://aplosec.si/disclosures/) / CVE-2026-145160

Medium 6.9 · Reported · Fixed in 0.16.5, 1.4.5 · CWE-22 · Server

# Janus WebRTC Server before 0.16.5 and 1.4.5 protected_folders Bypass on musl

CVE-2026-145160 · published 2026-12-04

In plain words: this type of bug lets someone read or write files outside the folder they should be limited to (path traversal). A fixed release is listed.

## Summary

CVE-2026-145160 affects Janus WebRTC Server (Server) < 0.16.5, 1.0.0 to < 1.4.5: protected_folders Bypass on musl (CWE-22). Fixed in 0.16.5, 1.4.5. CVSS 4.0 base score 6.9 (Medium), assigned by VulnCheck. Published 2026-12-04 by VulnCheck. Credit: Zachariah Mithani (AploSec).

Janus WebRTC Server before 0.16.5 and 1.4.5 contains a protected_folders check bypass in janus_is_folder_protected() that allows API clients to create recording files in protected directories on musl-based builds. Attackers can supply a recording filename or rec_dir to the VideoRoom or AudioBridge plugin to write recordings under directories like /etc or /var with Janus process privileges.

## Evidence

Reported to the maintainer. The public advisory and references below describe the evidence and preconditions; reporting status alone does not establish independent reproduction.

## Remediation

Upgrade Janus WebRTC Server to the fixed release on your line: 0.16.5, 1.4.5. Releases in the affected ranges (< 0.16.5, 1.0.0 to < 1.4.5) are vulnerable. See the linked advisory for details on affected release lines.

## Timeline

- 2026-12-04 CVE published

## References

- [VulnCheck advisoryhttps://www.vulncheck.com/advisories/janus-webrtc-server-before-0.16.5-and-1.4.5-protected-folders-bypass-on-musl](https://www.vulncheck.com/advisories/janus-webrtc-server-before-0.16.5-and-1.4.5-protected-folders-bypass-on-musl)

- [Fix pull requesthttps://github.com/meetecho/janus-gateway/pull/3739](https://github.com/meetecho/janus-gateway/pull/3739)

- [Fix commithttps://github.com/meetecho/janus-gateway/commit/f92014fedd235b09223fcb20dfacc89e9da01e23](https://github.com/meetecho/janus-gateway/commit/f92014fedd235b09223fcb20dfacc89e9da01e23)

- [Fix commithttps://github.com/meetecho/janus-gateway/commit/ab45cf7b74e0623c9761ed9c8e7de771ba4164d0](https://github.com/meetecho/janus-gateway/commit/ab45cf7b74e0623c9761ed9c8e7de771ba4164d0)

- [Vulnerable codehttps://github.com/meetecho/janus-gateway/blob/v1.4.4/src/utils.c#L587-L617](https://github.com/meetecho/janus-gateway/blob/v1.4.4/src/utils.c#L587-L617)

- [Vulnerable codehttps://github.com/meetecho/janus-gateway/blob/v1.4.4/src/record.c#L208-L230](https://github.com/meetecho/janus-gateway/blob/v1.4.4/src/record.c#L208-L230)

- [Releasehttps://github.com/meetecho/janus-gateway/releases/tag/v1.4.5](https://github.com/meetecho/janus-gateway/releases/tag/v1.4.5)

- [Releasehttps://github.com/meetecho/janus-gateway/releases/tag/v0.16.5](https://github.com/meetecho/janus-gateway/releases/tag/v0.16.5)

- [CVE recordhttps://www.cve.org/CVERecord?id=CVE-2026-145160](https://www.cve.org/CVERecord?id=CVE-2026-145160)

- [NVD recordhttps://nvd.nist.gov/vuln/detail/CVE-2026-145160](https://nvd.nist.gov/vuln/detail/CVE-2026-145160)

**Severity:** Medium 6.9 CVSS 4.0, scored by VulnCheck in the [CVE record](https://www.cve.org/CVERecord?id=CVE-2026-145160)

**Package:** Janus WebRTC Server

**Ecosystem:** Server

**Affected:** < 0.16.5, 1.0.0 to < 1.4.5

**Fixed:** 0.16.5, 1.4.5

**Weakness:** CWE-22

**CNA:** VulnCheck

**Credit:** Zachariah Mithani (AploSec) finder
