CVE-2026-40519: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in NginxProxyManager nginx-proxy-manager
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.
AI Analysis
Technical Summary
CVE-2026-40519 is an authenticated remote code execution vulnerability in Nginx Proxy Manager's setupCertbotPlugins() function located in backend/setup.js. The vulnerability arises because the user-controlled dns_provider_credentials value is directly interpolated into a shell command executed via child_process.exec() without proper sanitization or escaping. This allows attackers with certificates:manage permission to inject and execute arbitrary OS commands when the backend restarts. The affected versions include 2.9.14 through 2.15.1, with a fix committed in a5db5ed. The CVSS 4.0 score is 7.7, indicating a high severity vulnerability.
Potential Impact
An attacker with authenticated access and certificates:manage permission can execute arbitrary OS commands on the backend server. This can lead to full system compromise, data theft, or disruption of service. The vulnerability requires authentication but does not require user interaction beyond permission to manage certificates.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Since the fix is referenced by a commit (a5db5ed) but no official patch or release is confirmed, users should monitor the vendor's advisories for an official update. Until patched, restrict certificates:manage permissions to trusted users only and avoid backend restarts with untrusted dns_provider_credentials values.
CVE-2026-40519: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in NginxProxyManager nginx-proxy-manager
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.
CVSS v4.0
Score 7.7high
Affected software
pkg:github/nginxproxymanager/nginx-proxy-managerRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-40519 is an authenticated remote code execution vulnerability in Nginx Proxy Manager's setupCertbotPlugins() function located in backend/setup.js. The vulnerability arises because the user-controlled dns_provider_credentials value is directly interpolated into a shell command executed via child_process.exec() without proper sanitization or escaping. This allows attackers with certificates:manage permission to inject and execute arbitrary OS commands when the backend restarts. The affected versions include 2.9.14 through 2.15.1, with a fix committed in a5db5ed. The CVSS 4.0 score is 7.7, indicating a high severity vulnerability.
Potential Impact
An attacker with authenticated access and certificates:manage permission can execute arbitrary OS commands on the backend server. This can lead to full system compromise, data theft, or disruption of service. The vulnerability requires authentication but does not require user interaction beyond permission to manage certificates.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Since the fix is referenced by a commit (a5db5ed) but no official patch or release is confirmed, users should monitor the vendor's advisories for an official update. Until patched, restrict certificates:manage permissions to trusted users only and avoid backend restarts with untrusted dns_provider_credentials values.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-04-13T20:29:02.809Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a271c94e29bf47b5081f5ab
Added to database: 06/08/2026, 19:48:36 UTC
Last enriched: 07/15/2026, 10:28:53 UTC
Last updated: 07/31/2026, 19:22:58 UTC
Views: 134
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.