CVE-2024-2947: Cockpit: command injection when deleting a sosreport with a crafted name
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.
Reference: https://github.com/cockpit-project/cockpit/commit/ee8f946df39779ee37071006d1d4826317f25c9a
Upstream patch: https://github.com/cockpit-project/cockpit/commit/9c4cc9b6df632082538b53bdc8ee9ec1c5cad4da
Other sources
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.
— NVD
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
redhat/cockpitto a version that resolves this vulnerability.Fixed in 314 - Upgrade
Upgrade
debian/cockpitto a version that resolves this vulnerability.Fixed in 287.1-0+deb12u1 - Upgrade
Upgrade
debian/cockpitto a version that resolves this vulnerability.Fixed in 314-1 - Upgrade
Upgrade
debian/cockpitto a version that resolves this vulnerability.Fixed in 287.1-0+deb12u1Fixed in 314-1 - Upgrade
Upgrade
Cockpitto a version that resolves this vulnerability.Patch 9c4cc9b6df632082538b53bdc8ee9ec1c5cad4da - Upgrade
Upgrade
Cockpitto a version that resolves this vulnerability.Patch ee8f946df39779ee37071006d1d4826317f25c9a
Event History
Frequently Asked Questions
What is the severity of CVE-2024-2947?
CVE-2024-2947 is classified as a critical vulnerability due to its potential for privilege escalation through command injection.
How do I fix CVE-2024-2947?
To mitigate CVE-2024-2947, upgrade the Cockpit version to 314 or later.
Which software is affected by CVE-2024-2947?
CVE-2024-2947 affects the Cockpit software version up to 314 from Red Hat.
What kind of vulnerability is CVE-2024-2947?
CVE-2024-2947 is a command injection vulnerability that arises when deleting a sosreport via the Cockpit web interface.
Can CVE-2024-2947 lead to data breaches?
Yes, CVE-2024-2947 can lead to unauthorized access and potential data breaches through privilege escalation.