What’s Vulnerable › Vulnerabilities
CVE-2020-35131
- Severity: critical (CVSS 9.8 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 50.3% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2021-01-08 · updated 2026-06-17
- Weakness: CWE-94
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.
Affected products
- cockpit-hq/cockpit: before 0.6.1 — fixed in 0.6.1
How to fix
Upgrade to a fixed version: cockpit-hq/cockpit 0.6.1. Check the vendor advisory for mitigations.
References
- https://github.com/agentejo/cockpit/commits/next/lib/MongoLite/Database.php
- https://github.com/agentejo/cockpit/releases/tag/0.6.1
- https://www.exploit-db.com/exploits/49390
- https://github.com/agentejo/cockpit/commits/next/lib/MongoLite/Database.php
- https://github.com/agentejo/cockpit/releases/tag/0.6.1
- https://www.exploit-db.com/exploits/49390
Get alerted when CVE-2020-35131 or the next vulnerability affects your stack