Vulnerability · Published Jan 29, 2024 · Assigned by GitHub_M
CVE-2024-23827Nginx-UI arbitrary file write through the Import Certificate feature
Critical 9.8
In plain English
A critical-severity path traversal in nginx-ui from 0xJacky. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.7% (higher than 54% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
Nginx-UI is a web interface to manage Nginx configurations. The Import Certificate feature allows arbitrary write into the system. The feature does not check if the provided user input is a certification/key and allows to write into arbitrary paths in the system. It's possible to leverage the vulnerability into a remote code execution overwriting the config file app.ini. Version 2.0.0.beta.12 fixed the issue.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Go | github.com/0xJacky/Nginx-UI | 1.9.10-0.20240128060047-8581bdd3c6f4 | GHSA-xvq9-4vpv-227m |
| Go | github.com/0xJacky/Nginx-UI | no fix listed | GO-2024-2481 |
Affected products (as reported)
Weakness: CWE-22 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
References
- https://github.com/0xJacky/nginx-ui/security/advisories/GHSA-xvq9-4vpv-227m x_refsource_CONFIRM