CVE-2026-40519

Nginx Proxy Manager Authenticated RCE via setupCertbotPlugins()

Published Jun 8, 2026 CVSS 4.0 · 7.7 High EPSS < 1% KEV · Not listed
Description
Nginx Proxy Manager versions 2.9.14 through 2.15.1, fixed in commit a5db5ed, contain an authenticated remote code execution vulnerability via OS command injection in the setupCertbotPlugins() function in backend/setup.js, allowing attackers with certificates:manage permission to execute arbitrary commands by storing a malicious payload in the dns_provider_credentials field. The user-controlled dns_provider_credentials value is interpolated directly into a shell command executed via child_process.exec() without sanitization or escaping, causing the injected command to execute upon backend restart.

Analysis

AI-generated

Technical impact

The vulnerability is an OS command injection in the setupCertbotPlugins() function of Nginx Proxy Manager's backend/setup.js, allowing an authenticated user with certificates:manage permission to store malicious content in the dns_provider_credentials field that is interpolated directly into a shell command executed via child_process.exec() without sanitization or escaping. This flaw enables the attacker to run arbitrary commands when the backend restarts, effectively granting remote code execution on the host hosting the application; the impact is the complete compromise of confidentiality, integrity, and availability of the server.

Affected Systems

The flaw affects versions 2.9.14 through 2.15.1 of Nginx Proxy Manager. The vendor issued a fix in commit a5db5ed156355e3088e7d1ceb0533d4bae922def; any release after that addresses the problem.

Risk and Exploitability

The CVSS base score is 7.7, classifying the issue as high severity. The EPSS score is not available, and the vulnerability is not listed in CISA KEV, indicating no publicly known active exploitation at this time. However, exploitation requires an authenticated session with certificates:manage rights, which the attacker can obtain, for example, by compromising legitimate credentials or by exploiting other authentication weaknesses. Once authenticated, the attacker can inject malicious shell commands that execute during backend restart, leading to remote code execution. Therefore, the risk is significant, especially for environments that expose the API to untrusted users.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update Nginx Proxy Manager to a version that includes the fix (any release newer than 2.15.1 or apply the patch at commit a5db5ed).
  • Restrict the certificates:manage permission to trusted administrators only, enforcing least privilege and reviewing user accounts.
  • If an immediate update is not possible, isolate the affected server from the network and monitor for suspicious certificate changes; consider disabling or removing Certbot plugin functionality until a fix is applied.

Generated by OpenCVE AI on June 8, 2026 at 20:21 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
CPEs cpe:2.3:a:nginxproxymanager:nginx_proxy_manager:*:*:*:*:*:*:*:*
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Nginxproxymanager
Nginxproxymanager nginx Proxy Manager
Vendors & Products Nginxproxymanager
Nginxproxymanager nginx Proxy Manager
Type Values Removed Values Added
Description Nginx Proxy Manager versions 2.9.14 through 2.15.1, fixed in commit a5db5ed, contain an authenticated remote code execution vulnerability via OS command injection in the setupCertbotPlugins() function in backend/setup.js, allowing attackers with certificates:manage permission to execute arbitrary commands by storing a malicious payload in the dns_provider_credentials field. The user-controlled dns_provider_credentials value is interpolated directly into a shell command executed via child_process.exec() without sanitization or escaping, causing the injected command to execute upon backend restart.
Title Nginx Proxy Manager Authenticated RCE via setupCertbotPlugins()
Weaknesses CWE-78
References
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 7.7, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-78

    Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 8, 2026, 2:02 PM
Reserved
Apr 13, 2026, 8:29 PM
Status
Deferred
Published
Jun 8, 2026, 8:17 PM
Modified
Jul 23, 2026, 8:10 AM