Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. contao/contao
  4. ›
  5. CVE-2021-37626

CVE-2021-37626: Improper Control of Generation of Code ('Code Injection')

August 23, 2021 (updated February 6, 2024)

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

Code Behaviors & Features

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 →

Affected versions

All versions starting from 4.0.0 before 4.4.56, all versions starting from 4.5.0 before 4.9.18, all versions starting from 4.10.0 before 4.11.7

Fixed versions

  • 4.4.56
  • 4.9.18
  • 4.11.7

Solution

Upgrade to versions 4.4.56, 4.9.18, 4.11.7 or above.

Impact 7.2 HIGH

CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-94: Improper Control of Generation of Code ('Code Injection')

Source file

packagist/contao/contao/CVE-2021-37626.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:31 +0000.