8.8

CVE-2024-22197

Exploit

Authenticated (user role) remote command execution by modifying `nginx` settings (GHSL-2023-269)

Nginx-ui is online statistics for Server Indicators​​ Monitor CPU usage, memory usage, load average, and disk usage in real-time. The `Home > Preference` page exposes a small list of nginx settings such as `Nginx Access Log Path` and `Nginx Error Log Path`. However, the API also exposes `test_config_cmd`, `reload_cmd` and `restart_cmd`. While the UI doesn't allow users to modify any of these settings, it is possible to do so by sending a request to the API. This issue may lead to authenticated Remote Code Execution, Privilege Escalation, and Information Disclosure. This issue has been patched in version 2.0.0.beta.9.
Daten sind bereitgestellt durch National Vulnerability Database (NVD)
Nginxui ≫ Nginx Ui Version < 2.0.0
Nginxui ≫ Nginx Ui Version 2.0.0 Update beta1
Nginxui ≫ Nginx Ui Version 2.0.0 Update beta2
Nginxui ≫ Nginx Ui Version 2.0.0 Update beta3
Nginxui ≫ Nginx Ui Version 2.0.0 Update beta4
Nginxui ≫ Nginx Ui Version 2.0.0 Update beta4_patch
Nginxui ≫ Nginx Ui Version 2.0.0 Update beta5
Nginxui ≫ Nginx Ui Version 2.0.0 Update beta5_patch
Nginxui ≫ Nginx Ui Version 2.0.0 Update beta6
Nginxui ≫ Nginx Ui Version 2.0.0 Update beta6_patch
Nginxui ≫ Nginx Ui Version 2.0.0 Update beta6_patch2
Nginxui ≫ Nginx Ui Version 2.0.0 Update beta7
Nginxui ≫ Nginx Ui Version 2.0.0 Update beta8
Nginxui ≫ Nginx Ui Version 2.0.0 Update beta8_patch
Zu dieser CVE wurde keine Warnung gefunden.
EPSS Metriken
Typ Quelle Score Percentile
EPSS FIRST.org 1.54% 0.716
CVSS Metriken
Quelle Base Score Exploit Score Impact Score Vector String
NIST 8.8 2.8 5.9
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
security-advisories@github.com 7.7 2.2 5.5
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:L
CWE-77 Improper Neutralization of Special Elements used in a Command ('Command Injection')

The product constructs all or part of a command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended command when it is sent to a downstream component.

https://github.com/0xJacky/nginx-ui/commit/827e76c46e63c52114a62a899f61313039c754e3
Patch
https://github.com/0xJacky/nginx-ui/security/advisories/GHSA-pxmr-q2x3-9x9m
Vendor Advisory
Exploit