VYPR
High severityNVD Advisory· Published Mar 15, 2024· Updated Aug 2, 2024

Unsigned code template execution through workflows in projectdiscovery/nuclei

CVE-2024-27920

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.

Affected packages

Versions sourced from the GitHub Security Advisory.

PackageAffected versionsPatched versions
github.com/projectdiscovery/nuclei/v3Go
>= 3.0.0, < 3.2.03.2.0

Affected products

1

Patches

1
e86f38299765

validate code template in workflows (#4822)

https://github.com/projectdiscovery/nucleiTarun KoyalwarMar 1, 2024via ghsa
1 file changed · +10 0
  • pkg/templates/workflows.go+10 0 modified
    @@ -80,6 +80,16 @@ func parseWorkflowTemplate(workflow *workflows.WorkflowTemplate, preprocessor Pr
     			gologger.Warning().Msgf("Could not parse workflow template %s: no executer found\n", path)
     			continue
     		}
    +		if len(template.RequestsCode) > 0 {
    +			if !options.Options.EnableCodeTemplates {
    +				gologger.Warning().Msgf("`-code` flag not found, skipping code template from workflow: %v\n", path)
    +				continue
    +			} else if !template.Verified {
    +				// unverfied code templates are not allowed in workflows
    +				gologger.Warning().Msgf("skipping unverified code template from workflow: %v\n", path)
    +				continue
    +			}
    +		}
     		workflowTemplates = append(workflowTemplates, template)
     	}
     
    

Vulnerability mechanics

Generated by null/stub on May 9, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.

References

8

News mentions

0

No linked articles in our index yet.