CVE-2026-42238
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.
Weakness
- CWE-94: Improper Control of Generation of Code
CISA SSVC decision points
| Exploitation | poc |
|---|---|
| Automatable | no |
| Technical impact | total |
| Scored | 2026-05-05 |
Timeline
- 2026-05-04Published by the CNA20:13 UTC
- 2026-05-05CISA SSVC decision recorded1 day after publication
- 2026-05-06GitHub advisory published (GHSA-4pvg-prr3-9cxr)2 days after publication
Exploit and advisory records
GitHub advisory GHSA-4pvg-prr3-9cxr, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| Go github.com/0xJacky/nginx-ui | before 2.3.8 | 2.3.8 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| nginxui nginx_ui | before 2.3.8fixed in 2.3.8 | 2.3.8 |
References
- https://github.com/0xJacky/nginx-ui/security/advisories/GHSA-4pvg-prr3-9cxr
- https://github.com/0xJacky/nginx-ui/releases/tag/v2.3.8
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2026-42238'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2026-42238'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2026-42238'curl 'https://api.contrastcyber.com/cve_products/CVE-2026-42238'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).