CVE-2023-41044: Partial path traversal vulnerability in Support Bundle feature of Graylog
A partial path traversal vulnerability exists in Graylog's Support Bundle feature. The vulnerability is caused by incorrect user input validation in an HTTP API resource.
Thanks to weiweiwei9811 for reporting this vulnerability and providing detailed information.
Impact
Graylog's Support Bundle feature allows an attacker with valid Admin role credentials to download or delete files in sibling directories of the support bundle directory.
The default datadir in operating system packages (DEB, RPM) is set to /var/lib/graylog-server. The data directory for the Support Bundle feature is always <datadir>/support-bundle.
Due to the partial path traversal vulnerability, an attacker with valid Admin role credentials can read or delete files in directories that start with a /var/lib/graylog-server/support-bundle directory name.
The vulnerability would allow the download or deletion of files in the following example directories.
- /var/lib/graylog-server/support-bundle-test - /var/lib/graylog-server/support-bundlesdirectory
For the Graylog and Graylog Enterprise Docker images, the datadir is set to /usr/share/graylog/data by default.
Patches
The vulnerability is fixed in Graylog version 5.1.3 and later.
Workarounds
Block all HTTP requests to the following HTTP API endpoints by using a reverse proxy server in front of Graylog.
- GET /api/system/debug/support/bundle/download/{filename} - DELETE /api/system/debug/support/bundle/{filename}
Other sources
Graylog is a free and open log management platform. A partial path traversal vulnerability exists in Graylog's Support Bundle feature. The vulnerability is caused by incorrect user input validation in an HTTP API resource. Graylog's Support Bundle feature allows an attacker with valid Admin role credentials to download or delete files in sibling directories of the support bundle directory. The default datadir in operating system packages (DEB, RPM) is set to /var/lib/graylog-server. The data directory for the Support Bundle feature is always <datadir>/support-bundle. Due to the partial path traversal vulnerability, an attacker with valid Admin role credentials can read or delete files in directories that start with a /var/lib/graylog-server/support-bundle directory name. The vulnerability would allow the download or deletion of files in the following example directories: /var/lib/graylog-server/support-bundle-test and /var/lib/graylog-server/support-bundlesdirectory. For the Graylog Docker images, the datadir is set to /usr/share/graylog/data by default. This vulnerability is fixed in Graylog version 5.1.3 and later. Users are advised to upgrade. Users unable to upgrade should block all HTTP requests to the following HTTP API endpoints by using a reverse proxy server in front of Graylog. GET /api/system/debug/support/bundle/download/{filename} and DELETE /api/system/debug/support/bundle/{filename}.
— MITRE
Affected Software
Remediation
Event History
Frequently Asked Questions
What is CVE-2023-41044?
CVE-2023-41044 is a partial path traversal vulnerability in Graylog's Support Bundle feature.
How can I exploit CVE-2023-41044?
Exploiting CVE-2023-41044 requires incorrect user input validation in the HTTP API resource of Graylog's Support Bundle feature.
What is the severity of CVE-2023-41044?
The severity of CVE-2023-41044 is low, with a severity value of 3.3.
Which versions of Graylog are affected by CVE-2023-41044?
Graylog versions between 5.1.0 and 5.1.3 are affected by CVE-2023-41044.
How do I fix CVE-2023-41044?
To fix CVE-2023-41044, update Graylog to version 5.1.3.