{"cve":"CVE-2026-42238","nvd":{"published":"2026-05-04T21:16:32.707","modified":"2026-10-25T23:10:00.167","status":"Analyzed","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.","cvss_v4":{"vector":"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","score":9.0},"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8},"cwes":["CWE-94"],"references":["https://github.com/0xJacky/nginx-ui/releases/tag/v2.3.8","https://github.com/0xJacky/nginx-ui/security/advisories/GHSA-4pvg-prr3-9cxr","https://github.com/0xJacky/nginx-ui/security/advisories/GHSA-4pvg-prr3-9cxr"],"products":["nginxui:nginx_ui"],"source":"nvd","synced_at":"2026-10-25T23:44:33.281319194+00:00"},"epss":{"cve":"CVE-2026-42238","score":0.00971,"percentile":0.61678,"date":"2026-10-25"},"kev":null,"osv":[{"id":"GHSA-4pvg-prr3-9cxr","url":"https://osv.dev/vulnerability/GHSA-4pvg-prr3-9cxr","summary":"Nginx-UI is Vulnerable to Unauthenticated Remote Code Execution via Backup Restore","modified":"2026-06-25T18:56:08.268429874Z","packages":[{"ecosystem":"Go","name":"github.com/0xJacky/nginx-ui","purl":"pkg:golang/github.com/0xJacky/nginx-ui","ranges":["<2.3.8"],"fixed":["2.3.8"]}]},{"id":"GO-2026-5129","url":"https://osv.dev/vulnerability/GO-2026-5129","summary":"Nginx-UI is Vulnerable to Unauthenticated Remote Code Execution via Backup Restore in github.com/0xJacky/nginx-ui","modified":"2026-06-25T18:45:23.747462852Z","packages":[{"ecosystem":"Go","name":"github.com/0xJacky/nginx-ui","purl":"pkg:golang/github.com/0xJacky/nginx-ui","ranges":["all versions"],"fixed":[]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}