critical CVSS 9.8

CVE-2026-42238·Docker vulnerability

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.

Severity
critical
Software
Docker
Fixed in
2.3.8
Published
2026-05-04

Affected versions

Until: 2.3.8

Fixed in: 2.3.8

How to fix this CVE

Update Docker to version 2.3.8 or later to patch the unauthenticated backup restore endpoint that could allow remote code execution. This vulnerability affects nginx-ui deployments running on Docker, particularly those exposed on networks without proper authentication controls. Immediately upgrade your Docker installation and verify that the nginx-ui component is at version 2.3.8 or newer.

sudo dnf update docker-ce

Defensia detects this vulnerability

What an exploitation attempt looks like

Sample log line indicative of exploitation attempts:

POST /api/restore HTTP/1.1.*Content-Type: multipart/form-data.*backup\.tar\.gz|POST /api/restore.*401|403|POST /api/restore.*200.*within first 600 seconds of container startup

WAF mitigation (if patching is not yet possible)

Add this rule to your WAF to block exploitation attempts while you schedule the patch.

Block or require authentication for POST requests to /api/restore endpoint; implement a WAF rule requiring valid API tokens or mutual TLS certificates for backup restore operations; rate-limit POST requests to /api/restore to maximum 1 request per minute per source IP

How to check if you are affected

  1. Run 'docker --version' and 'docker ps' to list running containers and identify any nginx-ui instances
  2. Inside a nginx-ui container, check the version with 'curl http://localhost:PORT/api/version' or inspect logs with 'docker logs <container-id>'
  3. Search Docker host logs for POST requests to /api/restore endpoint: 'grep -r "POST /api/restore" /var/lib/docker/containers/*/*/logs'
  4. Verify the fix by confirming nginx-ui version is 2.3.8+ and check the app.ini configuration file has not been modified by unauthorized parties: 'docker exec <container-id> cat /path/to/app.ini'

Indicators of compromise

  • POST /api/restore endpoint without authentication headers
  • Backup files (*.tar.gz) uploaded to nginx-ui during application startup window
  • Modified app.ini configuration with TestConfigCmd containing shell metacharacters or suspicious binaries

FAQ

What is CVE-2026-42238?

This vulnerability allows an unauthenticated attacker to upload a malicious backup file to nginx-ui during the first 10 minutes after startup, enabling arbitrary OS command execution by injecting commands into the configuration file that runs as the container user (often root).

Is CVE-2026-42238 being actively exploited?

No, this CVE is not currently listed on the CISA Known Exploited Vulnerabilities catalog, and no public exploits have been released.

What versions of Docker are affected by CVE-2026-42238?

All Docker versions prior to 2.3.8 that include nginx-ui are affected; the vulnerability specifically targets nginx-ui running on Docker deployments.

How do I check if my server is vulnerable to CVE-2026-42238?

Run 'docker ps' to list containers, then 'docker exec <container-id> nginx-ui --version' or check the application logs for version information; if the version is below 2.3.8, the system is vulnerable.

Does Defensia detect CVE-2026-42238?

Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Docker is installed on a monitored server, CVE-2026-42238 will appear in your dashboard with remediation steps.

Related Docker CVEs

CVE-2026-57572CVSS 10Crawl4AI is an open-source LLM-friendly web crawler and scraper. Prior to 0.9.0, the Docker API server accepted request-supplied browser_config.extra_args, which flowed into Chromium's launch arguments. An attacker could inject Chromium switches that replace a child-process launch command together with --no-zygote, causing Chromium to fork or exec an attacker-controlled command as the container's runtime user. The Docker API is unauthenticated by default, so a single request yields arbitrary command execution. This issue is fixed in version 0.9.0.
CVE-2026-26216CVSS 10Crawl4AI versions prior to 0.8.0 contain a remote code execution vulnerability in the Docker API deployment. The /crawl endpoint accepts a hooks parameter containing Python code that is executed using exec(). The __import__ builtin was included in the allowed builtins, allowing unauthenticated remote attackers to import arbitrary modules and execute system commands. Successful exploitation allows full server compromise, including arbitrary command execution, file read and write access, sensitive data exfiltration, and lateral movement within internal networks.
CVE-2026-44329CVSS 10free5GC is an open-source implementation of the 5G core network. Prior to 4.2.2, free5GC's SMF mounts the UPI management route group without OAuth2/bearer-token authorization middleware. A network attacker who can reach SMF on the SBI can hit UPI endpoints with no Authorization header at all, and the requests reach the SMF business handlers. In the running Docker lab this was directly demonstrated for read (GET /upi/v1/upNodesLinks), write (POST /upi/v1/upNodesLinks with attacker-controlled UP-node and link payload), and delete (DELETE /upi/v1/upNodesLinks/{nodeID}) operations. This vulnerability is fixed in 4.2.2.
CVE-2026-53576CVSS 10Kestra is an open-source, event-driven orchestration platform. Prior to 1.0.45 and 1.3.21, the authentication filter for the REST API (@Filter("/api/v1/**")) treats any request whose path ends in /configs as the public instance-config endpoint and forwards it without a credential check. kestra addresses its resources by URL path segments that the caller chooses (/api/v1/{tenant}/flows/{namespace}, /api/v1/{tenant}/executions/{namespace}/{id}, /api/v1/{tenant}/namespaces/{namespace}/kv/{key}). An anonymous caller picks the literal configs as the final segment, and the request bypasses Basic-Auth entirely. Because the bypass reaches the flow-create and execution-trigger routes, an unauthenticated caller creates a flow containing a Shell or Process task and runs it. The task executes as root inside the kestra container. The official docker-compose.yml mounts /var/run/docker.sock, so root in the container reaches the host Docker daemon. This vulnerability is fixed in 1.0.45 and 1.3.21.
CVE-2026-33587CVSS 10Lack of user input sanitisation in Open Notebook v1.8.3 allows the application user to execute Python code (and subsequently OS commands) on the docker container via Server-Side Template Injection (SSTI) for user-created transformations.

References

Track CVEs across your fleet automatically

Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2026-42238. Free for 1 server.

Get started free