CVE-2021-43800: Asset directory traversal with some storage modules on Windows
Wiki.js is a wiki app built on Node.js. Prior to version 2.5.254, directory traversal outside of Wiki.js context is possible when a storage module with local asset cache fetching is enabled on a Windows host. A malicious user can potentially read any file on the file system by crafting a special URL that allows for directory traversal. This is only possible on a Wiki.js server running on Windows, when a storage module implementing local asset cache (e.g Local File System or Git) is enabled and that no web application firewall solution (e.g. cloudflare) strips potentially malicious URLs. Commit number 414033de9dff66a327e3f3243234852f468a9d85 fixes this vulnerability by sanitizing the path before it is passed on to the storage module. The sanitization step removes any windows directory traversal sequences from the path. As a workaround, disable any storage module with local asset caching capabilities (Local File System, Git).
Affected Software
Remediation
Event History
Frequently Asked Questions
What is CVE-2021-43800?
CVE-2021-43800 is a vulnerability in Wiki.js, a wiki app built on Node.js, versions prior to 2.5.254, which allows directory traversal outside of the Wiki.js context on Windows hosts.
What is the severity of CVE-2021-43800?
The severity of CVE-2021-43800 is high with a severity value of 7.5.
How can a malicious user exploit CVE-2021-43800?
A malicious user can exploit CVE-2021-43800 by crafting a special URL to perform a directory traversal attack, potentially reading any file on the file system.
How can I fix CVE-2021-43800?
To fix CVE-2021-43800, upgrade to version 2.5.254 or later of Wiki.js.
Where can I find more information about CVE-2021-43800?
You can find more information about CVE-2021-43800 at the following references: [GitHub Commit](https://github.com/Requarks/wiki/commit/414033de9dff66a327e3f3243234852f468a9d85), [GitHub Release](https://github.com/Requarks/wiki/releases/tag/2.5.254), [GitHub Security Advisory](https://github.com/Requarks/wiki/security/advisories/GHSA-r363-73gj-6j25).