{"id":"CVE-2020-35131","aliases":["CVE-2020-35131"],"related":[],"kind":"vulnerability","state":"published","title":"Cockpit before 0.6.1 allows an attacker to inject custom PHP code and achieve Remote Command Execution via registerCriteriaFunction in lib/…","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 data to the /auth/check or /auth/requestreset URI.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"Cockpit versiones anteriores a 0.6.1, permite a un atacante inyectar código PHP personalizado y lograr una Ejecución de Comandos Remota por medio de la función registerCriteriaFunction en la biblioteca lib/MongoLite/Database.php, como es demostrado por los valores en los datos JSON en el URI /auth/check o /auth/requestreset","source":"nvd"}],"published":"2021-01-08T16:09:06.000Z","modified":"2026-06-17T03:13:25.550Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","score":7.5,"rating":"HIGH"}],"cwes":["CWE-94"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"status":"affected","fixed":"0.6.1"}],"vendor":"agentejo","product":"cockpit","cpe":"cpe:2.3:a:agentejo:cockpit:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/agentejo/cockpit/releases/tag/0.6.1","tags":["release-notes","third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://github.com/agentejo/cockpit/commits/next/lib/MongoLite/Database.php","tags":["third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://www.exploit-db.com/exploits/49390","tags":["exploit","third-party-advisory","vdb-entry","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2020-35131","url":"https://www.cve.org/CVERecord?id=CVE-2020-35131","licence":"CVE Terms of Use","modified":"2024-08-04T16:55:10.645Z"},{"source":"nvd","name":"NVD","id":"CVE-2020-35131","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-35131","licence":"Public domain","modified":"2026-06-17T03:13:25.550Z"}],"updatedAt":"2026-11-25T22:57:56.943Z","epss":{"score":0.77818,"percentile":0.99575,"date":"2026-12-01T12:00:22.000Z"}}