{"id":"CVE-2020-35131","published":"2021-01-08T16:09:06Z","modified":"2024-08-04T16:55:10Z","title":"Cockpit before 0.6.1 allows an attacker to inject custom PHP code and achieve Remote Command Execution via…","vendor":null,"product":null,"tier":"core","eol":null,"description":{"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.","provenance":"source","from":"CVE.org"},"summary":{"text":"Cockpit before 0.6.1 contains a flaw in the registerCriteriaFunction handling in lib/MongoLite/Database.php, which allows custom PHP code to be injected. The attack is demonstrated by supplying crafted values in JSON data sent to the /auth/check or /auth/requestreset URI, which can lead to remote command execution.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-03T14:46:37Z"},"cvss":null,"epss":{"score":0.50258,"percentile":0.98935,"date":"2026-11-23","provenance":"source"},"kev":null,"vulncheckKev":{"dateAdded":"2023-11-13","exploitedFirstSeen":"2023-11-13","ransomware":false,"evidence":[{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2023-11-13&host_type=src&vulnerability=cve-2020-35131","date":"2023-11-13"},{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2023-11-15&host_type=src&vulnerability=cve-2020-35131","date":"2023-11-15"},{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2023-11-16&host_type=src&vulnerability=cve-2020-35131","date":"2023-11-16"},{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2023-11-17&host_type=src&vulnerability=cve-2020-35131","date":"2023-11-17"},{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2023-11-29&host_type=src&vulnerability=cve-2020-35131","date":"2023-11-29"},{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2023-12-10&host_type=src&vulnerability=cve-2020-35131","date":"2023-12-10"},{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2023-12-21&host_type=src&vulnerability=cve-2020-35131","date":"2023-12-21"},{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2023-12-25&host_type=src&vulnerability=cve-2020-35131","date":"2023-12-25"},{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2023-12-28&host_type=src&vulnerability=cve-2020-35131","date":"2023-12-28"},{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2023-12-30&host_type=src&vulnerability=cve-2020-35131","date":"2023-12-30"}],"evidenceTotal":798,"provenance":"source"},"exploited":true,"otx":{"pulseCount":0,"pulses":[],"provenance":"machine"},"cwes":[],"references":[{"url":"https://github.com/agentejo/cockpit/releases/tag/0.6.1","tags":["x_refsource_MISC"]},{"url":"https://github.com/agentejo/cockpit/commits/next/lib/MongoLite/Database.php","tags":["x_refsource_MISC"]},{"url":"https://www.exploit-db.com/exploits/49390","tags":["x_refsource_MISC"]}],"techniques":[],"reports":[],"affected":[],"advisories":[],"euvd":{"id":"EUVD-2020-22823","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2020-22823","exploited":false,"exploitedSince":null,"provenance":"source"},"exploits":[{"id":49390,"url":"https://www.exploit-db.com/exploits/49390","title":"Cockpit CMS 0.6.1 - Remote Code Execution (RCE)","type":"webapps","platform":"php","date":"2021-01-07","verified":false,"provenance":"source"}],"exploitSources":{"exploitdb":{"count":1,"earliest":"2021-01-07"},"nuclei":[{"id":"CVE-2020-35131","name":"Cockpit CMS 0.6.1 - Remote Code Execution","severity":"critical","path":"http/cves/2020/CVE-2020-35131.yaml","url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2020/CVE-2020-35131.yaml"}],"first":{"date":"2021-01-07","source":"Exploit-DB","url":"https://www.exploit-db.com/exploits/49390"},"provenance":"source"},"exploitRefs":["https://www.exploit-db.com/exploits/49390"],"flow":[],"timeline":[{"date":"2021-01-07","kind":"exploit-public","label":"First public exploit: Exploit-DB (EDB-49390)","url":"https://www.exploit-db.com/exploits/49390","provenance":"source"},{"date":"2021-01-08","kind":"published","label":"Published (CVE.org)","url":"https://www.cve.org/CVERecord?id=CVE-2020-35131","provenance":"source"},{"date":"2023-11-13","kind":"exploited-reported","label":"Exploitation first reported (VulnCheck KEV evidence)","url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2023-11-13&host_type=src&vulnerability=cve-2020-35131","provenance":"source"}],"speed":{"daysToPublicExploit":null,"firstExploitFrom":"Exploit-DB","daysToKev":null},"priority":{"score":59.8,"factors":[{"name":"In a KEV catalog","points":35.0,"detail":"listed in VulnCheck KEV"},{"name":"Recent KEV listing","points":0.0,"detail":"added 1106 days ago"},{"name":"Known ransomware use","points":0.0,"detail":"not known"},{"name":"EPSS percentile","points":19.79,"detail":"percentile 0.9893"},{"name":"Named in threat reports","points":0.0,"detail":"0 reports"},{"name":"Public exploit code","points":5.0,"detail":"1 Exploit-DB entry; 1 NVD exploit link; 1 nuclei template"},{"name":"Mentioned in OTX pulses","points":0.0,"detail":"0 pulses"},{"name":"CVSS severity","points":0.0,"detail":"no CVSS"},{"name":"End-of-life product","points":0.0,"detail":"supported or unknown"}]}}