CVE-2024-40641 json
Unsigned code template execution through workflows in projectdiscovery/nuclei
published 2024-07-17 2 y ago modified 2026-06-17 4 mo ago also EUVD-2024-2317 , GHSA-c3q9-c27p-cw9h , GO-2024-2989
- cvss
- 7.4
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.3%
- EPSS 0.3% chance of exploitation in 30 days, percentile 24%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- go github.com/projectdiscovery/nuclei/v3 3.3.0
- projectdiscovery nuclei 3.3.0
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- total
- Assessed
- 2 y ago
Exploit prediction
0.31% chance of exploitation in the next 30 days, higher than 24% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.4 | CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:N |
| GitHub | 3.1 | 7.4 | CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| go | github.com/projectdiscovery/nuclei/v3 | <3.3.0 |
3.3.0 |
| go | github.com/projectdiscovery/nuclei | all versions |
no fix listed |
| go | github.com/projectdiscovery/nuclei/v2 | all versions |
no fix listed |
Affected products
- projectdiscovery nuclei
Classification
- Weakness
-
- CWE-78 Improper Neutralization of Special Elements used in an OS Command
References
Sources
- CVE List CVE-2024-40641
- GitHub Advisory GHSA-c3q9-c27p-cw9h
- NVD CVE-2024-40641
- OSV GO-2024-2989
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.