Skip to content
On CISA KEVCritical

CVE-2020-35131Cockpit Code Injection

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.

Published Jan 8, 2021 · Updated Oct 24, 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 CIRCL KEV, Industry KEV feed since Oct 14, 2023. Public exploit code is available.
  • EPSS estimates a 78% 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.

Scores

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)

78%

Higher than 99.6% of all scored CVEs

Exploit maturity

Exploited (KEV)

ATLAS score

67/100

Publication score, see How it works

Exploitation Verdict

KEV listed

Oct 14, 2023

1009 days after publication

Federal due date

None

No federal due date

Ransomware use

Not reported

Attributed actors

None named

Exploit & Defence Guidance

Exploit maturity

Exploited (KEV)

Public exploit code

1

Proof-of-concept links

In-the-wild evidence

12

Reports of active use

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

CatalogAddedRemediation dueRansomware use
CIRCL KEVOct 14, 2023n/aNot reported
Industry KEV feedOct 14, 2023n/aNot reported

Affected Products

1 affected entries in total
ProductAffected versionsFixed in
CockpitAgentejoSee advisory0.6.1

Patched Releases

Cockpit

0.6.1

Timeline

  1. Publicly disclosed

    Jan 8, 2021

  2. Added to CIRCL KEV

    Oct 14, 2023

  3. Added to Industry KEV feed

    Oct 14, 2023

  4. Last updated

    Oct 24, 2026

Weakness Type

  • CWE-94 Improper Control of Generation of Code

References

10 more references in the full CVE brief

FAQ

Common Questions.

Is CVE-2020-35131 On Your Attack Surface?

Brandefense matches it against the products discovered on your perimeter and opens a finding the day a CVE like this is listed.

Request A Demo

More vulnerabilities

Figures as of Dec 1, 2026. Compiled by Brandefense technologies from public vulnerability catalogs; scoring as described in How it works.

To report an error, contact Brandefense.