CVEfocus › CVE database › CVE-2024-6126

CVE-2024-6126Cockpit: authenticated user can kill any process when enabling pam_env's user_readenv…

CVSS 3.2 LowEPSS 0.3% (higher than 15% of CVEs)Published 2024-07-03Updated 2026-11-25Assigner: redhat

A flaw was found in the cockpit package. This flaw allows an authenticated user to kill any process when enabling the pam_env's user_readenv option, which leads to a denial of service (DoS) attack.

CWE-400

What to do

Fixed builds are available from AlmaLinux, Debian, Red Hat, Rocky Linux: see the table below for the fixed version per release.

Red Hat, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

20Fixed
9Fix pending
6Will not fix
10Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04cockpitNot affected
vulnerable_code_not_present
Ubuntu 25.10cockpitNot affected
vulnerable_code_not_present
Ubuntu 24.04cockpitFix pendingUBUNTU-CVE-2024-6126
Ubuntu 22.04cockpitFix pendingUBUNTU-CVE-2024-6126
Ubuntu 20.04cockpitFix pendingUBUNTU-CVE-2024-6126
Ubuntu 18.04cockpitFix pendingUBUNTU-CVE-2024-6126
Debian 14cockpitFixed320-1DEBIAN-CVE-2024-6126
Debian 13cockpitFixed320-1DEBIAN-CVE-2024-6126
Debian 12cockpitFixed287.1-0+deb12u3DEBIAN-CVE-2024-6126
Red Hat Enterprise Linux 10cockpitNot affected
Red Hat Enterprise Linux 10cockpit-bridgeNot affected
Red Hat Enterprise Linux 10cockpit-docNot affected
Red Hat Enterprise Linux 10cockpit-packagekitNot affected
Red Hat Enterprise Linux 10cockpit-storagedNot affected
Red Hat Enterprise Linux 10cockpit-systemNot affected
Red Hat Enterprise Linux 10cockpit-wsNot affected
Red Hat Enterprise Linux 10cockpit-ws-selinuxNot affected
Red Hat Enterprise Linux 9cockpitFixed0:323.1-1.el9_5RHSA-2024:9325
Red Hat Enterprise Linux 9cockpit-bridgeFixed0:323.1-1.el9_5RHSA-2024:9325
Red Hat Enterprise Linux 9cockpit-docFixed0:323.1-1.el9_5RHSA-2024:9325
Red Hat Enterprise Linux 9cockpit-packagekitFixed0:323.1-1.el9_5RHSA-2024:9325
Red Hat Enterprise Linux 9cockpit-pcpFixed0:323.1-1.el9_5RHSA-2024:9325
Red Hat Enterprise Linux 9cockpit-storagedFixed0:323.1-1.el9_5RHSA-2024:9325
Red Hat Enterprise Linux 9cockpit-systemFixed0:323.1-1.el9_5RHSA-2024:9325
Red Hat Enterprise Linux 9cockpit-wsFixed0:323.1-1.el9_5RHSA-2024:9325
Red Hat Enterprise Linux 8cockpitFix pending
Fix deferred
Red Hat Enterprise Linux 8cockpit-bridgeFix pending
Fix deferred
Red Hat Enterprise Linux 8cockpit-docFix pending
Fix deferred
Red Hat Enterprise Linux 8cockpit-systemFix pending
Fix deferred
Red Hat Enterprise Linux 8cockpit-wsFix pending
Fix deferred
Red Hat Enterprise Linux 7cockpitWill not fix
Out of support scope
Red Hat Enterprise Linux 7cockpit-bridgeWill not fix
Out of support scope
Red Hat Enterprise Linux 7cockpit-docWill not fix
Out of support scope
Red Hat Enterprise Linux 7cockpit-machines-ovirtWill not fix
Out of support scope
Red Hat Enterprise Linux 7cockpit-systemWill not fix
Out of support scope
Red Hat Enterprise Linux 7cockpit-wsWill not fix
Out of support scope
AlmaLinux 9cockpitFixed323.1-1.el9_5ALSA-2024:9325
AlmaLinux 9cockpit-bridgeFixed323.1-1.el9_5ALSA-2024:9325
AlmaLinux 9cockpit-docFixed323.1-1.el9_5ALSA-2024:9325
AlmaLinux 9cockpit-packagekitFixed323.1-1.el9_5ALSA-2024:9325
AlmaLinux 9cockpit-pcpFixed323.1-1.el9_5ALSA-2024:9325
AlmaLinux 9cockpit-storagedFixed323.1-1.el9_5ALSA-2024:9325
AlmaLinux 9cockpit-systemFixed323.1-1.el9_5ALSA-2024:9325
AlmaLinux 9cockpit-wsFixed323.1-1.el9_5ALSA-2024:9325
Rocky Linux 9cockpitFixed0:323.1-1.el9_5RLSA-2024:9325

What the vendor says

As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Workaround: Disable pam_env's `user_readenv` option in PAM config.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.