cve.bz

CVE-2024-2947

7.3 highEPSS 1.2%Fix available

High (7.3). EPSS 1.2% estimated probability of exploitation activity in the next 30 days.

On this page
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

CVSS 3.1

7.3 high
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
EPSS
1.2% (unchanged from 1.2% a week ago; 1.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 69th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2024-08-01. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-77 Improper Neutralization of Special Elements used in a Command
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

  • Red Hat Red Hat Enterprise Linux 8: fixed in 0:310.4-1.el8_10
  • Red Hat Red Hat Enterprise Linux 9: fixed in 0:311.2-1.el9_4
  • Debian, Red Hat, AlmaLinux, Rocky Linux: fixed package versions per release

Ask an AI about this CVE

Show the promptExplain CVE-2024-2947 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-2947?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-2947?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2024-2947 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Versions

From the CNA's record in the CVE List.

Fixed in

ProductFixed in
Red Hat Enterprise Linux 80:310.4-1.el8_10
Red Hat Enterprise Linux 90:311.2-1.el9_4

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12cockpit287.1-0+deb12u1DEBIAN-CVE-2024-2947 DSA-5655-1
Debian13, 14cockpit314-1DEBIAN-CVE-2024-2947
Red Hatenterprise_linux:8::baseoscockpit, cockpit-ws, cockpit-doc and 4 more0:310.4-1.el8_10RHSA-2024:3667
Red Hatenterprise_linux:9::appstreamcockpit-pcp, cockpit-storaged, cockpit-debuginfo and 2 more0:311.2-1.el9_4RHSA-2024:3843
Red Hatenterprise_linux:9::baseoscockpit, cockpit-ws, cockpit-doc and 4 more0:311.2-1.el9_4RHSA-2024:3843
AlmaLinux8cockpit, cockpit-ws, cockpit-doc and 2 more310.4-1.el8_10ALSA-2024:3667
AlmaLinux9cockpit, cockpit-ws, cockpit-doc and 5 more311.2-1.el9_4ALSA-2024:3843
Rocky Linux8cockpit0:310.4-1.el8_10RLSA-2024:3667

From the distributions' data via OSV.dev: the Debian Security Tracker; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Red Hat.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

The Cockpit package, as shipped in Red Hat Enterprise Linux 7, 8.2, 8.4, and 8.6, is not affected by this vulnerability because the vulnerable code was introduced in a newer version of Cockpit.

Red Hat's mitigation

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

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8cockpit-0:310.4-1.el8_10Fixed 2024-06-06RHSA-2024:3667
Red Hat Enterprise Linux 9cockpit-0:311.2-1.el9_4Fixed 2024-06-11RHSA-2024:3843
Red Hat Enterprise Linux 10cockpitNot affected
Red Hat Enterprise Linux 7cockpitNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2024-2947.

Attack patterns (CAPEC)

  • CAPEC-15 Command Delimiters Likelihood: High · Severity: High
  • CAPEC-40 Manipulating Writeable Terminal Devices Likelihood: High · Severity: Very High
  • CAPEC-43 Exploiting Multiple Input Interpretation Layers Likelihood: Medium · Severity: High
  • CAPEC-75 Manipulating Writeable Configuration Files Likelihood: High · Severity: Very High
  • CAPEC-76 Manipulating Web Input to File System Calls Likelihood: High · Severity: Very High
  • CAPEC-136 LDAP Injection Likelihood: High · Severity: High
  • CAPEC-183 IMAP/SMTP Command Injection Severity: Medium
  • CAPEC-248 Command Injection Likelihood: Medium · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON