Vulnerability · Published Jul 17, 2024 · Assigned by GitHub_M
CVE-2024-40641Unsigned code template execution through workflows in projectdiscovery/nuclei
High 7.4
In plain English
A high-severity OS command injection in nuclei from projectdiscovery. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 24% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Go | github.com/projectdiscovery/nuclei | no fix listed | GO-2024-2989 |
| Go | github.com/projectdiscovery/nuclei/v2 | no fix listed | GO-2024-2989 |
| Go | github.com/projectdiscovery/nuclei/v3 | 3.3.0 | GHSA-c3q9-c27p-cw9h |
| Go | github.com/projectdiscovery/nuclei/v3 | 3.3.0 | GO-2024-2989 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| projectdiscovery | nuclei | >= 3.0.0, < 3.3.0 |
Weakness: CWE-78 · Vector: CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:N