Skip to content

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

HighCVSS 8.8 EPSS 1.5%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: no · technical impact: total
Technology
Nginx

Description

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.

Upgrade path

3 packages: 2 fixed.

PackageAffectedFixed inStatus
0xJacky nginx-ui(Go) < 1.9.10-0.20231219184941-827e76c46e63 1.9.10-0.20231219184941-827e76c46e63 Fixed
nginxui nginx ui < 2.0.0; = 2.0.0-beta1; = 2.0.0-beta2; = 2.0.0-beta3 +10 more 2.0.0 Fixed
0xJacky nginx-ui = < 2.0.0.beta.9 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
0xJacky nginx-ui(Go) < 1.9.10-0.20231219184941-827e76c46e63 1.9.10-0.20231219184941-827e76c46e63
0xJacky nginx-ui = < 2.0.0.beta.9 No fix listed
nginxui nginx ui < 2.0.0 2.0.0
nginxui nginx ui = 2.0.0-beta1 No fix listed
nginxui nginx ui = 2.0.0-beta2 No fix listed
nginxui nginx ui = 2.0.0-beta3 No fix listed
nginxui nginx ui = 2.0.0-beta4 No fix listed
nginxui nginx ui = 2.0.0-beta4_patch No fix listed
nginxui nginx ui = 2.0.0-beta5 No fix listed
nginxui nginx ui = 2.0.0-beta5_patch No fix listed
nginxui nginx ui = 2.0.0-beta6 No fix listed
nginxui nginx ui = 2.0.0-beta6_patch No fix listed
nginxui nginx ui = 2.0.0-beta6_patch2 No fix listed
nginxui nginx ui = 2.0.0-beta7 No fix listed
nginxui nginx ui = 2.0.0-beta8 No fix listed
nginxui nginx ui = 2.0.0-beta8_patch No fix listed

References