CVE-2024-49368
Nginx UI vulnerability analysis and mitigation

Overview

CVE-2024-49368 affects Nginx UI, a web user interface for the Nginx web server. The vulnerability was discovered and disclosed on October 21, 2024, affecting all versions prior to 2.0.0-beta.36. The issue exists in the logrotate configuration functionality where the application fails to properly validate input before passing it to exec.Command (NVD, ASEC).

Technical details

The vulnerability stems from improper input validation in the logrotate configuration functionality. When Nginx UI configures logrotate, it retrieves the logrotate.cmd command from settings and passes it directly to exec.Command without any validation, as identified in internal/logrotate/logrotate.go and api/settings/settings.go. The vulnerability has received a CVSS v3.1 base score of 9.8 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H, and a CVSS v4.0 score of 8.9 (HIGH) (GitHub Advisory, NVD).

Impact

The vulnerability allows for arbitrary command execution on the affected system. An attacker can exploit this vulnerability by manipulating the logrotate settings through the API, potentially leading to remote command execution on the server hosting Nginx UI (GitHub Advisory).

Mitigation and workarounds

Users are strongly advised to upgrade to Nginx UI version 2.0.0-beta.36 or later, which includes a fix for this vulnerability. The update was released on October 9, 2024, and addresses the input validation issue in the logrotate configuration functionality (GitHub Release, ASEC).

Additional resources


SourceThis report was generated using AI

Related Nginx UI vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2024-3738CRITICAL9.8
  • Nginx UINginx UI
  • cpe:2.3:a:nginxui:nginx_ui
NoNoApr 13, 2024
CVE-2024-49368HIGH8.9
  • Nginx UINginx UI
  • cpe:2.3:a:nginxui:nginx_ui
NoYesOct 21, 2024
CVE-2024-23828HIGH8.8
  • Nginx UINginx UI
  • github.com/0xjacky/nginx-ui
NoYesJan 29, 2024
CVE-2024-49366HIGH7.7
  • Nginx UINginx UI
  • cpe:2.3:a:nginxui:nginx_ui
NoYesOct 21, 2024
CVE-2024-49367MEDIUM5.5
  • Nginx UINginx UI
  • cpe:2.3:a:nginxui:nginx_ui
NoYesOct 21, 2024

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management