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.

Severity (CVSS 3.1)9.8Critical
Exploit odds (30 days)0.7%top 46.5% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
Gogithub.com/0xJacky/Nginx-UI1.9.10-0.20240128060047-8581bdd3c6f4GHSA-xvq9-4vpv-227m
Gogithub.com/0xJacky/Nginx-UIno fix listedGO-2024-2481

Affected products (as reported)

VendorProductVersions
0xJacky nginx-ui < 2.0.0.beta.12

Weakness: CWE-22 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

References