Snyk has a proof-of-concept or detailed explanation of how to exploit this vulnerability.
The probability is the direct output of the EPSS model, and conveys an overall sense of the threat of exploitation in the wild. The percentile measures the EPSS probability relative to all known EPSS scores. Note: This data is updated daily, relying on the latest available EPSS model version. Check out the EPSS documentation for more details.
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applicationsLearn about OS Command Injection vulnerabilities in an interactive lesson.
Start learningUpgrade github.com/projectdiscovery/nuclei/v3/pkg/templates/signer
to version 3.3.2 or higher.
Affected versions of this package are vulnerable to OS Command Injection due to an improper template signature verification process in the tmpl_signer.go
component. An attacker can inject malicious content into a template while maintaining a valid signature for the benign part of the template by exploiting discrepancies between the signature verification process and the YAML parser's handling of newline characters, combined with the processing of multiple signatures.
Note: This is only exploitable if CLI users execute custom code templates from unverified sources, including templates authored by third parties or obtained from unverified repositories. SDK users are also at risk if they allow end-users to execute custom code templates.
Code templates are disabled as default; users have to explicitly enable them with the -code
option.
This vulnerability can be mitigated by refraining from using custom templates if unable to upgrade immediately and by ensuring only trusted, verified templates are executed. Those who are unable to upgrade Nuclei should disable running custom code templates.
id: example-template
info:
name: Example Template
# Other benign content...
# digest: <valid_signature_for_benign_content>
# digest: <another_signature>\r
code:\r
- engine:\r
- sh\r
- bash\r
source: |\r
id\r