Skip to content
Fencer Vulns
critical 9.8

CVE-2020-35131 in the critical feed json

Cockpit before 0.6.1 allows an attacker to inject custom PHP code and achieve Remote Command Execution via registerCriteriaFunction in lib/…

published 2021-01-08 5 y ago modified 2026-06-17 4 mo ago also EUVD-2020-22823

cvss
9.8
version 3.1, NVD
cisa kev
Not listed
not in CISA's catalog
epss
50.3%
EPSS 50.3% chance of exploitation in 30 days, percentile 98%
public exploits
0
none known, plus a Nuclei check

Summary

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.

Patch / fix

  • agentejo cockpit 0.6.1

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2020-35131 updated cvss 9.8

cockpit: registerCriteriaFunction in lib/MongoLite/Database.php allows for a Remote Command Execution via custom php code injection

  • Red Hat Enterprise Linux 7 cockpit, cockpit-ws, cockpit-bridge, cockpit-system, cockpit-machines-ovirt Red Hat Enterprise Linux 8 cockpit, cockpit-ws, cockpit-bridge, cockpit-system Red Hat Enterprise Linux 9 cockpit, cockpit-ws, cockpit-pcp, cockpit-bridge, cockpit-system, cockpit-storaged, +2 more Red Hat Virtualization 4 cockpit-ws, cockpit-pcp, cockpit-bridge, cockpit-docker, cockpit-system, cockpit-machines, +4 more
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

Exploit prediction

50.26% chance of exploitation in the next 30 days, higher than 98% of all scored CVEs (FIRST EPSS, 2026-11-08).

Exploits and checks

  • Nuclei template Cockpit CMS 0.6.1 - Remote Code Execution nuclei detection template
  • exploit-db.com https://www.exploit-db.com/exploits/49390 referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
NVD 3.1 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD 2.0 7.5 AV:N/AC:L/Au:N/C:P/I:P/A:P

Classification

Weakness
  • CWE-94 Improper Control of Generation of Code

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.