CVE-2024-22197 Authenticated (user role) remote command execution by modifying `nginx` settings (GHSL-2023-269)
- 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.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| 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
| Product | Affected versions | Fixed 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
- https://github.com/0xJacky/nginx-ui/security/advisories/GHSA-pxmr-q2x3-9x9m exploit vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/0xJacky/nginx-ui/commit/827e76c46e63c52114a62a899f61313039c754e3 patch
- github.com product
- github.com
- github.com
- github.com
- pkg.go.dev
- github.com vendor-advisory