CVE-2026-34965
Cockpit CMS Authenticated Remote Code Execution via Collections
- State
- Published
- Severity
- 8.7 High
- Published
- Apr 29, 2026
- Updated
- Jul 14, 2026
- Reserved
- Mar 31, 2026
Description
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.
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 4.0 | 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 | VulnCheck |
| 3.1 | 8.8 High | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H | VulnCheck |
Weaknesses
- CWE-94 Improper Control of Generation of Code ('Code Injection')
Affected Products
| Product | Versions |
|---|---|
Cockpit CMSCockpit |
|
References
- https://github.com/agentejo/cockpitproduct
- https://gist.github.com/thepiyushkumarshukla/64d2318518b17f529bc3ccb11fd5be90exploittechnical-description
- https://github.com/agentejo/cockpit/commits/494765e4f0fb9484f320aee0c6ee889b6fa789b9third-party-advisory
- https://www.vulncheck.com/advisories/cockpit-cms-authenticated-remote-code-execution-via-collectionsthird-party-advisory
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.