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.

Severity (CVSS 3.1)7.4High
Exploit odds (30 days)0.3%top 75.9% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
Gogithub.com/projectdiscovery/nucleino fix listedGO-2024-2989
Gogithub.com/projectdiscovery/nuclei/v2no fix listedGO-2024-2989
Gogithub.com/projectdiscovery/nuclei/v33.3.0GHSA-c3q9-c27p-cw9h
Gogithub.com/projectdiscovery/nuclei/v33.3.0GO-2024-2989

Affected products (as reported)

VendorProductVersions
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

References