๐Ÿ” CVE Alert

CVE-2026-81028

MEDIUM 4.9

ZLMediaKit downloadFile Root-Directory Confinement Bypass via Prefix Collision

CVSS Score
4.9
EPSS Score
0.0%
EPSS Percentile
0th

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.

CWE CWE-22
Vendor zlmediakit
Product zlmediakit
Published Aug 26, 2026
Stay Ahead of the Next One

Get instant alerts for zlmediakit zlmediakit

Be the first to know when new medium vulnerabilities affecting zlmediakit zlmediakit are published โ€” delivered to Slack, Telegram or Discord.

Get Free Alerts โ†’ Free ยท No credit card ยท 60 sec setup

CVSS v3 Breakdown

CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N
Attack Vector
Network
Attack Complexity
Low
Privileges Required
High
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None

Affected Versions

ZLMediaKit / ZLMediaKit
fa347d7dbe48dfdce525d3a0fdb92e576970ef9f

References

NVD โ†— CVE.org โ†— EPSS Data โ†—
github.com: https://github.com/ZLMediaKit/ZLMediaKit github.com: https://github.com/ZLMediaKit/ZLMediaKit/issues/4817 github.com: https://github.com/ZLMediaKit/ZLMediaKit/blob/fa347d7dbe48dfdce525d3a0fdb92e576970ef9f/server/WebApi.cpp vulncheck.com: https://www.vulncheck.com/advisories/zlmediakit-downloadfile-root-directory-confinement-bypass-via-prefix-collision

Credits

George Chen