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.
https://github.com/agentejo/cockpit/releases/tag/0.6.1
https://github.com/agentejo/cockpit/commits/next/lib/MongoLite/Database.php
https://www.exploit-db.com/exploits/49390
Source: Mitre, NVD
Published: 2021-01-08
Updated: 2026-06-17
Base Score: 7.5
Vector: CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P
Severity: High
Base Score: 9.8
Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Severity: Critical
EPSS: 0.51299