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

 

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

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


Vulnerability identifier: #VU127231
Vulnerability risk: Medium
CVSSv4.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
Vulnerable software:
nginx-ui
Software vendor:
Nginx UI

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.


Remediation

Install security update from vendor's website.

External links