Back to CVE records
Medium 4.9Published Aug 26, 2026

CVE-2026-81028ZLMediaKit downloadFile Root-Directory Confinement Bypass via Prefix Collision

Updated under an hour ago ()

Does this affect you?

It affects ZLMediaKit. Add what you run to find out whether that includes you.

No exploitation reported and no EPSS estimate yet.

ZLMediaKit confines the downloadFile API to a configured set of root directories with a prefix comparison that does not account for directory boundaries. The configuration loader in server/WebApi.cpp builds each root with File::absolutePath("", item, true); because the relative-path argument is empty that helper returns the value without a trailing separator. The handler then accepts a requested path when start_with(file_path, root) holds, so a sibling directory whose name merely begins with the configured root string satisfies the test and is served. The only other guard rejects a path containing two dots, which this requires none of. The equivalent confinement check for the ordinary static file server in src/Http/HttpFileManager.cpp computes its root with a non-empty second argument, which appends the separator before comparing, and so is not affected. The endpoint requires the configured API secret, so this grants no privilege beyond what that secret already implies, but it reads files outside the directory the operator confined it to, and the reference container runs the server as root.

CVSS
4.9 MEDIUM (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N
Weakness (CWE)
CWE-22
Known exploited
Not in CISA's KEV catalog
EPSS (exploitation in the next 30 days)
Not loaded for this CVE
Assigned by
VulnCheck
NVD analysis
Deferred
Record last updated
Aug 28, 2026
First seen by InfoSec Signals
Oct 9, 2026

Affected products

Affected products
ZLMediaKit ZLMediaKit
zlmediakit:zlmediakit (from the name)
fa347d7dbe48dfdce525d3a0fdb92e576970ef9f
CNA record

References

  • product
  • issue-tracking
  • technical-description
  • third-party-advisory

The CVE record is authoritative. Products marked “from the name” were identified from the CNA's free-text names, not a CPE, and are matched less certainly. This product uses the NVD API but is not endorsed or certified by the NVD.

Your cookie choices
We use essential cookies to run this site, and, only with your consent, an advertising cookie from Google to measure whether our ads lead to sign-ups and subscriptions. See our for details.