CVE-2021-32746 Possible path traversal by use of the `doc` module
Attackers with access to the enabled doc module can read arbitrary files on the server via path traversal in Icinga Web 2.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2021-32746?
CVE-2021-32746 is a medium-severity path traversal vulnerability in icingaweb2, published on 12 Jul 2021. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
Icinga Web 2 is an open source monitoring web interface, framework and command-line interface. Between versions 2.3.0 and 2.8.2, the `doc` module of Icinga Web 2 allows to view documentation directly in the UI. It must be enabled manually by an administrator and users need explicit access permission to use it. Then, by visiting a certain route, it is possible to gain access to arbitrary files readable by the web-server user. The issue has been fixed in the 2.9.0, 2.8.3, and 2.7.5 releases. As a workaround, an administrator may disable the `doc` module or revoke permission to use it from all users.
Weakness: CWE-22
Which versions are affected by CVE-2021-32746?
It affects 1 product.
Products include Icinga Icinga.
How do I fix CVE-2021-32746?
Upgrade to a fixed version.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2021-32746 being exploited?
There is no known exploitation of CVE-2021-32746 in the wild and no public exploit code.
Other vulnerabilities in icingaweb2
- CVE-2025-48057 Icinga 2 certificate renewal might incorrectly renew an invalid certificate
- CVE-2020-29663 Security feature bypass in n/a
- CVE-2024-24820 Icinga Director configuration is susceptible to Cross-Site Request Forgery
- CVE-2018-6535 Information disclosure in n/a
- CVE-2020-14004 Path traversal in n/a
Sources
Also known as DEBIAN-CVE-2021-32746, GHSA-cmgc-h4cx-3v43, UBUNTU-CVE-2021-32746.