CVE-2024-22198
published high CVSS 3.1 · 7.1Authenticated (user role) arbitrary command execution by modifying `start_cmd` setting (GHSL-2023-268)
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| 0xJacky | — | nginx-ui< 2.0.0.beta.9 | Affected | Not stated | GitHub_M |
| nginxui | — | nginx_ui0 to < 2.0.0.beta.8 · Other versions: unknown | Affected | Not stated | CISA-ADP |
| nginxui | — | nginx_ui2.0.0 · Other versions: unknown | Unaffected | Not stated | CISA-ADP |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.1 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:L
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| 0xJacky | nginx-ui | < 2.0.0.beta.9 (affected) | GitHub_M · cna |
| nginxui | nginx_ui | 0 to < 2.0.0.beta.8 (affected · custom)Default: unknown | CISA-ADP · adp |
| nginxui | nginx_ui | 2.0.0 (unaffected)Default: unknown | CISA-ADP · adp |
Weaknesses
1- CWE-77 CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')
References
7- 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
Provider assertions
3GitHub_M · cna
Authenticated (user role) arbitrary command execution by modifying `start_cmd` setting (GHSL-2023-268)
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 3457e9c24672f3189706a731c1d645cab0f827e4d46b161fcfc75d7fe132e216
- Ingested
- 23 Sep 2026, 08:19:14 UTC
- Source record
- Official CVE record