CVE-2024-22198
CVE-2024-22198 is a high-severity vulnerability in Nginxui Nginx Ui with a CVSS 3.x base score of 7.1. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-77.
Key facts
- Severity: High (CVSS 3.x base score 7.1)
- EPSS exploit prediction: 4% (90th percentile)
- Actively exploited: Not listed in CISA KEV
- EU (EUVD) id: EUVD-2024-0301
- Weakness: CWE-77
- Affected product: Nginxui Nginx Ui
- Published:
- Last modified:
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.
Frequently asked questions
- What is CVE-2024-22198?
- 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.
- How severe is CVE-2024-22198?
- CVE-2024-22198 has a CVSS 3.x base score of 7.1, rated high severity. It is exploitable over network with high attack complexity, requires low privileges and no user interaction. Impact on confidentiality is high, integrity high, and availability low.
- Is CVE-2024-22198 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 4% (90th percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2024-22198?
- CVE-2024-22198 primarily affects Nginxui Nginx Ui. In total, 14 product configurations (CPEs) are listed as vulnerable; see the affected-products list for the exact versions.
- How do I fix CVE-2024-22198?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround. Given its high severity, prioritise patching exposed systems.
- Does CVE-2024-22198 have an EU (EUVD) identifier?
- Yes. CVE-2024-22198 is tracked in the ENISA EU Vulnerability Database (EUVD) as EUVD-2024-0301.
- When was CVE-2024-22198 published?
- CVE-2024-22198 was published on 2024-01-11 and last updated on 2026-06-17.
References
- https://github.com/0xJacky/nginx-ui/blob/04bf8ec487f06ab17a9fb7f34a28766e5f53885e/api/system/settings.go#L18
- https://github.com/0xJacky/nginx-ui/blob/04bf8ec487f06ab17a9fb7f34a28766e5f53885e/api/terminal/pty.go#L11
- https://github.com/0xJacky/nginx-ui/blob/04bf8ec487f06ab17a9fb7f34a28766e5f53885e/internal/pty/pipeline.go#L29
- https://github.com/0xJacky/nginx-ui/blob/04bf8ec487f06ab17a9fb7f34a28766e5f53885e/router/middleware.go#L45
- https://github.com/0xJacky/nginx-ui/blob/04bf8ec487f06ab17a9fb7f34a28766e5f53885e/settings/server.go#L12
- https://github.com/0xJacky/nginx-ui/commit/827e76c46e63c52114a62a899f61313039c754e3
- https://github.com/0xJacky/nginx-ui/security/advisories/GHSA-8r25-68wm-jw35
Affected products (14)
- cpe:2.3:a:nginxui:nginx_ui:*:*:*:*:*:*:*:*
- cpe:2.3:a:nginxui:nginx_ui:2.0.0:beta1:*:*:*:*:*:*
- cpe:2.3:a:nginxui:nginx_ui:2.0.0:beta2:*:*:*:*:*:*
- cpe:2.3:a:nginxui:nginx_ui:2.0.0:beta3:*:*:*:*:*:*
- cpe:2.3:a:nginxui:nginx_ui:2.0.0:beta4:*:*:*:*:*:*
- cpe:2.3:a:nginxui:nginx_ui:2.0.0:beta4_patch:*:*:*:*:*:*
- cpe:2.3:a:nginxui:nginx_ui:2.0.0:beta5:*:*:*:*:*:*
- cpe:2.3:a:nginxui:nginx_ui:2.0.0:beta5_patch:*:*:*:*:*:*
- cpe:2.3:a:nginxui:nginx_ui:2.0.0:beta6:*:*:*:*:*:*
- cpe:2.3:a:nginxui:nginx_ui:2.0.0:beta6_patch:*:*:*:*:*:*
- cpe:2.3:a:nginxui:nginx_ui:2.0.0:beta6_patch2:*:*:*:*:*:*
- cpe:2.3:a:nginxui:nginx_ui:2.0.0:beta7:*:*:*:*:*:*
- cpe:2.3:a:nginxui:nginx_ui:2.0.0:beta8:*:*:*:*:*:*
- cpe:2.3:a:nginxui:nginx_ui:2.0.0:beta8_patch:*:*:*:*:*:*
More vulnerabilities in Nginxui Nginx Ui
- CVE-2026-42238 — Critical (CVSS 9.8): Nginx UI is a web user interface for the Nginx web server. Prior to version 2.3.8, nginx-ui exposes a backup restore…
- CVE-2026-33032 — Critical (CVSS 9.8): Nginx UI is a web user interface for the Nginx web server. In versions 2.3.5 and prior, the nginx-ui MCP (Model Context…
- CVE-2026-27944 — Critical (CVSS 9.8): Nginx UI is a web user interface for the Nginx web server. Prior to version 2.3.3, the /api/backup endpoint is…
- CVE-2024-49368 — Critical (CVSS 9.8): Nginx UI is a web user interface for the Nginx web server. Prior to version 2.0.0-beta.36, when Nginx UI configures…
- CVE-2024-23827 — Critical (CVSS 9.8): Nginx-UI is a web interface to manage Nginx configurations. The Import Certificate feature allows arbitrary write into…
- CVE-2026-33026 — Critical (CVSS 9.1): Nginx UI is a web user interface for the Nginx web server. Prior to version 2.3.4, the nginx-ui backup restore…
All CVEs affecting Nginxui Nginx Ui →
Other CWE-77 (Command Injection) vulnerabilities
- CVE-2026-23652 — Critical (CVSS 10.0): Improper neutralization of special elements used in a command ('command injection') in Microsoft Power Pages allows an…
- CVE-2025-59818 — Critical (CVSS 10.0): This vulnerability allows authenticated attackers to execute arbitrary commands on the underlying system using the file…
- CVE-2025-64093 — Critical (CVSS 10.0): Remote Code Execution vulnerability that allows unauthenticated attackers to inject arbitrary commands into the…
- CVE-2025-64090 — Critical (CVSS 10.0): This vulnerability allows authenticated attackers to execute commands via the hostname of the device.
- CVE-2025-61492 — Critical (CVSS 10.0): A command injection vulnerability in the execute_command function of terminal-controller-mcp 0.1.7 allows attackers to…
- CVE-2025-10035 — Critical (CVSS 10.0): A deserialization vulnerability in the License Servlet of Fortra's GoAnywhere MFT allows an actor with a validly forged…