---
id: CVE-2024-2947
title: 'Cockpit: command injection when deleting a sosreport with a crafted name'
summary: >-
  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.
severity: high
cvss: 7.3
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H'
cvssSource: cna
cwe:
  - CWE-77
vendor: Red Hat
product: cockpit
affected:
  - cockpit >= 270 < *
  - cockpit (all versions)
  - cockpit (all versions)
  - cockpit (all versions)
  - cockpit
  - cockpit
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: total
  timestamp: '2024-08-01T17:32:00.346165Z'
published: '2024-03-28'
updated: '2026-11-05'
sourceUpdated: '2026-11-05T12:17:54.091Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2024-2947'
references:
  - url: 'https://access.redhat.com/errata/RHSA-2024:3667'
    label: 'RHSA-2024:3667'
  - url: 'https://access.redhat.com/errata/RHSA-2024:3843'
    label: 'RHSA-2024:3843'
  - url: 'https://access.redhat.com/security/cve/CVE-2024-2947'
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2271614'
    label: RHBZ#2271614
tags:
  - cve.org
epss: 0.01181
epssPercentile: 0.67873
ingestedAt: '2026-11-05T21:36:00.833Z'
---

## Overview

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

- `cockpit >= 270 < *`
- `cockpit (all versions)`
- `cockpit (all versions)`
- `cockpit (all versions)`
- `cockpit`
- `cockpit`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.

### Workarounds

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