{"id":"CVE-2020-35131","aliases":[],"summary":"Cockpit before 0.6.1 allows an attacker to inject custom PHP code and achieve Remote Command Execution via registerCriteriaFunction in lib/MongoLite/Database.php, as demonstrated by values in JSON...","published_at":"2021-01-08T00:00:00Z","modified_at":"2024-08-04T16:55:10.645Z","products":[],"rating":{"severity":"critical","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","attack_path":"internet_unauthenticated","user_interaction":false,"malicious":false,"red_hat":"Important","vendor_ratings":[{"source":"Red Hat","rating":"Important"}]},"fix_available":false,"kev":{"listed":false,"ransomware":false},"public_exploit":false,"exploits":[{"source":"nuclei-templates","id":"http/cves/2020/CVE-2020-35131","name":"Cockpit CMS 0.6.1 - Remote Code Execution","url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2020/CVE-2020-35131.yaml","verified":false}],"epss":{"score":0.5025799870491028,"percentile":0.989329993724823,"date":"2026-11-19T00:00:00Z"},"priority":13.8,"details":"Cockpit before 0.6.1 allows an attacker to inject custom PHP code and achieve Remote Command Execution via registerCriteriaFunction in lib/MongoLite/Database.php, as demonstrated by values in JSON data to the /auth/check or /auth/requestreset URI.","affected_stack":[],"affected_other":[{"ecosystem":"NVD","package":"agentejo:cockpit","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.6.1"}]}],"fixed":["0.6.1"],"provider":"nvd","source":"CVE-2020-35131","relation":"self"}],"product_status":[{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 7","cpe":"cpe:/o:redhat:rhel_els:7","status":"not_affected","packages":["cockpit","cockpit-bridge","cockpit-doc","cockpit-machines-ovirt","cockpit-system","cockpit-ws"],"package_count":6,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2020-35131"},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 8","cpe":"cpe:/a:redhat:enterprise_linux:8","status":"not_affected","packages":["cockpit","cockpit-bridge","cockpit-doc","cockpit-system","cockpit-ws"],"package_count":5,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2020-35131"},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 9","cpe":"cpe:/a:redhat:enterprise_linux:9","status":"not_affected","packages":["cockpit","cockpit-bridge","cockpit-doc","cockpit-packagekit","cockpit-pcp","cockpit-storaged","cockpit-system","cockpit-ws","cockpit-ws-selinux"],"package_count":9,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2020-35131"},{"vendor":"Red Hat","product":"Red Hat Virtualization 4","cpe":"cpe:/a:redhat:rhev_manager:4","status":"not_affected","packages":["cockpit-bridge","cockpit-dashboard","cockpit-docker","cockpit-machines","cockpit-machines-ovirt","cockpit-packagekit","cockpit-pcp","cockpit-storaged","cockpit-system","cockpit-ws"],"package_count":10,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2020-35131"}],"records":[{"provider":"cvelistv5","source_id":"CVE-2020-35131","relation":"self","url":"https://www.cve.org/CVERecord?id=CVE-2020-35131","license":"CC-BY-4.0","published_at":"2021-01-08T16:09:06Z","modified_at":"2024-08-04T16:55:10.645Z","summary":"Cockpit before 0.6.1 allows an attacker to inject custom PHP code and achieve Remote Command Execution via registerCriteriaFunction in lib/MongoLite/Database.php, as demonstrated by values in JSON...","details":"Cockpit before 0.6.1 allows an attacker to inject custom PHP code and achieve Remote Command Execution via registerCriteriaFunction in lib/MongoLite/Database.php, as demonstrated by values in JSON data to the /auth/check or /auth/requestreset URI.","severity":[],"affected":[],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/agentejo/cockpit/releases/tag/0.6.1"},{"type":"WEB","url":"https://github.com/agentejo/cockpit/commits/next/lib/MongoLite/Database.php"},{"type":"WEB","url":"https://www.exploit-db.com/exploits/49390"}]},{"provider":"nvd","source_id":"CVE-2020-35131","relation":"self","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-35131","severity":[],"affected":[{"ecosystem":"NVD","package":"agentejo:cockpit","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.6.1"}]}],"fixed":["0.6.1"],"provider":"nvd","source":"CVE-2020-35131","relation":"self"}],"product_status":[],"references":[]},{"provider":"redhat-vex","source_id":"CVE-2020-35131","relation":"self","url":"https://access.redhat.com/security/cve/CVE-2020-35131","license":"CC-BY-4.0","published_at":"2021-01-08T00:00:00Z","modified_at":"2021-02-16T17:16:53Z","summary":"cockpit: registerCriteriaFunction in lib/MongoLite/Database.php allows for a Remote Command Execution via custom php code injection","details":"A flaw was found in cockpit. An attacker is able to inject custom PHP code and achieve remote command execution. The highest threat from this vulnerability is to data confidentiality and integrity as well as system availability.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"CVE-2020-35131"},{"type":"Red Hat","score":"Important","source":"CVE-2020-35131"}],"affected":[],"product_status":[{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 7","cpe":"cpe:/o:redhat:rhel_els:7","status":"not_affected","packages":["cockpit","cockpit-bridge","cockpit-doc","cockpit-machines-ovirt","cockpit-system","cockpit-ws"],"package_count":6,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2020-35131"},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 8","cpe":"cpe:/a:redhat:enterprise_linux:8","status":"not_affected","packages":["cockpit","cockpit-bridge","cockpit-doc","cockpit-system","cockpit-ws"],"package_count":5,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2020-35131"},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 9","cpe":"cpe:/a:redhat:enterprise_linux:9","status":"not_affected","packages":["cockpit","cockpit-bridge","cockpit-doc","cockpit-packagekit","cockpit-pcp","cockpit-storaged","cockpit-system","cockpit-ws","cockpit-ws-selinux"],"package_count":9,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2020-35131"},{"vendor":"Red Hat","product":"Red Hat Virtualization 4","cpe":"cpe:/a:redhat:rhev_manager:4","status":"not_affected","packages":["cockpit-bridge","cockpit-dashboard","cockpit-docker","cockpit-machines","cockpit-machines-ovirt","cockpit-packagekit","cockpit-pcp","cockpit-storaged","cockpit-system","cockpit-ws"],"package_count":10,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2020-35131"}],"references":[{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2020/cve-2020-35131.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2020-35131"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=1916627"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2020-35131"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-35131"}]}],"references":[{"type":"WEB","url":"https://github.com/agentejo/cockpit/releases/tag/0.6.1"},{"type":"WEB","url":"https://github.com/agentejo/cockpit/commits/next/lib/MongoLite/Database.php"},{"type":"WEB","url":"https://www.exploit-db.com/exploits/49390"},{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2020/cve-2020-35131.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2020-35131"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=1916627"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2020-35131"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-35131"}],"sources":[{"provider":"cvelistv5","source_id":"CVE-2020-35131","url":"https://www.cve.org/CVERecord?id=CVE-2020-35131","license":"CC-BY-4.0","modified_at":"2024-08-04T16:55:10.645Z","relation":"self"},{"provider":"nvd","source_id":"CVE-2020-35131","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-35131","relation":"self"},{"provider":"redhat-vex","source_id":"CVE-2020-35131","url":"https://access.redhat.com/security/cve/CVE-2020-35131","license":"CC-BY-4.0","modified_at":"2021-02-16T17:16:53Z","relation":"self"}]}
