CVE-2021-43800 Asset directory traversal with some storage modules on Windows

High 7.5 Published Updated

Attackers can read arbitrary files on Windows hosts via directory traversal in Wiki.js when specific storage modules are enabled.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2021-43800?

CVE-2021-43800 is a high-severity path traversal vulnerability in Requarks wiki, published on 6 Dec 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

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).

Weakness: CWE-22

Which versions are affected by CVE-2021-43800?

It affects 1 product.

Products include Requarks Wiki.js.

How do I fix CVE-2021-43800?

No fix has been published for CVE-2021-43800 yet. Limit exposure of the affected software until one is available.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2021-43800 being exploited?

There is no known exploitation of CVE-2021-43800 in the wild and no public exploit code.

Sources

Also known as GHSA-r363-73gj-6j25.

Is CVE-2021-43800 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free