CVE-2021-37626: PHP file inclusion via insert tags

Published Aug 11, 2021
·
Updated

Impact

It is possible for untrusted users to load arbitrary PHP files via insert tags.

Installations are only affected if there are untrusted back end users.

Patches

Update to Contao 4.4.56, 4.9.18 or 4.11.7.

Workarounds

Disable the login for untrusted back end users.

References

https://contao.org/en/security-advisories/php-file-inclusion-via-insert-tags

For more information

If you have any questions or comments about this advisory, open an issue in contao/contao.

Other sources

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.

Affected Software

20 affected componentsFixes available
composer/contao/core-bundle>=4.0.0, <4.4.56, >=4.5.0, <4.6.0, >=4.6.0, <4.7.0, >=4.7.0, <4.8.0, >=4.8.0, <4.9.0, >=4.9.0, <4.9.18, >=4.10.0, <4.11.0, >=4.11.0, <4.11.7
composer/contao/contao>=4.0.0, <4.4.56, >=4.5.0, <4.6.0, >=4.6.0, <4.7.0, >=4.7.0, <4.8.0, >=4.8.0, <4.9.0, >=4.9.0, <4.9.18, >=4.10.0, <4.11.0, >=4.11.0, <4.11.7
composer/contao/contao>=4.10.0<4.11.7
4.11.7
composer/contao/contao>=4.5.0<4.9.18
4.9.18
composer/contao/contao>=4.0.0<4.4.56
4.4.56
composer/contao/core-bundle>=4.10.0<4.11.7
4.11.7
composer/contao/core-bundle>=4.5.0<4.9.18
4.9.18
composer/contao/core-bundle>=4.0.0<4.4.56
4.4.56
Contao Contao>=4.4.0<4.4.56
Contao Contao>=4.9.0<4.9.18
Contao Contao>=4.11.0<4.11.7
Contao Contao=4.0.0
Contao Contao=4.1.0
Contao Contao=4.2.0
Contao Contao=4.3.0
Contao Contao=4.5.0
Contao Contao=4.6.0
Contao Contao=4.7.0
Contao Contao=4.8.0
Contao Contao=4.10.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade composer/contao/contao to a version that resolves this vulnerability.

    Fixed in 4.11.7
  2. Upgrade

    Upgrade composer/contao/contao to a version that resolves this vulnerability.

    Fixed in 4.9.18
  3. Upgrade

    Upgrade composer/contao/contao to a version that resolves this vulnerability.

    Fixed in 4.4.56
  4. Upgrade

    Upgrade composer/contao/core-bundle to a version that resolves this vulnerability.

    Fixed in 4.11.7
  5. Upgrade

    Upgrade composer/contao/core-bundle to a version that resolves this vulnerability.

    Fixed in 4.9.18
  6. Upgrade

    Upgrade composer/contao/core-bundle to a version that resolves this vulnerability.

    Fixed in 4.4.56
  7. Upgrade

    Upgrade Contao to a version that resolves this vulnerability.

    Fixed in 4.4.56
  8. Upgrade

    Upgrade Contao to a version that resolves this vulnerability.

    Fixed in 4.9.18
  9. Upgrade

    Upgrade Contao to a version that resolves this vulnerability.

    Fixed in 4.11.7
  10. Configuration

    Disable the login for untrusted back end users (installations are affected only if there are untrusted back end users). If you cannot update to Contao 4.4.56, 4.9.18, or 4.11.7, disable this login setting.

    Contao back end login for untrusted back end users = disabled

Event History

Aug 11, 2021
Advisory Published
10:32 AM
CVE Published
via MITRE·10:20 PM
Data Sourced
via MITRE·10:20 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·11:15 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is CVE-2021-37626?

CVE-2021-37626 is a vulnerability in Contao that allows file inclusion via insert tags in the Contao back end.

2

How severe is CVE-2021-37626?

CVE-2021-37626 has a severity rating of 7.2 (High).

3

Which versions of Contao are affected by CVE-2021-37626?

Versions between 4.0.0 and 4.4.56, 4.5.0 and 4.6.0, 4.6.0 and 4.7.0, 4.7.0 and 4.8.0, 4.8.0 and 4.9.0, 4.9.0 and 4.9.18, 4.10.0 and 4.11.0, 4.11.0 and 4.11.7 of Contao are affected by CVE-2021-37626.

4

How can I fix CVE-2021-37626?

To fix CVE-2021-37626, it is recommended to update Contao to a version that is not affected by the vulnerability.

5

Where can I find more information about CVE-2021-37626?

You can find more information about CVE-2021-37626 in the Contao security advisories and the GitHub security advisory.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203