Skip to main content

Cockpit CMS EUVDEUVD-2026-26280

| CVE-2026-34965 HIGH
Code Injection (CWE-94)
2026-04-29 VulnCheck
8.7
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate with collection-management account
  2. Delivery
    POST crafted PHP in rules to save_collection
  3. Exploit
    Payload written to server-side PHP file
  4. Execution
    include() evaluates injected code
  5. Impact
    Execute OS commands as web server user

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Code injection prevention, sandbox exec
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Initial Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Requires an authenticated Cockpit CMS account that holds collection-management privileges (PR:L) and network access to the /cockpit/collections/save_collection endpoint; no user interaction and no special attack conditions beyond that (AT:N/UI:N). The concrete trigger is supplying PHP code inside a collection 'rules' parameter, which Cockpit writes to a server-side PHP file and evaluates via include(). Limiting factors: the attacker must first possess the collection-management role rather than being fully anonymous, and the admin endpoint must be reachable - deployments that gate the /cockpit interface behind network controls or grant collection rights only to trusted admins materially reduce exposure. SSVC marks exploitation as not automatable, so it is not a mass-scannable, unauthenticated drive-by.

Impact

The signals are consistent and point to a genuine but access-gated risk. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N) with total VC/VI/VA=H and SSVC 'Technical Impact: total' correctly reflect that any authenticated user with collection privileges gets full server compromise with no user interaction. The offsetting factors are PR:L (an account with collection-management rights is required - not anonymous) and SSVC 'Automatable: no', meaning exploitation is not trivially wormable/mass-scannable. EPSS is low (0.39%) and there is no KEV listing, so at time of analysis this appears to be exploited/exploitable in targeted rather than widespread fashion despite public POC availability. No conflicts detected between the vector and the description; both agree on network-reachable, low-privilege, high-impact. Bottom line: high priority for any internet-exposed Cockpit instance where untrusted or numerous users hold collection rights, moderate priority for tightly-controlled single-admin deployments.

Exploit ScenarioDerived

An attacker who has obtained or been granted a Cockpit account with collection-management rights (e.g. a low-trust content editor, or credentials from phishing/reuse) opens or crafts a request to /cockpit/collections/save_collection and embeds PHP such as a system() call inside a collection rule parameter. Cockpit writes the rule into a server-side PHP file and executes it via include() on the next load, giving the attacker command execution as the web server user. Public exploit code exists (a gist and the VulnCheck advisory), lowering the skill required to reproduce it.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 24, 2026

Authenticated remote code execution in Cockpit CMS lets attackers holding collection-management privileges inject arbitrary PHP through the /cockpit/collections/save_collection endpoint's rule parameters, which are persisted to server-side PHP files and executed via include(). A low-privileged authenticated user can therefore run arbitrary OS commands on the host. Publicly available exploit code exists (VulnCheck advisory and a public gist), though this is not listed in CISA KEV; EPSS is modest at 0.39% (60th percentile).

RemediationAI

Upstream fix available (PR/commit); a released, tagged patched version is not independently confirmed from the provided data - the fix is associated with commit 494765e4f0fb9484f320aee0c6ee889b6fa789b9 (https://github.com/agentejo/cockpit/commits/494765e4f0fb9484f320aee0c6ee889b6fa789b9), so update to a build at or after that commit and review the VulnCheck advisory (https://www.vulncheck.com/advisories/cockpit-cms-authenticated-remote-code-execution-via-collections). Until a patched build is deployed, restrict who holds collection-management privileges to a minimal set of fully trusted operators, since PR:L means the exploit requires that role; place the /cockpit admin interface (and specifically the collections/save_collection endpoint) behind a VPN, IP allowlist, or reverse-proxy authentication so it is not internet-reachable - trade-off is reduced remote administrative convenience. If feasible, run the PHP process as a low-privilege user with a read-only or non-executable data directory to blunt the include()-based execution, accepting that this may break features that legitimately regenerate collection PHP files. Monitor for unexpected new or modified PHP files in the collections storage path as a detection control.

Affected VersionsENISA

Cockpit CMS 0 ≤494765e

Affected Packages

euvd cockpit_cms no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Cockpit CMS (agentejo/cockpit) is a PHP-based headless/API-driven content management system that stores collection definitions - including field validation and access 'rules' - as executable PHP. The flaw is a CWE-94 Code Injection: user-supplied rule parameters submitted to save_collection are written verbatim into a server-side PHP file and later loaded with include(), so any PHP syntax in those rules becomes live code at evaluation time. Because rules are meant to be small logic snippets stored as code rather than data, the input is never neutralized before it reaches the PHP interpreter, turning a data-management feature into an arbitrary code execution primitive.

Know when Cockpit gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 8.7 HIGH
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
vuln.today AI 8.8 HIGH

Network-reachable admin endpoint with no user interaction; a low-privilege collection-management account is required (PR:L), and PHP code execution yields full C/I/A impact.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

3
PoC Detected
Apr 29, 2026 - 21:22 vuln.today
Public exploit code
CVSS changed
Apr 29, 2026 - 20:22 NVD
8.8 (HIGH) 8.7 (HIGH)
CVE Published
Apr 29, 2026 - 19:50 nvd
HIGH 8.7

DescriptionCVE.org

Cockpit CMS contains an authenticated remote code execution vulnerability in the /cockpit/collections/save_collection endpoint that allows authenticated attackers with collection management privileges to inject arbitrary PHP code into collection rules parameters. Attackers can inject malicious PHP code through rule parameters which is written directly to server-side PHP files and executed via include() to achieve arbitrary command execution on the underlying server.

Executive ViewAI

Why It Matters

Cockpit CMS vulnerability allows authenticated users with collection-management privileges to execute arbitrary code on production servers, enabling data theft, service disruption, and potential lateral movement. Organizations face immediate risk if collection-management roles are broadly assigned or if user credentials are compromised. Urgent privilege review and access restrictions are required until the vendor releases a patch.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: (1) Enforce strict role-based access control-limit collection-management privilege to two or fewer senior administrators; (2) Implement WAF rules to block requests containing PHP code patterns in the rule parameter; (3) Enable verbose application logging on all collection save operations for forensic review; (4) Run CMS application server in a container or VM with restricted OS privileges to limit command execution impact; (5) Segment CMS infrastructure to isolate it from sensitive internal systems.

Threat Intelligence Overview

EPSS Score
0.4%
Top 40% exploitable
Prevalence
Low
niche open-source headless CMS, limited enterprise footprint
Exploit
POC
Public exploit code exists
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC Yes
EPSS 0.4%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

64
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Code Injection CRITICAL

Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

CVE-2020-35847 CRITICAL POC
9.8 Dec 30

Agentejo Cockpit before 0.11.2 allows NoSQL injection via the Controller/Auth.php resetpassword function. Rated critical

CVE-2020-35846 CRITICAL POC
9.8 Dec 30

Agentejo Cockpit before 0.11.2 allows NoSQL injection via the Controller/Auth.php check function. Rated critical severit

CVE-2022-2713 CRITICAL POC
9.8 Aug 08

Insufficient Session Expiration in GitHub repository cockpit-hq/cockpit prior to 2.2.0. Rated critical severity (CVSS 9.

CVE-2020-35848 CRITICAL POC
9.8 Dec 30

Agentejo Cockpit before 0.11.2 allows NoSQL injection via the Controller/Auth.php newpassword function. Rated critical s

CVE-2018-15540 CRITICAL POC
9.8 Oct 15

Agentejo Cockpit performs actions on files without appropriate validation and therefore allows an attacker to traverse t

CVE-2018-9302 CRITICAL POC
9.1 May 02

SSRF (Server Side Request Forgery) in /assets/lib/fuc.js.php in Cockpit 0.4.4 through 0.5.5 allows remote attackers to r

CVE-2023-4195 HIGH POC
8.8 Aug 06

PHP Remote File Inclusion in GitHub repository cockpit-hq/cockpit prior to 2.6.3. Rated high severity (CVSS 8.8), this v

CVE-2023-37650 HIGH POC
8.8 Jul 20

A Cross-Site Request Forgery (CSRF) in the Admin portal of Cockpit CMS v2.5.2 allows attackers to execute arbitrary Admi

CVE-2023-1313 HIGH POC
8.8 Mar 10

Unrestricted Upload of File with Dangerous Type in GitHub repository cockpit-hq/cockpit prior to 2.4.1. Rated high sever

CVE-2023-0759 HIGH POC
8.8 Feb 09

Privilege Chaining in GitHub repository cockpit-hq/cockpit prior to 2.3.8. Rated high severity (CVSS 8.8), this vulnerab

CVE-2022-2818 HIGH POC
8.8 Aug 15

Improper Removal of Sensitive Information Before Storage or Transfer in GitHub repository cockpit-hq/cockpit prior to 2.

CVE-2026-58467 HIGH POC
8.2 Jul 02

Arbitrary file disclosure and PHP local file inclusion in Cockpit CMS before release 364 lets unauthenticated remote att

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy