Cloudanix VulnDB

CVE-2024-2947

High · 7.3

CVSS

7.3

EPSS

1.2%

Published

Mar 28, 2024

CISA due date

—

Cloudanix analysis

Monitor only SSVC: Track

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

  1. Obtain local user access and Cockpit web credentials
  2. Create a sosreport using a filename embedding shell commands
  3. Trigger deletion of the crafted sosreport via the web interface
  4. 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