CVE-2020-35131
cockpit: registerCriteriaFunction in lib/MongoLite/Database.php allows for a Remote Command Execution via custom php code injection
Severity by source
Trivy's own label is CRITICAL. Rated critical by NVD. Rated lower by Red Hat (high).
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 packages and fixed versions
No package source lists this ID.
References
- https://access.redhat.com/security/cve/CVE-2020-35131
- https://github.com/agentejo/cockpit/commits/next/lib/MongoLite/Database.php
- https://github.com/agentejo/cockpit/releases/tag/0.6.1
- https://nvd.nist.gov/vuln/detail/CVE-2020-35131
- https://www.cve.org/CVERecord?id=CVE-2020-35131
- https://www.exploit-db.com/exploits/49390