7.4high
Unsigned code template execution through workflows in projectdiscovery/nuclei
- Severity
- 7.4high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.41% (higher than 37% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-w5wx-6g2r-r78qGO-2024-2645
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
| Product or package | Versions | Reported by |
|---|---|---|
| projectdiscovery nuclei | >= 3.0.0, < 3.2.0, from 3.0.0 before 3.2.0 | CVE List, NVD |
| github.com/projectdiscovery/nuclei/v3 (Go) | from 3.0.0 before 3.2.0 | GitHub Advisory Database, Go Vulnerability Database |
| github.com/projectdiscovery/nuclei (Go) | all versions | Go Vulnerability Database |
| github.com/projectdiscovery/nuclei/v2 (Go) | all versions | Go Vulnerability Database |
All scores
| GitHub_M | 7.4high CVSS:3.1 | CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:N |
| GitHub | 7.4high CVSS:3.1 | CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:N |
| GitHub | high CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:N/SC:H/SI:H/SA:N |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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.
GitHub Advisory Database
Overview
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.
Affected Users
- CLI Users: Those executing custom workflows from untrusted sources. This includes workflows authored by third parties or obtained from unverified repositories.
- SDK Users: Developers integrating Nuclei into their platforms, particularly if they permit the execution of custom workflows by end-users.
Security Patch
The vulnerability is addressed in Nuclei v3.2.0. Users are strongly recommended to update to this version to mitigate the security risk.
Mitigation
- Immediate Upgrade: The primary recommendation is to upgrade to Nuclei v3.2.0, where the vulnerability has been patched.
- Avoid Untrusted Workflows: As an interim measure, users should refrain from using custom workflows if unable to upgrade immediately. Only trusted, verified workflows should be executed.
Details
The vulnerability stems from an oversight in the workflow execution mechanism, where unsigned code templates could be executed, bypassing the security measures intended to authenticate the integrity and source of the templates. This issue is isolated to workflow executions and does not affect direct template executions.
Workarounds
The only effective workaround, aside from upgrading, is to avoid the use of custom workflows altogether. This approach limits functionality but ensures security until the upgrade can be performed.
Acknowledgements
We extend our sincere gratitude to @gpc1996 for their diligence in identifying and reporting this vulnerability.
References
- Security Patch Pull Request: GitHub PR #4822
- Workflows Overview: Nuclei Workflows Documentation
- Code Template Reference: Nuclei Code Protocols Documentation
- Template Signing Reference: Nuclei Template Signing Documentation
Go Vulnerability Database
Nuclei allows unsigned code template execution through workflows in github.com/projectdiscovery/nuclei
NVD (es)
projectdiscovery/nuclei es un escáner de vulnerabilidades rápido y personalizable basado en DSL simple basado en YAML. Se identificó un importante descuido de seguridad en Nuclei v3, que implica la ejecución de plantillas de código sin firmar a través de flujos de trabajo. Esta vulnerabilidad afecta específicamente a los usuarios que utilizan flujos de trabajo personalizados, lo que potencialmente permite la ejecución de código malicioso en el sistema del usuario. Este aviso describe a los usuarios afectados, proporciona detalles sobre el parche de seguridad y sugiere estrategias de mitigación. La vulnerabilidad se aborda en Nuclei v3.2.0. Se recomienda encarecidamente a los usuarios que actualicen a esta versión para mitigar el riesgo de seguridad. Los usuarios deben abstenerse de utilizar flujos de trabajo personalizados si no pueden actualizar inmediatamente. Sólo se deben ejecutar flujos de trabajo confiables y verificados.
References
| https://github.com/projectdiscovery/nuclei/security/advisories/GHSA-w5wx-6g2r-r78q | advisory, vendor-advisory, web | |
| https://github.com/projectdiscovery/nuclei/pull/4822 | fix, issue-tracking, web | |
| https://docs.projectdiscovery.io/templates/protocols/code | technical-description, web | |
| https://docs.projectdiscovery.io/templates/reference/template-signing | technical-description, web | |
| https://docs.projectdiscovery.io/templates/workflows/overview | technical-description, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2024-27920 | advisory | |
| https://github.com/projectdiscovery/nuclei/commit/e86f38299765b82ad724fdb701557e0eaff3884d | fix, web | |
| https://github.com/projectdiscovery/nuclei | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-27920 changed 2024-08-02 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-w5wx-6g2r-r78q changed 2024-08-20 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2024-2645 changed 2026-03-03 | CC-BY-4.0 |
| NVD | CVE-2024-27920 changed 2026-06-17 | Public domain |