{"answers":{"affected":"2 open source packages ship an affected version, including concrete5/core. It affects 1 product.","exploited":"There is no known exploitation of CVE-2021-22968 in the wild and no public exploit code.","fix":"Upgrade concrete5/core to 8.5.7 or later.","what":"CVE-2021-22968 is a high-severity vulnerability in Concretecms Concrete Cms, published on 19 Nov 2021. An attacker needs administrator access to exploit it, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2021-22968 and fix it if it is affected.\n\nWhat it is: CVE-2021-22968 is a high-severity vulnerability in Concretecms Concrete Cms, published on 19 Nov 2021. An attacker needs administrator access to exploit it, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2021-22968 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- concrete5/core (Packagist): affected all versions; fixed in 8.5.7\n- concrete5/core (Packagist): affected all versions; fixed in 8.5.7\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-22968/ (Markdown: https://insights.sbomify.com/CVE-2021-22968/index.md)","id":"CVE-2021-22968","markdown":"https://insights.sbomify.com/CVE-2021-22968/index.md","name":"CVE-2021-22968","record":{"aliases":["GHSA-g3p2-hfqr-9m25"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":true,"product_category":"Concrete CMS","requires_auth":"high_privilege","summary":"Admins can bypass file extension restrictions to upload and execute malicious code via remote file staging in Concrete CMS.","user_interaction":"not_required","vuln_class":"file_upload"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"hackerone","cpe":[{"product":"concrete_cms","vendor":"concretecms"}],"cvss":{"score":7.2,"severity":"high","source":"nvd","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-434","name":"Unrestricted Upload of File with Dangerous Type"},{"id":"CWE-330","name":"Use of Insufficiently Random Values"},{"id":"CWE-98","name":"Improper Control of Filename for Include/Require Statement in PHP Program"}],"description":"A bypass of adding remote files in Concrete CMS (previously concrete5) File Manager leads to remote code execution in Concrete CMS (concrete5) versions 8.5.6 and below.The external file upload feature stages files in the public directory even if they have disallowed file extensions. They are stored in a directory with a random name, but it's possible to stall the uploads and brute force the directory name. You have to be an admin with the ability to upload files, but this bug gives you the ability to upload restricted file types and execute them depending on server configuration.To fix this, a check for allowed file extensions was added before downloading files to a tmp directory.Concrete CMS Security Team gave this a CVSS v3.1 score of 5.4 AV:N/AC:H/PR:H/UI:R/S:C/C:N/I:H/A:NThis fix is also in Concrete version 9.0.0","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":"Improper file handling in concrete5/core","id":"CVE-2021-22968","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Packagist","product":"concretecms:concrete_cms","products":["concretecms:concrete_cms"],"type":"file_upload","year":"2021"},"n_packages":2,"n_references":2,"next":{"headline":"Server-Side Request Forgery in Concrete CMS","id":"CVE-2021-22969"},"packages":[{"ecosystem":"Packagist","fixed":["8.5.7"],"introduced":["0"],"last_affected":[],"package":"concrete5/core","purl":null,"source":"GHSA-g3p2-hfqr-9m25"},{"ecosystem":"Packagist","fixed":["8.5.7"],"introduced":["0"],"last_affected":[],"package":"concrete5/core","purl":"pkg:composer/concrete5/core","source":"GHSA-g3p2-hfqr-9m25"}],"prev":{"headline":"Exposure of sensitive information in concrete5/core","id":"CVE-2021-22967"},"products":["https://github.com/concrete5/concrete5"],"published":"2021-11-19","related":[{"cvss_score":9.8,"headline":"Concrete CMS allows unauthorized access because directories can be created with insecure permissions","id":"CVE-2023-48648","kev_date_added":null,"published":"2023-11-17"},{"cvss_score":9.8,"headline":"Code injection in concrete CMS","id":"CVE-2022-21829","kev_date_added":null,"published":"2022-06-24"},{"cvss_score":9.8,"headline":"Server-Side Request Forgery vulnerability in concrete5","id":"CVE-2021-22958","kev_date_added":null,"published":"2021-10-07"},{"cvss_score":9.8,"headline":"Path traversal in n/a","id":"CVE-2021-40098","kev_date_added":null,"published":"2021-09-27"},{"cvss_score":9.4,"headline":"Concrete CMS Vulnerable to Relative Path Traversal","id":"CVE-2026-8134","kev_date_added":null,"published":"2026-05-21"},{"cvss_score":9.1,"headline":"Path traversal in Concrete CMS","id":"CVE-2022-30117","kev_date_added":null,"published":"2022-06-24"},{"cvss_score":9.1,"headline":"Deserialization in n/a","id":"CVE-2021-40102","kev_date_added":null,"published":"2021-09-24"}],"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-03","vendors":["n/a"]},"summary":"Admins can bypass file extension restrictions to upload and execute malicious code via remote file staging in Concrete CMS.","url":"https://insights.sbomify.com/CVE-2021-22968/"}