Skip to content
OpenAdvisories
High · 7.1 Public exploit CVE-2024-22198 EUVD-2024-0301GHSA-8r25-68wm-jw35GO-2024-2462

Authenticated (user role) arbitrary command execution by modifying `start_cmd` setting (GHSL-2023-268)

Published Jan 11, 2024 · Updated Aug 1, 2024 · Assigned by GitHub_M

Description

Nginx-UI is a web interface to manage Nginx configurations. It is vulnerable to arbitrary command execution by abusing the configuration settings. The `Home > Preference` page exposes a list of system settings such as `Run Mode`, `Jwt Secret`, `Node Secret` and `Terminal Start Command`. While the UI doesn't allow users to modify the `Terminal Start Command` setting, 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 vulnerability has been patched in version 2.0.0.beta.9.

Affected products

VendorProductAffectedFixed
0xJacky nginx-ui < 2.0.0.beta.9 —

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/0xJacky/Nginx-UI < 1.9.10-0.20231219184941-827e76c46e63 1.9.10-0.20231219184941-827e76c46e63 GHSA-8r25-68wm-jw35

References