# CVE-2024-40641: Unsigned code template execution through workflows in projectdiscovery/nuclei

- Severity: High 7.4 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.31%, higher than 25% of CVEs (2026-12-01)
- Published: 2024-07-17T17:34:10.792Z
- Modified: 2026-06-17T07:46:13.460Z
- Also known as: GHSA-c3q9-c27p-cw9h, GO-2024-2989
- Weaknesses: CWE-78
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- projectdiscovery nuclei: >= 3.0.0, < 3.3.0; from 3.0.0 before 3.3.0
- github.com/projectdiscovery/nuclei/v3 (Go): before 3.3.0
- github.com/projectdiscovery/nuclei (Go): all versions
- github.com/projectdiscovery/nuclei/v2 (Go): all versions

## Every score

- GitHub_M: CVSS:3.1 7.4 High `CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:N`
- GitHub: CVSS:3.1 7.4 High `CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:N`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:N/SC:H/SI:H/SA:N`

## References

- <https://github.com/projectdiscovery/nuclei/security/advisories/GHSA-c3q9-c27p-cw9h> (advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-40641> (advisory)
- <https://github.com/projectdiscovery/nuclei> (package)

## Sources

- CVE List: [CVE-2024-40641](https://www.cve.org/CVERecord?id=CVE-2024-40641), CVE Terms of Use, modified 2024-08-13
- GitHub Advisory Database: [GHSA-c3q9-c27p-cw9h](https://github.com/advisories/GHSA-c3q9-c27p-cw9h), CC-BY-4.0, modified 2024-08-20
- Go Vulnerability Database: [GO-2024-2989](https://pkg.go.dev/vuln/GO-2024-2989), CC-BY-4.0, modified 2026-03-03
- NVD: [CVE-2024-40641](https://nvd.nist.gov/vuln/detail/CVE-2024-40641), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-40641 · Whole record: https://cve.day/CVE-2024-40641.json · Rebuilt by cve.day 2026-11-25T22:58:43.029Z
