{"id":"CVE-2020-35131","aliases":["EUVD-2020-22823","GHSA-5qjq-mx2m-jmx9"],"status":"published","title":"Cockpit before 0.6.1 allows an attacker to inject custom PHP code and achieve Remote Command...","description":"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":{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-09","score":0.50258,"percentile":0.98916,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"cwes":["CWE-94"],"published":"2021-01-08T16:09:06Z","modified":"2026-10-24T10:51:23Z","exploits":[{"source":"nuclei","id":"CVE-2020-35131","title":"Cockpit CMS 0.6.1 - Remote Code Execution","type":"detection template","url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2020/CVE-2020-35131.yaml"}],"products":[{"vendor":"agentejo","product":"cockpit"}],"references":[{"url":"https://github.com/agentejo/cockpit/releases/tag/0.6.1","tags":["x_refsource_MISC","x_transferred","Release Notes","Third Party Advisory","advisory"]},{"url":"https://github.com/agentejo/cockpit/commits/next/lib/MongoLite/Database.php","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","advisory"]},{"url":"https://www.exploit-db.com/exploits/49390","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","VDB Entry","evidence"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-35131"},{"url":"https://github.com/advisories/GHSA-5qjq-mx2m-jmx9"}],"sources":{"cve":[{"id":"CVE-2020-35131","description":"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.","status":"published","published":"2021-01-08T16:09:06Z","modified":"2024-08-04T16:55:10.645Z","updated_at":"2026-11-02T14:35:57.975444Z"}],"euvd":[{"id":"EUVD-2020-22823","description":"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.","status":"published","published":"2021-01-08T16:09:06Z","modified":"2024-08-04T16:55:10Z","updated_at":"2026-11-03T03:07:06.885366Z"}],"ghsa":[{"id":"GHSA-5qjq-mx2m-jmx9","title":"Cockpit before 0.6.1 allows an attacker to inject custom PHP code and achieve Remote Command...","description":"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.","status":"published","published":"2022-05-24T17:38:20Z","modified":"2023-01-29T05:04:58Z","cwes":["CWE-94"],"updated_at":"2026-11-02T14:45:41.213171Z"}],"nvd":[{"id":"CVE-2020-35131","description":"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.","status":"published","published":"2021-01-08T17:15:13.15Z","modified":"2026-06-17T03:13:25.55Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary"},{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","level":"high","assessor":"primary"}],"cwes":["CWE-94"],"updated_at":"2026-11-02T14:06:28.892872Z"}],"osv":[{"id":"CVE-2020-35131","description":"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.","status":"published","published":"2021-01-08T17:15:13.15Z","modified":"2026-10-24T10:51:23.019516613Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:44:16.612899Z"}]}}
