CVE-2024-2947
High · 7.3CVSS
7.3
EPSS
1.2%
Published
Mar 28, 2024
CISA due date
—
Cloudanix analysis
A bug in the server admin tool lets someone delete a support report with a tricky name that secretly runs extra commands, giving them more control over the machine.
- Exploitation
- Requires User Interaction
- Attacker needs
- Low Privilege
- Complexity
- Moderate
- Impact
- Full Compromise
- Component
- Application
- Class
- Command Injection
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Deleting a sosreport with a crafted name via the Cockpit web interface triggers command injection, allowing execution of arbitrary commands and resulting in privilege escalation.
Why it matters to the business
Attackers can gain elevated system privileges, risking full server compromise, data exposure, and operational disruption; low EPSS and no KEV listing reduce immediate urgency but the 930-day exposure window warrants prompt attention.
How an attack unfolds
An attacker with local access and Cockpit web interface credentials crafts a sosreport filename containing shell metacharacters. When an administrator deletes the report through the interface, the unsanitized name is passed to a shell command, executing the attacker's payload for escalation.
How to fix it
Update Cockpit to a version that properly sanitizes sosreport names before shell operations; no fixed version is listed in the provided data.
How to confirm the fix worked
Review Cockpit source or changelog for input sanitization on sosreport deletion paths; test by attempting deletion of a report with a name containing benign command syntax and confirming no execution occurs.
Typical attack path
- Obtain local user access and Cockpit web credentials
- Create a sosreport using a filename embedding shell commands
- Trigger deletion of the crafted sosreport via the web interface
- Inject and execute commands to escalate privileges
How to detect it
Examine Cockpit and system logs for sosreport deletion operations involving filenames with shell metacharacters or unexpected command patterns; correlate with privilege changes or new process spawns immediately after deletion events.
What your security team should do
- Prioritize patching Cockpit instances to eliminate the command injection vector
- Audit logs for historical sosreport deletion events with anomalous filenames
- Restrict Cockpit web access to trusted networks and enforce least-privilege accounts
The record
A flaw was found in Cockpit. Deleting a sosreport with a crafted name via the Cockpit web interface can lead to a command injection vulnerability, resulting in privilege escalation. This issue affects Cockpit versions 270 and newer.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| AlmaLinux:8 | cockpit | 0 | 310.4-1.el8_10 |
| AlmaLinux:8 | cockpit-bridge | 0 | 310.4-1.el8_10 |
| AlmaLinux:8 | cockpit-doc | 0 | 310.4-1.el8_10 |
| AlmaLinux:8 | cockpit-system | 0 | 310.4-1.el8_10 |
| AlmaLinux:8 | cockpit-ws | 0 | 310.4-1.el8_10 |
| AlmaLinux:9 | cockpit | 0 | 311.2-1.el9_4 |
| AlmaLinux:9 | cockpit-bridge | 0 | 311.2-1.el9_4 |
| AlmaLinux:9 | cockpit-doc | 0 | 311.2-1.el9_4 |
| AlmaLinux:9 | cockpit-packagekit | 0 | 311.2-1.el9_4 |
| AlmaLinux:9 | cockpit-pcp | 0 | 311.2-1.el9_4 |
| AlmaLinux:9 | cockpit-storaged | 0 | 311.2-1.el9_4 |
| AlmaLinux:9 | cockpit-system | 0 | 311.2-1.el9_4 |
| AlmaLinux:9 | cockpit-ws | 0 | 311.2-1.el9_4 |
| Debian:12 | cockpit | 0 | 287.1-0+deb12u1 |
| Debian:13 | cockpit | 0 | 314-1 |
| Red Hat:enterprise_linux:8::baseos | cockpit | 0 | 0:310.4-1.el8_10 |
| Red Hat:enterprise_linux:8::baseos | cockpit-bridge | 0 | 0:310.4-1.el8_10 |
| Red Hat:enterprise_linux:8::baseos | cockpit-debuginfo | 0 | 0:310.4-1.el8_10 |
| Red Hat:enterprise_linux:8::baseos | cockpit-debugsource | 0 | 0:310.4-1.el8_10 |
| Red Hat:enterprise_linux:8::baseos | cockpit-doc | 0 | 0:310.4-1.el8_10 |
| Red Hat:enterprise_linux:8::baseos | cockpit-system | 0 | 0:310.4-1.el8_10 |
| Red Hat:enterprise_linux:8::baseos | cockpit-ws | 0 | 0:310.4-1.el8_10 |
| Red Hat:enterprise_linux:9::appstream | cockpit | 0 | 0:311.2-1.el9_4 |
| Red Hat:enterprise_linux:9::appstream | cockpit-bridge | 0 | 0:311.2-1.el9_4 |
| Red Hat:enterprise_linux:9::appstream | cockpit-debuginfo | 0 | 0:311.2-1.el9_4 |
| Red Hat:enterprise_linux:9::appstream | cockpit-debugsource | 0 | 0:311.2-1.el9_4 |
| Red Hat:enterprise_linux:9::appstream | cockpit-doc | 0 | 0:311.2-1.el9_4 |
| Red Hat:enterprise_linux:9::appstream | cockpit-packagekit | 0 | 0:311.2-1.el9_4 |
| Red Hat:enterprise_linux:9::appstream | cockpit-pcp | 0 | 0:311.2-1.el9_4 |
| Red Hat:enterprise_linux:9::appstream | cockpit-storaged | 0 | 0:311.2-1.el9_4 |
| Red Hat:enterprise_linux:9::appstream | cockpit-system | 0 | 0:311.2-1.el9_4 |
| Red Hat:enterprise_linux:9::appstream | cockpit-ws | 0 | 0:311.2-1.el9_4 |
| Red Hat:enterprise_linux:9::baseos | cockpit | 0 | 0:311.2-1.el9_4 |
| Red Hat:enterprise_linux:9::baseos | cockpit-bridge | 0 | 0:311.2-1.el9_4 |
| Red Hat:enterprise_linux:9::baseos | cockpit-debuginfo | 0 | 0:311.2-1.el9_4 |
| Red Hat:enterprise_linux:9::baseos | cockpit-debugsource | 0 | 0:311.2-1.el9_4 |
| Red Hat:enterprise_linux:9::baseos | cockpit-doc | 0 | 0:311.2-1.el9_4 |
| Red Hat:enterprise_linux:9::baseos | cockpit-packagekit | 0 | 0:311.2-1.el9_4 |
| Red Hat:enterprise_linux:9::baseos | cockpit-pcp | 0 | 0:311.2-1.el9_4 |
| Red Hat:enterprise_linux:9::baseos | cockpit-storaged | 0 | 0:311.2-1.el9_4 |
| Red Hat:enterprise_linux:9::baseos | cockpit-system | 0 | 0:311.2-1.el9_4 |
| Red Hat:enterprise_linux:9::baseos | cockpit-ws | 0 | 0:311.2-1.el9_4 |
| Rocky Linux:8 | cockpit | 0 | 0:310.4-1.el8_10 |
| Ubuntu:20.04:LTS | cockpit | 0 | No fix |
| Ubuntu:22.04:LTS | cockpit | 0 | No fix |
| Ubuntu:24.04:LTS | cockpit | 0 | No fix |
| Ubuntu:24.10 | cockpit | 0 | 314-1 |
| Ubuntu:Pro:18.04:LTS | cockpit | 0 | No fix |
Related vulnerabilities
- CVE-2024-6126 A flaw was found in the cockpit package. Also affects cockpit
- CVE-2026-114575 A flaw has been found in TOTOLINK A950RG 4.1.2cu.5268_B20221104. CWE-77
- CVE-2026-112942 launch-editor allows users to open files with line numbers in editor from Node.js. CWE-77
- CVE-2026-55453 OpenPrinting CUPS is an open source printing system for Linux and other Unix-like… CWE-77
- CVE-2026-102827 simple-git, an interface for running git commands in any node.js application, enables… CWE-77
- CVE-2026-102826 simple-git, an interface for running git commands in any node.js application, enables… CWE-77
- CVE-2026-79945 Dell SCG 5.0 Appliance versions prior to 5.36.00.16 and Dell SCG 5.0 Application versions… CWE-77
- CVE-2026-79741 Dell SCG 5.0 Appliance versions prior to 5.36.00.16 and Dell SCG 5.0 Application versions… CWE-77