{"id":"CVE-2024-40641","published":"2024-07-17T17:34:10Z","modified":"2024-08-13T20:55:48Z","title":"Unsigned code template execution through workflows in projectdiscovery/nuclei","vendor":"projectdiscovery","product":"nuclei","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.4,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00311,"percentile":0.24602,"provenance":"source"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"}],"references":[{"url":"https://github.com/projectdiscovery/nuclei/security/advisories/GHSA-c3q9-c27p-cw9h","tags":["x_refsource_CONFIRM"]}],"priority":{"score":10.1,"factors":[{"name":"EPSS percentile","points":4.92},{"name":"CVSS severity","points":5.18}]},"vendorSlug":"projectdiscovery","affectedVersions":[{"vendor":"projectdiscovery","product":"nuclei","versions":[">= 3.0.0, < 3.3.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2024-07-30T17:18:43.495871Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/projectdiscovery/nuclei/v3","vulnerableRanges":["<3.3.0"],"patched":["3.3.0"],"from":["GHSA-c3q9-c27p-cw9h","GO-2024-2989"],"provenance":"source"},{"ecosystem":"Go","package":"github.com/projectdiscovery/nuclei","vulnerableRanges":["all versions"],"patched":[],"from":["GO-2024-2989"],"provenance":"source"},{"ecosystem":"Go","package":"github.com/projectdiscovery/nuclei/v2","vulnerableRanges":["all versions"],"patched":[],"from":["GO-2024-2989"],"provenance":"source"}],"summary":{"text":"The flaw is an unsigned code template execution issue in the workflow handling of projectdiscovery's nuclei vulnerability scanner, where code templates can run without the -code option or a valid signature. An attacker with local access and no privileges can cause arbitrary command execution, but only where a web application built on nuclei lets users edit and run workflow files and a user interacts with that application.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:01:58Z"},"euvd":{"id":"EUVD-2024-2317","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2024-27920","published":"2024-03-15","fixed":"3.2.0","kev":false,"link":{"from":"CVE-2024-27920","to":"CVE-2024-40641","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/projectdiscovery/nuclei/v3","fromFixed":"3.2.0","toFixed":"3.3.0","daysApart":124}]}},{"cve":"CVE-2024-40641","published":"2024-07-17","fixed":"3.3.0","kev":false},{"cve":"CVE-2024-43405","published":"2024-09-04","fixed":"3.3.2","kev":false,"link":{"from":"CVE-2024-40641","to":"CVE-2024-43405","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/projectdiscovery/nuclei/v3","fromFixed":"3.3.0","toFixed":"3.3.2","daysApart":49}]}},{"cve":"CVE-2026-41282","published":"2026-04-20","fixed":"3.8.0","kev":false},{"cve":"CVE-2026-41645","published":"2026-05-08","fixed":"3.8.0","kev":false}],"package":"Go:github.com/projectdiscovery/nuclei/v3"}}