What’s Vulnerable › Vulnerabilities
CVE-2024-40641: Unsigned code template execution through workflows in projectdiscovery/nuclei
- Severity: high (CVSS 7.4 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.3% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2024-07-17 · updated 2026-06-17
- Weakness: CWE-78
Description
Nuclei is a fast and customizable vulnerability scanner based on simple YAML based DSL. In affected versions it a way to execute code template without -code option and signature has been discovered. Some web applications inherit from Nuclei and allow users to edit and execute workflow files. In this case, users can execute arbitrary commands. (Although, as far as I know, most web applications use -t to execute). This issue has been addressed in version 3.3.0. Users are advised to upgrade. There are no known workarounds for this vulnerability.
Affected products
- projectdiscovery nuclei: from 3.0.0 before 3.3.0 — fixed in 3.3.0
How to fix
Upgrade to a fixed version: projectdiscovery nuclei 3.3.0. Check the vendor advisory for mitigations.
References
- https://github.com/projectdiscovery/nuclei/security/advisories/GHSA-c3q9-c27p-cw9h
- https://github.com/projectdiscovery/nuclei/security/advisories/GHSA-c3q9-c27p-cw9h
Get alerted when CVE-2024-40641 or the next vulnerability affects your stack