CVEfocus › CVE database › CVE-2024-2947

CVE-2024-2947Cockpit: command injection when deleting a sosreport with a crafted name

CVSS 7.3 HighEPSS 1.8% (higher than 79% of CVEs)Published 2024-03-28Updated 2026-11-24Assigner: redhat

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.

CWE-77

What to do

Fixed builds are available from AlmaLinux, Debian, Red Hat, Rocky Linux: see the table below for the fixed version per release.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

30Fixed
17Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 24.04cockpitNot affected
vulnerable_code_not_present
Ubuntu 22.04cockpitNot affected
vulnerable_code_not_present
Ubuntu 20.04cockpitNot affected
vulnerable_code_not_present
Debian 14cockpitFixed314-1DEBIAN-CVE-2024-2947
Debian 13cockpitFixed314-1DEBIAN-CVE-2024-2947
Debian 12cockpitFixed287.1-0+deb12u1DEBIAN-CVE-2024-2947
Red Hat Enterprise Linux 10cockpitNot affected
Red Hat Enterprise Linux 10cockpit-bridgeNot affected
Red Hat Enterprise Linux 10cockpit-docNot affected
Red Hat Enterprise Linux 10cockpit-packagekitNot affected
Red Hat Enterprise Linux 10cockpit-storagedNot affected
Red Hat Enterprise Linux 10cockpit-systemNot affected
Red Hat Enterprise Linux 10cockpit-wsNot affected
Red Hat Enterprise Linux 10cockpit-ws-selinuxNot affected
Red Hat Enterprise Linux 9cockpitFixed0:311.2-1.el9_4RHSA-2024:3843
Red Hat Enterprise Linux 9cockpit-bridgeFixed0:311.2-1.el9_4RHSA-2024:3843
Red Hat Enterprise Linux 9cockpit-docFixed0:311.2-1.el9_4RHSA-2024:3843
Red Hat Enterprise Linux 9cockpit-packagekitFixed0:311.2-1.el9_4RHSA-2024:3843
Red Hat Enterprise Linux 9cockpit-pcpFixed0:311.2-1.el9_4RHSA-2024:3843
Red Hat Enterprise Linux 9cockpit-storagedFixed0:311.2-1.el9_4RHSA-2024:3843
Red Hat Enterprise Linux 9cockpit-systemFixed0:311.2-1.el9_4RHSA-2024:3843
Red Hat Enterprise Linux 9cockpit-wsFixed0:311.2-1.el9_4RHSA-2024:3843
Red Hat Enterprise Linux 8cockpitFixed0:310.4-1.el8_10RHSA-2024:3667
Red Hat Enterprise Linux 8cockpit-bridgeFixed0:310.4-1.el8_10RHSA-2024:3667
Red Hat Enterprise Linux 8cockpit-docFixed0:310.4-1.el8_10RHSA-2024:3667
Red Hat Enterprise Linux 8cockpit-systemFixed0:310.4-1.el8_10RHSA-2024:3667
Red Hat Enterprise Linux 8cockpit-wsFixed0:310.4-1.el8_10RHSA-2024:3667
Red Hat Enterprise Linux 7cockpitNot affected
Red Hat Enterprise Linux 7cockpit-bridgeNot affected
Red Hat Enterprise Linux 7cockpit-docNot affected
Red Hat Enterprise Linux 7cockpit-machines-ovirtNot affected
Red Hat Enterprise Linux 7cockpit-systemNot affected
Red Hat Enterprise Linux 7cockpit-wsNot affected
AlmaLinux 9cockpitFixed311.2-1.el9_4ALSA-2024:3843
AlmaLinux 9cockpit-bridgeFixed311.2-1.el9_4ALSA-2024:3843
AlmaLinux 9cockpit-docFixed311.2-1.el9_4ALSA-2024:3843
AlmaLinux 9cockpit-packagekitFixed311.2-1.el9_4ALSA-2024:3843
AlmaLinux 9cockpit-pcpFixed311.2-1.el9_4ALSA-2024:3843
AlmaLinux 9cockpit-storagedFixed311.2-1.el9_4ALSA-2024:3843
AlmaLinux 9cockpit-systemFixed311.2-1.el9_4ALSA-2024:3843
AlmaLinux 9cockpit-wsFixed311.2-1.el9_4ALSA-2024:3843
AlmaLinux 8cockpitFixed310.4-1.el8_10ALSA-2024:3667
AlmaLinux 8cockpit-bridgeFixed310.4-1.el8_10ALSA-2024:3667
AlmaLinux 8cockpit-docFixed310.4-1.el8_10ALSA-2024:3667
AlmaLinux 8cockpit-systemFixed310.4-1.el8_10ALSA-2024:3667
AlmaLinux 8cockpit-wsFixed310.4-1.el8_10ALSA-2024:3667
Rocky Linux 8cockpitFixed0:310.4-1.el8_10RLSA-2024:3667

What the vendor says

As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Workaround: Do not remove SOS reports with strange names from the Cockpit web interface.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.