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

Published Mar 26, 2024
·
Updated

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

5 affected componentsFixes available
redhat/cockpit<314
314
debian/cockpit<287.1-0+deb12u1
287.1-0+deb12u1
debian/cockpit<314-1
314-1
debian/cockpit<314-1
314-1
debian/cockpit
287.1-0+deb12u1314-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade redhat/cockpit to a version that resolves this vulnerability.

    Fixed in 314
  2. Upgrade

    Upgrade debian/cockpit to a version that resolves this vulnerability.

    Fixed in 287.1-0+deb12u1
  3. Upgrade

    Upgrade debian/cockpit to a version that resolves this vulnerability.

    Fixed in 314-1
  4. Upgrade

    Upgrade debian/cockpit to a version that resolves this vulnerability.

    Fixed in 287.1-0+deb12u1Fixed in 314-1
  5. Upgrade

    Upgrade Cockpit to a version that resolves this vulnerability.

    Patch 9c4cc9b6df632082538b53bdc8ee9ec1c5cad4da
  6. Upgrade

    Upgrade Cockpit to a version that resolves this vulnerability.

    Patch ee8f946df39779ee37071006d1d4826317f25c9a

Event History

Mar 26, 2024
Data Sourced
via Red Hat·02:25 PM
DescriptionSeverityAffected Software
Mar 28, 2024
CVE Published
via MITRE·06:31 PM
Data Sourced
via MITRE·06:31 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·07:15 PM
DescriptionSeverityWeakness
Data Sourced
via OSV·07:15 PM
DescriptionSeverityAffected Software
Sep 28, 2026
Event
via FIRST·12:00 AM

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

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.

2

How do I fix CVE-2024-2947?

To mitigate CVE-2024-2947, upgrade the Cockpit version to 314 or later.

3

Which software is affected by CVE-2024-2947?

CVE-2024-2947 affects the Cockpit software version up to 314 from Red Hat.

4

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.

5

Can CVE-2024-2947 lead to data breaches?

Yes, CVE-2024-2947 can lead to unauthorized access and potential data breaches through privilege escalation.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203