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

- Severity: Critical 9.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.70%, higher than 54% of CVEs (2026-12-01)
- Published: 2024-01-29T16:07:13.953Z
- Modified: 2026-07-06T19:30:10.741Z
- Also known as: GHSA-xvq9-4vpv-227m, GO-2024-2481
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- 0xJacky nginx-ui: < 2.0.0.beta.12
- github.com/0xJacky/Nginx-UI (Go): before 1.9.10-0.20240128060047-8581bdd3c6f4; all versions
- nginxui nginx_ui: 1.2.0; 1.2.1; 1.2.2; 1.3.0; 1.3.1; 1.3.2; 1.3.3; 1.4.0; 1.4.1; 1.4.2; 1.5.0; 1.5.1; and 17 more

## Every score

- GitHub_M: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:4.0 Critical `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 9.8 Critical `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> (advisory, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-23827> (advisory)
- <https://github.com/0xJacky/nginx-ui/commit/8581bdd3c6f49ab345b773517ba9173fa7fc6199> (web)
- <https://github.com/0xJacky/nginx-ui> (package)
- <https://github.com/0xJacky/nginx-ui/blob/f20d97a9fdc2a83809498b35b6abc0239ec7fdda/api/certificate/certificate.go#L72> (web)
- <https://github.com/0xJacky/nginx-ui/blob/f20d97a9fdc2a83809498b35b6abc0239ec7fdda/internal/cert/write_file.go#L15> (web)

## Sources

- CVE List: [CVE-2024-23827](https://www.cve.org/CVERecord?id=CVE-2024-23827), CVE Terms of Use, modified 2024-11-12
- GitHub Advisory Database: [GHSA-xvq9-4vpv-227m](https://github.com/advisories/GHSA-xvq9-4vpv-227m), CC-BY-4.0, modified 2026-07-06
- Go Vulnerability Database: [GO-2024-2481](https://pkg.go.dev/vuln/GO-2024-2481), CC-BY-4.0, modified 2024-07-09
- NVD: [CVE-2024-23827](https://nvd.nist.gov/vuln/detail/CVE-2024-23827), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-23827 · Whole record: https://cve.day/CVE-2024-23827.json · Rebuilt by cve.day 2026-11-25T22:58:36.418Z
