{"answers":{"affected":"12 open source packages ship an affected version, including contao/contao and contao/core-bundle. It affects 1 product.","exploited":"There is no known exploitation of CVE-2021-37626 in the wild and no public exploit code.","fix":"Upgrade contao/contao to a fixed version for your release line: 4.4.56, 4.11.7 or 4.9.18.","what":"CVE-2021-37626 is a high-severity code injection vulnerability in contao, published on 11 Aug 2021. An attacker needs administrator access to exploit it, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2021-37626 and fix it if it is affected.\n\nWhat it is: CVE-2021-37626 is a high-severity code injection vulnerability in contao, published on 11 Aug 2021. An attacker needs administrator access to exploit it, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2021-37626 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- contao/contao (Packagist): affected from 4.0.0; fixed in 4.4.56\n- contao/contao (Packagist): affected from 4.0.0; fixed in 4.4.56\n- contao/contao (Packagist): affected from 4.10.0; fixed in 4.11.7\n- contao/contao (Packagist): affected from 4.10.0; fixed in 4.11.7\n- contao/contao (Packagist): affected from 4.5.0; fixed in 4.9.18\n- contao/contao (Packagist): affected from 4.5.0; fixed in 4.9.18\n- contao/core-bundle (Packagist): affected from 4.0.0; fixed in 4.4.56\n- contao/core-bundle (Packagist): affected from 4.0.0; fixed in 4.4.56\n- contao/core-bundle (Packagist): affected from 4.10.0; fixed in 4.11.7\n- contao/core-bundle (Packagist): affected from 4.10.0; fixed in 4.11.7\n- contao/core-bundle (Packagist): affected from 4.5.0; fixed in 4.9.18\n- contao/core-bundle (Packagist): affected from 4.5.0; fixed in 4.9.18\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2021-37626/ (Markdown: https://insights.sbomify.com/CVE-2021-37626/index.md)","id":"CVE-2021-37626","markdown":"https://insights.sbomify.com/CVE-2021-37626/index.md","name":"CVE-2021-37626","record":{"aliases":["GHSA-r6mv-ppjc-4hgr"],"analysis":{"component_type":"cms_plugin","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":true,"product_category":"Contao CMS","requires_auth":"high_privilege","summary":"Untrusted back end users can execute arbitrary PHP code via insert tags in the Contao CMS, requiring specific user permissions to exploit.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"contao","vendor":"contao"}],"cvss":{"score":7.2,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"description":"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.","ecosystems":["Packagist"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"PHP file inclusion via insert tags","id":"CVE-2021-37626","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Packagist","product":null,"products":[],"type":"code_injection","year":"2021"},"n_packages":12,"n_references":2,"next":{"headline":"Privilege escalation via form generator","id":"CVE-2021-37627"},"packages":[{"ecosystem":"Packagist","fixed":["4.4.56"],"introduced":["4.0.0"],"last_affected":[],"package":"contao/contao","purl":null,"source":"GHSA-r6mv-ppjc-4hgr"},{"ecosystem":"Packagist","fixed":["4.4.56"],"introduced":["4.0.0"],"last_affected":[],"package":"contao/contao","purl":"pkg:composer/contao/contao","source":"GHSA-r6mv-ppjc-4hgr"},{"ecosystem":"Packagist","fixed":["4.11.7"],"introduced":["4.10.0"],"last_affected":[],"package":"contao/contao","purl":null,"source":"GHSA-r6mv-ppjc-4hgr"},{"ecosystem":"Packagist","fixed":["4.11.7"],"introduced":["4.10.0"],"last_affected":[],"package":"contao/contao","purl":"pkg:composer/contao/contao","source":"GHSA-r6mv-ppjc-4hgr"},{"ecosystem":"Packagist","fixed":["4.9.18"],"introduced":["4.5.0"],"last_affected":[],"package":"contao/contao","purl":null,"source":"GHSA-r6mv-ppjc-4hgr"},{"ecosystem":"Packagist","fixed":["4.9.18"],"introduced":["4.5.0"],"last_affected":[],"package":"contao/contao","purl":"pkg:composer/contao/contao","source":"GHSA-r6mv-ppjc-4hgr"},{"ecosystem":"Packagist","fixed":["4.4.56"],"introduced":["4.0.0"],"last_affected":[],"package":"contao/core-bundle","purl":null,"source":"GHSA-r6mv-ppjc-4hgr"},{"ecosystem":"Packagist","fixed":["4.4.56"],"introduced":["4.0.0"],"last_affected":[],"package":"contao/core-bundle","purl":"pkg:composer/contao/core-bundle","source":"GHSA-r6mv-ppjc-4hgr"},{"ecosystem":"Packagist","fixed":["4.11.7"],"introduced":["4.10.0"],"last_affected":[],"package":"contao/core-bundle","purl":null,"source":"GHSA-r6mv-ppjc-4hgr"},{"ecosystem":"Packagist","fixed":["4.11.7"],"introduced":["4.10.0"],"last_affected":[],"package":"contao/core-bundle","purl":"pkg:composer/contao/core-bundle","source":"GHSA-r6mv-ppjc-4hgr"},{"ecosystem":"Packagist","fixed":["4.9.18"],"introduced":["4.5.0"],"last_affected":[],"package":"contao/core-bundle","purl":null,"source":"GHSA-r6mv-ppjc-4hgr"},{"ecosystem":"Packagist","fixed":["4.9.18"],"introduced":["4.5.0"],"last_affected":[],"package":"contao/core-bundle","purl":"pkg:composer/contao/core-bundle","source":"GHSA-r6mv-ppjc-4hgr"}],"prev":{"headline":"Incorrect Check of Function Return Value in Skytable","id":"CVE-2021-37625"},"products":["contao"],"published":"2021-08-11","related":[{"cvss_score":9.8,"headline":"Remote Code Execution in Contao Managed Edition","id":"CVE-2022-26265","kev_date_added":null,"published":"2022-03-18"},{"cvss_score":9.8,"headline":"Contao SQL injection in the file manager","id":"CVE-2019-11512","kev_date_added":null,"published":"2019-07-09"},{"cvss_score":8.8,"headline":"Contao core SQL Injection Vulnerability","id":"CVE-2012-4383","kev_date_added":null,"published":"2020-01-29"},{"cvss_score":8.8,"headline":"Unrestricted file uploads in Contao","id":"CVE-2019-19745","kev_date_added":null,"published":"2019-12-17"},{"cvss_score":8.4,"headline":"Contao possible cookie sharing with external domains while checking protected pages for broken links","id":"CVE-2024-28235","kev_date_added":null,"published":"2024-04-09"},{"cvss_score":8.3,"headline":"Remote command execution through file upload in contao/core-bundle","id":"CVE-2024-45398","kev_date_added":null,"published":"2024-09-17"},{"cvss_score":8,"headline":"Privilege escalation via form generator","id":"CVE-2021-37627","kev_date_added":null,"published":"2021-08-11"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-04","vendors":["contao"]},"summary":"Untrusted back end users can execute arbitrary PHP code via insert tags in the Contao CMS, requiring specific user permissions to exploit.","url":"https://insights.sbomify.com/CVE-2021-37626/"}