{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "versions": [
              {
                "introduced": "0"
              },
              {
                "fixed": "0.6.1"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "5d87f915441ce3034afa391cc224ea75480e0a7c"
            }
          ],
          "repo": "https://github.com/agentejo/cockpit",
          "type": "GIT"
        }
      ]
    }
  ],
  "details": "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.",
  "id": "CVE-2020-35131",
  "modified": "2026-03-13T21:53:18.793097537Z",
  "published": "2021-01-08T17:15:13.150Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/agentejo/cockpit/commits/next/lib/MongoLite/Database.php"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/agentejo/cockpit/releases/tag/0.6.1"
    },
    {
      "type": "EVIDENCE",
      "url": "https://www.exploit-db.com/exploits/49390"
    }
  ],
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ]
}