CVE-2024-27920 Unsigned code template execution through workflows in projectdiscovery/nuclei
Attackers can execute malicious code on user systems via unsigned custom workflows in the Nuclei vulnerability scanner.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2024-27920?
CVE-2024-27920 is a high-severity code injection vulnerability in projectdiscovery nuclei, published on 15 Mar 2024. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.
Official description
projectdiscovery/nuclei is a fast and customisable vulnerability scanner based on simple YAML based DSL. A significant security oversight was identified in Nuclei v3, involving the execution of unsigned code templates through workflows. This vulnerability specifically affects users utilizing custom workflows, potentially allowing the execution of malicious code on the user's system. This advisory outlines the impacted users, provides details on the security patch, and suggests mitigation strategies. The vulnerability is addressed in Nuclei v3.2.0. Users are strongly recommended to update to this version to mitigate the security risk. Users should refrain from using custom workflows if unable to upgrade immediately. Only trusted, verified workflows should be executed.
Weakness: CWE-78
Which versions are affected by CVE-2024-27920?
5 open source packages ship an affected version, including github.com/projectdiscovery/nuclei/v3, github.com/projectdiscovery/nuclei and github.com/projectdiscovery/nuclei/v2. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
github.com/projectdiscovery/nuclei/v3 Go | From 3.0.0 | 3.2.0 |
github.com/projectdiscovery/nuclei/v3 Go | From 3.0.0 | 3.2.0 |
github.com/projectdiscovery/nuclei/v3 Go | From 3.0.0 | 3.2.0 |
github.com/projectdiscovery/nuclei Go | All versions | None |
github.com/projectdiscovery/nuclei/v2 Go | All versions | None |
Products include Projectdiscovery Nuclei.
How do I fix CVE-2024-27920?
Upgrade github.com/projectdiscovery/nuclei/v3 to 3.2.0 or later.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2024-27920 being exploited?
There is no known exploitation of CVE-2024-27920 in the wild and no public exploit code.
Other vulnerabilities in projectdiscovery nuclei
- CVE-2023-37896 Nuclei Path Traversal vulnerability
- CVE-2024-43405 Nuclei Template Signature Verification Bypass
- CVE-2026-41646 Nuclei: Local File Read via require() Module Loader Bypass
- CVE-2026-41645 Nuclei: Environment variable disclosure via Response-Derived DSL Expressions
- CVE-2026-41282 Code injection in Nuclei
Sources
Also known as GHSA-w5wx-6g2r-r78q, GO-2024-2645.