Skip to main content
← All vulnerabilities
CVE-2024-22198GO-2024-2462GHSA-8R25-68WM-JW35

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

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 2.0.0.beta.9, 1.9.10-0.20231219184941-827e76c46e63
1 proof of concept on GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: total

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: total

  3. Record last updated

Affected versions

  • 0xJacky nginx-ui

    fixed in 2.0.0.beta.9

  • github.com/0xJacky/Nginx-UIGo

    fixed in 1.9.10-0.20231219184941-827e76c46e63

References 8

GitHub · 0xJacky/nginx-ui

GitHub · xiw1ll/CVE-2024-22198_Checker