{"answers":{"affected":"It affects 1 product.","exploited":"There is no known exploitation of CVE-2016-7040 in the wild and no public exploit code.","fix":"Apply the vendor's patch.","what":"CVE-2016-7040 is a high-severity command injection vulnerability in n/a, published on 7 Oct 2016. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2016-7040 and fix it if it is affected.\n\nWhat it is: CVE-2016-7040 is a high-severity command injection vulnerability in n/a, published on 7 Oct 2016. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2016-7040 in the wild and no public exploit code.\n\nAffected product: n/a. No package-level version data is available, so check the vendor advisory linked from the reference page.\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-2016-7040/ (Markdown: https://insights.sbomify.com/CVE-2016-7040/index.md)","id":"CVE-2016-7040","markdown":"https://insights.sbomify.com/CVE-2016-7040/index.md","name":"CVE-2016-7040","record":{"aliases":["GHSA-7fr4-2q4f-xgw5","RHSA-2016:1996"],"analysis":{"component_type":"cloud_service","fix_type":"patch","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Red Hat CloudForms","requires_auth":"low_privilege","summary":"Authenticated users can execute arbitrary shell commands in Red Hat CloudForms via malicious regular expressions in the API or UI.","user_interaction":"not_required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"cloudforms_management_engine","vendor":"redhat"}],"cvss":{"score":8.8,"severity":"high","source":"nvd","vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.0"},"cwes":[{"id":"CWE-284","name":"Improper Access Control"}],"description":"Red Hat CloudForms Management Engine 4.1 does not properly handle regular expressions passed to the expression engine via the JSON API and the web-based UI, which allows remote authenticated users to execute arbitrary shell commands by leveraging the ability to view and filter collections.","ecosystems":["Red Hat:cloudforms_managementengine:5.6::el7"],"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":"Command injection in n/a","id":"CVE-2016-7040","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"command_injection","year":"2016"},"n_packages":11,"n_references":2,"next":{"headline":"Path traversal in Drools Workbench","id":"CVE-2016-7041"},"packages":[{"ecosystem":"Red Hat:cloudforms_managementengine:5.6::el7","fixed":["0:5.6.2.1-1.el7cf"],"introduced":["0"],"last_affected":[],"package":"cfme","purl":"pkg:rpm/redhat/cfme","source":"RHSA-2016:1996"},{"ecosystem":"Red Hat:cloudforms_managementengine:5.6::el7","fixed":["0:5.6.2.1-1.el7cf"],"introduced":["0"],"last_affected":[],"package":"cfme-appliance","purl":"pkg:rpm/redhat/cfme-appliance","source":"RHSA-2016:1996"},{"ecosystem":"Red Hat:cloudforms_managementengine:5.6::el7","fixed":["0:5.6.2.1-1.el7cf"],"introduced":["0"],"last_affected":[],"package":"cfme-appliance-debuginfo","purl":"pkg:rpm/redhat/cfme-appliance-debuginfo","source":"RHSA-2016:1996"},{"ecosystem":"Red Hat:cloudforms_managementengine:5.6::el7","fixed":["0:5.6.2.1-1.el7cf"],"introduced":["0"],"last_affected":[],"package":"cfme-debuginfo","purl":"pkg:rpm/redhat/cfme-debuginfo","source":"RHSA-2016:1996"},{"ecosystem":"Red Hat:cloudforms_managementengine:5.6::el7","fixed":["0:5.6.2.1-1.el7cf"],"introduced":["0"],"last_affected":[],"package":"cfme-gemset","purl":"pkg:rpm/redhat/cfme-gemset","source":"RHSA-2016:1996"},{"ecosystem":"Red Hat:cloudforms_managementengine:5.6::el7","fixed":["0:1.6.8-1.el7cf"],"introduced":["0"],"last_affected":[],"package":"rh-ruby22-rubygem-nokogiri","purl":"pkg:rpm/redhat/rh-ruby22-rubygem-nokogiri","source":"RHSA-2016:1996"},{"ecosystem":"Red Hat:cloudforms_managementengine:5.6::el7","fixed":["0:1.6.8-1.el7cf"],"introduced":["0"],"last_affected":[],"package":"rh-ruby22-rubygem-nokogiri-debuginfo","purl":"pkg:rpm/redhat/rh-ruby22-rubygem-nokogiri-debuginfo","source":"RHSA-2016:1996"},{"ecosystem":"Red Hat:cloudforms_managementengine:5.6::el7","fixed":["0:1.1.7-1.el7cf"],"introduced":["0"],"last_affected":[],"package":"rh-ruby22-rubygem-pkg-config","purl":"pkg:rpm/redhat/rh-ruby22-rubygem-pkg-config","source":"RHSA-2016:1996"},{"ecosystem":"Red Hat:cloudforms_managementengine:5.6::el7","fixed":["0:1.1.7-1.el7cf"],"introduced":["0"],"last_affected":[],"package":"rh-ruby22-rubygem-pkg-config-doc","purl":"pkg:rpm/redhat/rh-ruby22-rubygem-pkg-config-doc","source":"RHSA-2016:1996"},{"ecosystem":"Red Hat:cloudforms_managementengine:5.6::el7","fixed":["0:1.7.0-1.el7cf"],"introduced":["0"],"last_affected":[],"package":"rh-ruby22-rubygem-thin","purl":"pkg:rpm/redhat/rh-ruby22-rubygem-thin","source":"RHSA-2016:1996"},{"ecosystem":"Red Hat:cloudforms_managementengine:5.6::el7","fixed":["0:1.7.0-1.el7cf"],"introduced":["0"],"last_affected":[],"package":"rh-ruby22-rubygem-thin-debuginfo","purl":"pkg:rpm/redhat/rh-ruby22-rubygem-thin-debuginfo","source":"RHSA-2016:1996"}],"prev":{"headline":"Denial of service in n/a","id":"CVE-2016-7039"},"products":["n/a"],"published":"2016-10-07","related":[{"cvss_score":9.4,"headline":"Path traversal in n/a","id":"CVE-2013-2068","kev_date_added":null,"published":"2013-09-28"},{"cvss_score":9.1,"headline":"Security feature bypass in Red Hat CloudForms","id":"CVE-2014-8164","kev_date_added":null,"published":"2022-07-06"},{"cvss_score":9.1,"headline":"Command injection in CloudForms","id":"CVE-2020-14324","kev_date_added":null,"published":"2020-08-11"},{"cvss_score":8.8,"headline":"Missing authorization in n/a","id":"CVE-2014-0087","kev_date_added":null,"published":"2018-01-11"},{"cvss_score":8.5,"headline":"Code injection in n/a","id":"CVE-2013-4172","kev_date_added":null,"published":"2013-08-23"},{"cvss_score":8,"headline":"Command injection in CloudForms","id":"CVE-2019-14894","kev_date_added":null,"published":"2020-06-22"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"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-06","vendors":["n/a"]},"summary":"Authenticated users can execute arbitrary shell commands in Red Hat CloudForms via malicious regular expressions in the API or UI.","url":"https://insights.sbomify.com/CVE-2016-7040/"}