Command injection in nginx-ui - CVE-2024-49368

 

Command injection in nginx-ui - CVE-2024-49368

Published: October 21, 2024 / Updated: April 23, 2026


Vulnerability identifier: #VU127231
CSH Severity: Medium
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Green
CVE-ID: CVE-2024-49368
CWE-ID: CWE-77
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: Nginx UI
Affected software:
nginx-ui

Detailed vulnerability description

The vulnerability allows a remote user to execute arbitrary commands.

The vulnerability exists due to command injection in logrotate configuration handling in api/settings/settings.go and internal/logrotate/logrotate.go when processing user-supplied settings. A remote user can send a specially crafted settings update request to execute arbitrary commands.

The issue can be triggered through the /api/settings endpoint by controlling the logrotate.cmd value.


How to mitigate CVE-2024-49368

Install security update from vendor's website.

Sources