Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessConfigure Nuclei with -env-vars flag for multi-step template
-
DeliveryOperator scans attacker-controlled target
-
ExploitAttacker crafts malicious response containing DSL injection payload
-
ExecutionNuclei parses and interpolates environment variables from response
-
PersistDSL expression evaluator executes injected code
-
ImpactArbitrary command execution on scanner host
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Code injection prevention, sandbox exec
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires three specific, non-default conditions to be simultaneously true: (1) The Nuclei operator must explicitly enable the -env-vars flag (not the default configuration), (2) the target being scanned must be untrusted or attacker-controlled such that the attacker can inject malicious response data, and (3) multi-step templates must be used (single-step templates are not affected). Additionally, the attacker must craft injection payloads matching Nuclei's specific DSL expression syntax to break out of the variable context. The CVSS vector AV:N/AC:H reflects that while network access is possible, the attack complexity is high due to these prerequisites. Environments running Nuclei with default settings (without -env-vars), scanning only trusted infrastructure, or using only single-step templates are NOT vulnerable regardless of version. |
| Impact | CVSS 4.0 with AV:N/AC:H indicates network-accessible but high attack complexity, providing initial risk guidance. However, CVSS alone significantly overstates real-world risk due to multiple limiting factors explicitly confirmed in the description: (1) The -env-vars flag must be explicitly enabled (non-default configuration), (2) multi-step templates must be used, (3) the attacker must control untrusted target responses, and (4) AC:H suggests the injection requires precise conditions or multiple attempts. The KEV and EPSS data are not provided, but the GitHub advisory and patch availability indicate vendor awareness and remediation. The actual attack surface is substantially narrower than a CVSS 4.0 score suggests - this affects security teams running Nuclei in automated scanning pipelines against untrusted or compromised targets with -env-vars enabled, not all Nuclei installations. Organizations using Nuclei without -env-vars or only against trusted infrastructure face minimal risk. No active exploitation is confirmed at time of analysis. |
| Exploit ScenarioDerived | An attacker operates a web server hosting a malicious application that Nuclei is configured to scan as an untrusted target using multi-step templates with -env-vars enabled. When Nuclei executes the template, the attacker crafts HTTP responses containing DSL payload injection sequences (e.g., |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 20, 2026
DSL expression injection in ProjectDiscovery Nuclei before 3.8.0 allows remote code execution when using the -env-vars flag with multi-step templates against untrusted targets. An attacker can inject malicious expressions into environment variables that are evaluated as Nuclei DSL code, achieving arbitrary code execution with the privileges of the Nuclei process. This vulnerability requires non-default configuration (explicit -env-vars usage) and high attack complexity, limiting real-world impact despite the RCE tag.
RemediationAI
Upgrade ProjectDiscovery Nuclei to version 3.8.0 or later, which includes fixes for DSL expression injection applied via commits d2217320162d5782ca7cb95bef9dda17063818f3 and 6c803c74d193f85f8a6d9803ce493fd302cad0eb referenced in GitHub pull requests #7221 and #7321. The vendor-released patch address the root cause by implementing proper input validation and expression sanitization. As an interim mitigation for organizations unable to immediately upgrade, restrict use of the -env-vars flag to trusted scanning contexts and avoid running multi-step templates against untrusted or potentially compromised targets. If -env-vars must be used, implement input validation at the template level to reject or sanitize suspicious variable values. Additionally, run Nuclei with minimal required privileges and isolate the scanning process in a restricted environment (container, VM, or dedicated low-privilege account) to limit impact of code execution. Monitor Nuclei process execution for unexpected system calls or network activity. These mitigations reduce blast radius but do not eliminate risk - upgrading to 3.8.0+ is the primary fix.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 4 packages in go, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Nuclei is a template-based vulnerability scanning framework written in Go that uses a custom domain-specific language (DSL) for expressing multi-step exploitation logic. The vulnerability resides in the DSL expression parser (CWE-94: Improper Control of Generation of Code), which evaluates environment variables passed via the -env-vars flag without sufficient sanitization. When these variables are interpolated into multi-step template expressions, an attacker controlling the target's responses can craft payloads that break out of the intended variable context and inject arbitrary DSL expressions. The affected CPE range is cpe:2.3:a:projectdiscovery:nuclei:*:*:*:*:*:*:*:* (all versions before 3.8.0). The root cause is unsafe string interpolation of untrusted data (target responses) combined with dynamic code evaluation, a classic code injection pattern.
Know when Nuclei gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Primary rating from NVD · only source for this CVE.
CVSS VectorNVD
Lifecycle Timeline
5DescriptionNVD
ProjectDiscovery Nuclei 3 before 3.8.0 allows DSL expression injection. This affects use of -env-vars for multi-step templates against untrusted targets (not the default configuration).
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
Nuclei is a vulnerability scanner powered by YAML based templates. Rated high severity (CVSS 7.8), this vulnerability is
Nuclei is a vulnerability scanner. Rated high severity (CVSS 7.5), this vulnerability is remotely exploitable, no authen
projectdiscovery/nuclei is a fast and customisable vulnerability scanner based on simple YAML based DSL. Rated high seve
Local attackers with write access to Nuclei's on-disk template storage can bypass template signature verification and ca
Local file disclosure in ProjectDiscovery Nuclei 3.0.0 through 3.9.x lets an untrusted, unsigned workflow template read
Sensitive environment-variable disclosure in ProjectDiscovery Nuclei (versions 3.0.0 through anything before 3.10.0) all
Local file disclosure in ProjectDiscovery Nuclei 3.0.0 through 3.9.x lets an attacker-controlled MySQL-compatible endpoi
Arbitrary shell command execution is possible in ProjectDiscovery Nuclei versions 3.0.0 through 3.9.x when DAST mode (-d
EUVD-2026-23795
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB