### [CVE-2024-49366](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-49366) ![](https://img.shields.io/static/v1?label=Product&message=nginx-ui&color=blue) ![](https://img.shields.io/static/v1?label=Version&message=%3C%202.0.0-beta.36%20&color=brightgreen) ![](https://img.shields.io/static/v1?label=Version&message=0%20&color=brightgreen) ![](https://img.shields.io/static/v1?label=Vulnerability&message=CWE-22%3A%20Improper%20Limitation%20of%20a%20Pathname%20to%20a%20Restricted%20Directory%20('Path%20Traversal')&color=brightgreen) ### Description Nginx UI is a web user interface for the Nginx web server. Nginx UI v2.0.0-beta.35 and earlier gets the value from the json field without verification, and can construct a value value in the form of `../../`. Arbitrary files can be written to the server, which may result in loss of permissions. Version 2.0.0-beta.26 fixes the issue. ### POC #### Reference - https://github.com/0xJacky/nginx-ui/security/advisories/GHSA-prv4-rx44-f7jr #### Github - https://github.com/fkie-cad/nvd-json-data-feeds