CVE-2020-35131
CriticalExploitedCockpit 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.
Published Jan 8, 2021 · Updated Aug 7, 2026
Key Facts
Patch immediately- CVE-2020-35131 is a critical-severity vulnerability (CVSS 9.8 v3.1) affecting Cockpit (Agentejo).
- It is exploited in the wild, listed in Industry KEV feed, CIRCL KEV since Oct 14, 2023. No public exploit code is known.
- EPSS estimates a 50% probability of exploitation in the next 30 days.
- Fixed versions are available, including Cockpit 0.6.1.
- Brandefense priority: patch immediately, because it is listed as exploited in the wild.
CVSS v3.1
9.8
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS (30-day exploit likelihood)
50%
Higher than 98.8% of all scored CVEs
Exploited in the wild
Yes
2 catalog listings
Public exploit code
None known
Get the full CVE-2020-35131 brief as a PDF
Every affected product and fixed release, exploitation status and a first 24 hours response checklist, emailed within minutes.
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.
Known-Exploited Catalog Listings
| Catalog | Added | Remediation due | Ransomware use |
|---|---|---|---|
| Industry KEV feed | Nov 13, 2023 | n/a | Not reported |
| CIRCL KEV | Oct 14, 2023 | n/a | Not reported |
Required action: Apply remediations or mitigations per vendor instructions or discontinue use of the product if remediation or mitigations are unavailable.
Affected Products
1 affected entries in total| Product | Affected versions | Fixed in |
|---|---|---|
| CockpitAgentejo | See advisory | 0.6.1 |
Patched Releases
Cockpit
0.6.1
Timeline
Publicly disclosed
Jan 8, 2021
Added to CIRCL KEV
Oct 14, 2023
Added to Industry KEV feed
Nov 13, 2023
Last updated
Aug 7, 2026
Weakness Type
- CWE-94 Improper Control of Generation of Code ('Code Injection')
References
- advisoryhttps://github.com/agentejo/cockpit/commits/next/lib/MongoLite/Database.php
- advisoryhttps://github.com/agentejo/cockpit/releases/tag/0.6.1
- exploitVulnCheck exploitation report
- exploitVulnCheck exploitation report
- exploitVulnCheck exploitation report
FAQ
Common Questions.
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: Cockpit (Agentejo). The full list is in the CVE brief.
It is exploited in the wild, listed in Industry KEV feed, CIRCL KEV since Oct 14, 2023.
No, it is not currently listed in the CISA Known Exploited Vulnerabilities catalog.
No public exploit code is known.
Fixed versions are available, including Cockpit 0.6.1.
Brandefense priority: patch immediately, because it is listed as exploited in the wild.
Is CVE-2020-35131 Running On Your Attack Surface?
Brandefense maps vulnerabilities like this one to your internet-facing assets and tells you exactly where to patch.
Request A Demo