{"id":"CVE-2020-35131","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.","modified":"2026-04-10T04:19:09.667064Z","published":"2021-01-08T17:15:13.150Z","references":[{"type":"ADVISORY","url":"https://github.com/agentejo/cockpit/commits/next/lib/MongoLite/Database.php"},{"type":"ADVISORY","url":"https://github.com/agentejo/cockpit/releases/tag/0.6.1"},{"type":"EVIDENCE","url":"https://www.exploit-db.com/exploits/49390"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/agentejo/cockpit","events":[{"introduced":"0"},{"fixed":"5d87f915441ce3034afa391cc224ea75480e0a7c"}],"database_specific":{"versions":[{"introduced":"0"},{"fixed":"0.6.1"}]}}],"versions":["0.5.0","0.5.1","0.5.2","0.5.3","0.5.5","0.6.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2020-35131.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}