Vulnerability · Published Mar 28, 2024 · Assigned by redhat

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

High 7.3

In plain English

A high-severity command injection in cockpit. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.2% (higher than 68% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.3High
Exploit odds (30 days)1.2%top 32.1% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

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 & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:8cockpit310.4-1.el8_10ALSA-2024:3667
AlmaLinux:9cockpit311.2-1.el9_4ALSA-2024:3843
AlmaLinux:8cockpit-bridge310.4-1.el8_10ALSA-2024:3667
AlmaLinux:9cockpit-bridge311.2-1.el9_4ALSA-2024:3843
AlmaLinux:8cockpit-doc310.4-1.el8_10ALSA-2024:3667
AlmaLinux:9cockpit-doc311.2-1.el9_4ALSA-2024:3843
AlmaLinux:9cockpit-packagekit311.2-1.el9_4ALSA-2024:3843
AlmaLinux:9cockpit-pcp311.2-1.el9_4ALSA-2024:3843
AlmaLinux:9cockpit-storaged311.2-1.el9_4ALSA-2024:3843
AlmaLinux:8cockpit-system310.4-1.el8_10ALSA-2024:3667
AlmaLinux:9cockpit-system311.2-1.el9_4ALSA-2024:3843
AlmaLinux:8cockpit-ws310.4-1.el8_10ALSA-2024:3667
AlmaLinux:9cockpit-ws311.2-1.el9_4ALSA-2024:3843
Debian:12cockpit287.1-0+deb12u1DEBIAN-CVE-2024-2947
Debian:12cockpit287.1-0+deb12u1DSA-5655-1
Debian:13cockpit314-1DEBIAN-CVE-2024-2947
Debian:14cockpit314-1DEBIAN-CVE-2024-2947
Rocky Linux:8cockpit0:310.4-1.el8_10RLSA-2024:3667

Affected products (as reported)

VendorProductVersions
cockpit 270 – before *
Red Hat Red Hat Enterprise Linux 8 see references
Red Hat Red Hat Enterprise Linux 9 see references
Red Hat Red Hat Enterprise Linux 9 see references
Red Hat Red Hat Enterprise Linux 10 see references
Red Hat Red Hat Enterprise Linux 7 see references

Weakness: CWE-77 · Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H

References