CVE-2024-22197

Public Exploit
Authenticated (user role) remote command execution by modifying `nginx` settings (GHSL-2023-269)

Description

Nginx-ui is online statistics for Server Indicators​​ Monitor CPU usage, memory usage, load average, and disk usage in real-time. The `Home > Preference` page exposes a small list of nginx settings such as `Nginx Access Log Path` and `Nginx Error Log Path`. However, the API also exposes `test_config_cmd`, `reload_cmd` and `restart_cmd`. While the UI doesn't allow users to modify any of these settings, 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 issue has been patched in version 2.0.0.beta.9.

Category

7.7
CVSS
Severity: High
CVSS 3.1 •
EPSS 5.66% Top 15%
Vendor Advisory github.com
Affected: 0xJacky nginx-ui
Published at:
Updated at:

References

Frequently Asked Questions

What is the severity of CVE-2024-22197?
CVE-2024-22197 has been scored as a high severity vulnerability.
How to fix CVE-2024-22197?
To fix CVE-2024-22197, make sure you are using an up-to-date version of the affected component(s) by checking the vendor release notes. As for now, there are no other specific guidelines available.
Is CVE-2024-22197 being actively exploited in the wild?
It is possible that CVE-2024-22197 is being exploited or will be exploited in a near future based on public information. According to its EPSS score, there is a ~6% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2024-22197?
CVE-2024-22197 affects 0xJacky nginx-ui.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.