CVE-2021-43800
Asset directory traversal with some storage modules on Windows
Check your servers for CVE-2021-43800
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2021-43800 affects wiki, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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).
Severity (CVSS)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- Attack vector
- network: an attacker can reach the vulnerable part over the network, often from the internet
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- none: the attacker does not need an account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity none, availability none: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 1.80%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 79.0% of all scored CVEs. Scores of 1 Dec 2026.
Weakness
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory
Affected products
As the CNA lists them.
Is my server affected?
Find the installed version of wiki and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i wiki
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2021-43800 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2021-43800RHEL, Rocky, Alma, Fedora
rpm -q wiki
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2021-43800Alpine
apk list --installed | grep -i wikiWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2021-43800
trivy image --scanners vuln IMAGE | grep CVE-2021-43800
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Advisories
Other references
- https://github.com/Requarks/wiki/commit/414033de9dff66a327e3f3243234852f468a9d85 github.com
- https://github.com/Requarks/wiki/releases/tag/2.5.254 github.com
Source: the record CVE-2021-43800 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse