CVE-2024-23827CWE-22

Nginx-UI arbitrary file write through the Import Certificate feature

Critical · published January 29, 2024

CVSS v3.1
9.8
EPSS
1%
Percentile
52.8
In the wild
Unconfirmed
What it is

🔥 A sneaky flaw in Nginx-UI lets attackers overwrite critical configuration files with little more than a faulty certificate! Think of it like a restaurant that allows guests to sneak in their own secret recipe and rewrite the entire menu without any checks — one wrong order can spoil the whole dining experience. 🍽️ An attacker could gain remote code execution by rewriting the app.ini file, essentially taking control of your entire Nginx setup. This could lead to disastrous consequences, including unauthorized access and potential data breaches that could cripple your services. It's a scenario where one tiny slip could mean total chaos!

Put simply

Think of it like a restaurant that allows guests to sneak in their own secret recipe and rewrite the entire menu without any checks — one wrong order can spoil the whole dining experience. 🍽️ This vulnerability in Nginx-UI arises from the Import Certificate feature, which fails to validate user input properly. This oversight permits arbitrary file writes, allowing attackers to inject malicious configurations into the system.

What to do

An attacker could gain remote code execution by rewriting the app.ini file, essentially taking control of your entire Nginx setup. This could lead to disastrous consequences, including unauthorized access and potential data breaches that could cripple your services. It's a scenario where one tiny slip could mean total chaos! Immediately update to version 2.0.0.beta.12 to close this loophole. Additionally, review your Nginx-UI settings to ensure that no unauthorized paths can be accessed. Implement strict validation checks for any user inputs to safeguard against future exploits. You've got this! By following these steps, you'll bolster your defenses and keep your Nginx-UI secure. 🛡️

The record
Technical detail
CVSS v3.1
9.8 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00705 · 52.8th percentile
Weakness
CWE-22 · Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Published
2024-01-29T16:07Z
EPSS history
Timeline
  • 29 JAN 16:07Z
    Nginx-UI arbitrary file write through the Import Certificate feature
    cvelistv5