CVE-2024-27920 Unsigned code template execution through workflows in projectdiscovery/nuclei

High 7.4 Published Updated

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.

PackageAffectedFixed in
github.com/projectdiscovery/nuclei/v3 GoFrom 3.0.03.2.0
github.com/projectdiscovery/nuclei/v3 GoFrom 3.0.03.2.0
github.com/projectdiscovery/nuclei/v3 GoFrom 3.0.03.2.0
github.com/projectdiscovery/nuclei GoAll versionsNone
github.com/projectdiscovery/nuclei/v2 GoAll versionsNone

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.

Sources

Also known as GHSA-w5wx-6g2r-r78q, GO-2024-2645.

Is CVE-2024-27920 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free