{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "0"
                  },
                  {
                    "fixed": "0.16.5"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              },
              {
                "range": [
                  {
                    "introduced": "1.0.0"
                  },
                  {
                    "fixed": "1.4.5"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              },
              {
                "range": [
                  {
                    "fixed": "f92014fedd235b09223fcb20dfacc89e9da01e23"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "range": [
                  {
                    "fixed": "ab45cf7b74e0623c9761ed9c8e7de771ba4164d0"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "original_tag": "v1.4.5",
                "range": [
                  {
                    "fixed": "adaf80b18c8db4f122b92bec62dc4504d4b54285"
                  }
                ],
                "source": "REFERENCES_TAG"
              },
              {
                "original_tag": "v0.16.5",
                "range": [
                  {
                    "fixed": "af70d76a52d9d8d833b3db65a17a24ce1d51175f"
                  }
                ],
                "source": "REFERENCES_TAG"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "af70d76a52d9d8d833b3db65a17a24ce1d51175f"
            },
            {
              "introduced": "e306213da1bc7d2cd43400ddabd1eac1570aed38"
            },
            {
              "fixed": "adaf80b18c8db4f122b92bec62dc4504d4b54285"
            },
            {
              "fixed": "f92014fedd235b09223fcb20dfacc89e9da01e23"
            },
            {
              "fixed": "ab45cf7b74e0623c9761ed9c8e7de771ba4164d0"
            }
          ],
          "repo": "https://github.com/meetecho/janus-gateway",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-22"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/145xxx/CVE-2026-145160.json"
  },
  "details": "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.",
  "id": "CVE-2026-145160",
  "modified": "2026-12-04T19:45:21.341691879Z",
  "published": "2026-12-04T16:31:04.774Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/145xxx/CVE-2026-145160.json"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/meetecho/janus-gateway"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/meetecho/janus-gateway/blob/v1.4.4/src/record.c#L208-L230"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/meetecho/janus-gateway/blob/v1.4.4/src/utils.c#L587-L617"
    },
    {
      "type": "FIX",
      "url": "https://github.com/meetecho/janus-gateway/commit/ab45cf7b74e0623c9761ed9c8e7de771ba4164d0"
    },
    {
      "type": "FIX",
      "url": "https://github.com/meetecho/janus-gateway/commit/f92014fedd235b09223fcb20dfacc89e9da01e23"
    },
    {
      "type": "FIX",
      "url": "https://github.com/meetecho/janus-gateway/pull/3739"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/meetecho/janus-gateway/releases/tag/v0.16.5"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/meetecho/janus-gateway/releases/tag/v1.4.5"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-145160"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/janus-webrtc-server-before-0.16.5-and-1.4.5-protected-folders-bypass-on-musl"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "Janus WebRTC Server before 0.16.5 and 1.4.5 protected_folders Bypass on musl"
}