CVE-2021-37626: Improper Control of Generation of Code ('Code Injection')
(updated )
Contao is an open source CMS that allows you to create websites and scalable web applications. In affected versions it is possible to load PHP files by entering insert tags in the Contao back end. Installations are only affected if they have untrusted back end users who have the rights to modify fields that are shown in the front end. Update to Contao 4.4.56, 4.9.18 or 4.11.7 to resolve. If you cannot update then disable the login for untrusted back end users.
References
- contao.org/en/security-advisories/php-file-inclusion-via-insert-tags.html
- github.com/FriendsOfPHP/security-advisories/blob/master/contao/contao/CVE-2021-37626.yaml
- github.com/FriendsOfPHP/security-advisories/blob/master/contao/core-bundle/CVE-2021-37626.yaml
- github.com/advisories/GHSA-r6mv-ppjc-4hgr
- github.com/contao/contao/security/advisories/GHSA-r6mv-ppjc-4hgr
- nvd.nist.gov/vuln/detail/CVE-2021-37626
Detect and mitigate CVE-2021-37626 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →