# CVE-2026-42238: Unauthenticated Remote Code Execution via Backup Restore in nginx-ui

- Severity: Critical 9.0 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:H/SI:H/SA: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.99%, higher than 63% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-05-04T20:13:22.196Z
- Modified: 2026-10-25T23:10:00.167Z
- Also known as: GHSA-4pvg-prr3-9cxr, GO-2026-5129
- Weaknesses: CWE-94
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

Nginx UI is a web user interface for the Nginx web server. Prior to version 2.3.8, nginx-ui exposes a backup restore endpoint (POST /api/restore) that is completely unauthenticated during the first 10 minutes after process startup on any fresh installation. An unauthenticated remote attacker can upload a crafted backup archive that overwrites the application's configuration file (app.ini) and SQLite database. Because the attacker controls the restored app.ini, they can inject an arbitrary OS command into the TestConfigCmd setting. After the application automatically restarts to apply the restored config, a single follow-up request triggers that command as the user running nginx-ui — typically root in Docker deployments. This issue has been patched in version 2.3.8.

(As written by CVE List.)

## Affected

- 0xJacky nginx-ui: < 2.3.8
- github.com/0xJacky/nginx-ui (Go): before 2.3.8; all versions
- nginxui nginx_ui: before 2.3.8

## Every score

- GitHub_M: CVSS:4.0 9.0 Critical `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:H/SI:H/SA: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:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H`
- 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-4pvg-prr3-9cxr> (exploit, advisory, vendor-advisory, web)
- <https://github.com/0xJacky/nginx-ui/releases/tag/v2.3.8> (release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-42238> (advisory)
- <https://github.com/0xJacky/nginx-ui> (package)

## Sources

- CVE List: [CVE-2026-42238](https://www.cve.org/CVERecord?id=CVE-2026-42238), CVE Terms of Use, modified 2026-05-05
- GitHub Advisory Database: [GHSA-4pvg-prr3-9cxr](https://github.com/advisories/GHSA-4pvg-prr3-9cxr), CC-BY-4.0, modified 2026-06-25
- Go Vulnerability Database: [GO-2026-5129](https://pkg.go.dev/vuln/GO-2026-5129), CC-BY-4.0, modified 2026-06-25
- NVD: [CVE-2026-42238](https://nvd.nist.gov/vuln/detail/CVE-2026-42238), Public domain, modified 2026-10-25

---

Page: https://cve.day/CVE-2026-42238 · Whole record: https://cve.day/CVE-2026-42238.json · Rebuilt by cve.day 2026-11-25T22:59:20.565Z
