CVE-2024-49368
PoC moderateUnauthenticated arbitrary command execution in Nginx UI logrotate configuration
Nginx UI, a third-party web management interface for the Nginx web server, fails to validate the input supplied when configuring logrotate, passing it directly to exec.Command and enabling arbitrary command execution (CWE-20, improper input validation). An attacker who can reach an affected Nginx UI instance over the network can trigger the flaw via the logrotate configuration feature, with no privileges or user interaction required per the CVSS 4.0 scoring (AV:N/AC:L/PR:N/UI:N). Successful exploitation grants full command execution on the host running Nginx UI, with high impact on confidentiality, integrity, and availability (CVSS 4.0 score 8.9, High). All Nginx UI deployments running versions prior to 2.0.0-beta.36 are affected; Nginx itself is not affected. Exploitation is documented in a public GitHub security advisory (GHSA-66m6-27r9-77vm) with a proof of concept available; the flaw is not yet in CISA KEV, and EPSS assigns a 27.7% probability of exploitation within 30 days (98th percentile).
What to do: Upgrade Nginx UI to version 2.0.0-beta.36 or later. Until upgraded, restrict access to the Nginx UI interface (bind to localhost or place it behind a VPN/firewall or authenticated reverse proxy) and treat logrotate configuration entries as untrusted. Review logs and existing logrotate settings for signs of injected or unexpected commands indicating prior exploitation.
| nginxui nginx ui | All versions prior to 2.0.0-beta.36 (fixed in 2.0.0-beta.36) |
Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.
Nginx UI is a web user interface for the Nginx web server. Prior to version 2.0.0-beta.36, when Nginx UI configures logrotate, it does not verify the input and directly passes it to exec.Command, causing arbitrary command execution. Version 2.0.0-beta.36 fixes this issue.
- Vendors
- nginxui
- Products
- nginx ui
- Weakness
- CWE-20
- Vector
- CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
In the news0 stories
No ingested article mentions this CVE yet.