CVE-2024-6126
Cockpit: authenticated user can kill any process when enabling pam_env's user_readenv option
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.
Attack profile
How easy it is to exploit
- Attack vector
- Local
- Complexity
- Low
- Privileges needed
- Low
- User interaction
- Required
What an attacker can affect
- Confidentiality
- None
- Integrity
- None
- Availability
- Low
Exploit likelihood
What each source reports
CVE List Score used
3.2
Cockpit: authenticated user can kill any process when enabling pam_env's user_readenv option
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.
- Record
CVE-2024-6126- CVSS 3.1
- 3.2 Low
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:N/I:N/A:L - Weakness
- CWE-400
- Updated
- 2026-11-02
EUVDEUVD-2024-47977
3.2
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.
- Record
EUVD-2024-47977- CVSS 3.1
- 3.2 Low
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:N/I:N/A:L - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-g6h4-j28x-38g5
3.2
A flaw was found in the cockpit package. This flaw allows an authenticated user to kill any...
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.
- Record
GHSA-g6h4-j28x-38g5- CVSS 3.1
- 3.2 Low
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:N/I:N/A:L - Weakness
- CWE-400
- Updated
- 2026-11-02
NVD
3.2
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.
- Record
CVE-2024-6126- CVSS 3.1
- 3.2 Low
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:N/I:N/A:L - Weakness
- CWE-400
- Updated
- 2026-11-02
OSVDEBIAN-CVE-2024-6126
3.2
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.
- Record
DEBIAN-CVE-2024-6126- CVSS 3.1
- 3.2 Low
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:N/I:N/A:L - Updated
- 2026-11-02
OSVOESA-2024-1842
3.2
cockpit security update
Cockpit makes GNU/Linux discoverable. See Linux server in a web browser and perform system tasks with a mouse. It’s easy to start containers, administer storage, configure networks, and inspect logs with this package.
Security Fix(es):
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.(CVE-2024-6126)
- Record
OESA-2024-1842- CVSS 3.1
- 3.2 Low
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:N/I:N/A:L - Updated
- 2026-11-02
Show 14 moreShow less
OSVRHSA-2024:9325
3.2
Red Hat Security Advisory: cockpit security update
- Record
RHSA-2024:9325- CVSS 3.1
- 3.2 Low
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:N/I:N/A:L - Updated
- 2026-11-02
OSVUBUNTU-CVE-2024-6126
3.2
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.
- Record
UBUNTU-CVE-2024-6126- CVSS 3.1
- 3.2 Low
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:N/I:N/A:L - Updated
- 2026-11-02
OSVALSA-2024:9325 No score
Low: cockpit security update
Cockpit enables users to administer GNU/Linux servers using a web browser. It offers network configuration, log inspection, diagnostic reports, SELinux troubleshooting, interactive command-line sessions, and more.
Security Fix(es):
- cockpit: Authenticated user can kill any process when enabling pam_env's user_readenv option (CVE-2024-6126)
For more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.
Additional Changes:
For detailed information on changes in this release, see the AlmaLinux Release Notes linked from the References section.
- Record
ALSA-2024:9325- Updated
- 2026-11-02
OSVCLSA-2026-1781091230 No score
cockpit: Fix of 2 CVEs
-
CVE-2026-4802: fix shell command injection via boot descriptor query string in the system logs page by quoting journalctl arguments using shlex-style single- quote escaping
-
CVE-2024-6126: fix insecure killing of session ssh-agent; include upstream follow-up commit for proper strtoul() error handling when parsing SSH_AGENT_PID
- Record
CLSA-2026-1781091230- Updated
- 2026-11-02
OSV No score
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.
- Record
CVE-2024-6126- Updated
- 2026-11-02
OSVMGASA-2025-0181 No score
Updated cockpit packages fix security vulnerability & bug
Mageia's internal bug: In the current version you can't login in the web interface with firefox or chromium-browser packaged by Mageia. This update fixes the issue, but it is reported that could need to reboot and clear cookies from your browser. 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 - CVE-2024-6126. Please note that you need to edit /etc/nsswitch.conf as recommended in https://bugs.mageia.org/show_bug.cgi?id=33368#c18.
- Record
MGASA-2025-0181- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:0206-1 No score
Security update for cockpit
This update for cockpit fixes the following issues:
-
new version 320:
- pam-ssh-add: Fix insecure killing of session ssh-agent (boo#1226040, CVE-2024-6126)
-
changes in older versions:
- Storage: Btrfs snapshots
- Podman: Add image pull action
- Files: Bookmark support
- webserver: System user changes
- Metrics: Grafana setup now prefers Valkey
-
Invalid json against the storaged manifest boo#1227299
- Record
openSUSE-SU-2024:0206-1- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:14096-1 No score
cockpit-320-1.1 on GA media
These are all security issues fixed in the cockpit-320-1.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:14096-1- Updated
- 2026-11-02
OSVRLSA-2024:9325 No score
Low: cockpit security update
Cockpit enables users to administer GNU/Linux servers using a web browser. It offers network configuration, log inspection, diagnostic reports, SELinux troubleshooting, interactive command-line sessions, and more.
Security Fix(es):
- cockpit: Authenticated user can kill any process when enabling pam_env's user_readenv option (CVE-2024-6126)
For more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.
Additional Changes:
For detailed information on changes in this release, see the Rocky Linux 9.5 Release Notes linked from the References section.
- Record
RLSA-2024:9325- Updated
- 2026-11-02
OSVSUSE-SU-2024:2304-1 No score
Security update for cockpit
This update for cockpit fixes the following issues:
- CVE-2024-6126: Fixed Integer overflow in pam_sm_close_session() (bsc#1226040).
- Record
SUSE-SU-2024:2304-1- Updated
- 2026-11-02
OSVSUSE-SU-2024:2476-1 No score
Security update for cockpit
This update for cockpit fixes the following issues:
- CVE-2024-6126: Fixed Integer overflow in pam_sm_close_session() (bsc#1226040).
- Record
SUSE-SU-2024:2476-1- Updated
- 2026-11-02
OSVSUSE-SU-2024:2477-1 No score
Security update for cockpit
This update for cockpit fixes the following issues:
- CVE-2024-6126: Fixed Integer overflow in pam_sm_close_session() (bsc#1226040).
- Record
SUSE-SU-2024:2477-1- Updated
- 2026-11-02
OSVSUSE-SU-2024:2478-1 No score
Security update for cockpit
This update for cockpit fixes the following issues:
- CVE-2024-6126: Fixed Integer overflow in pam_sm_close_session() (bsc#1226040).
- Record
SUSE-SU-2024:2478-1- Updated
- 2026-11-02
OSVSUSE-SU-2024:2494-1 No score
Security update for cockpit
This update for cockpit fixes the following issues:
- CVE-2024-6126: Fixed Integer overflow in pam_sm_close_session() (bsc#1226040).
- Record
SUSE-SU-2024:2494-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
cockpitAlmaLinux:9 |
before 323.1-1.el9_5 | 323.1-1.el9_5 |
cockpit-bridgeAlmaLinux:9 |
before 323.1-1.el9_5 | 323.1-1.el9_5 |
cockpit-docAlmaLinux:9 |
before 323.1-1.el9_5 | 323.1-1.el9_5 |
cockpit-packagekitAlmaLinux:9 |
before 323.1-1.el9_5 | 323.1-1.el9_5 |
cockpit-pcpAlmaLinux:9 |
before 323.1-1.el9_5 | 323.1-1.el9_5 |
cockpit-storagedAlmaLinux:9 |
before 323.1-1.el9_5 | 323.1-1.el9_5 |
cockpit-systemAlmaLinux:9 |
before 323.1-1.el9_5 | 323.1-1.el9_5 |
cockpit-wsAlmaLinux:9 |
before 323.1-1.el9_5 | 323.1-1.el9_5 |
cockpitTuxCare:AlmaLinux:9.2 |
before 286.2-1.el9_2.tuxcare.els2 | 286.2-1.el9_2.tuxcare.els2 |
cockpit-bridgeTuxCare:AlmaLinux:9.2 |
before 286.2-1.el9_2.tuxcare.els2 | 286.2-1.el9_2.tuxcare.els2 |
Show 41 moreShow less
| Package | Affected | Fixed |
|---|---|---|
cockpit-docTuxCare:AlmaLinux:9.2 |
before 286.2-1.el9_2.tuxcare.els2 | 286.2-1.el9_2.tuxcare.els2 |
cockpit-packagekitTuxCare:AlmaLinux:9.2 |
before 286.2-1.el9_2.tuxcare.els2 | 286.2-1.el9_2.tuxcare.els2 |
cockpit-pcpTuxCare:AlmaLinux:9.2 |
before 286.2-1.el9_2.tuxcare.els2 | 286.2-1.el9_2.tuxcare.els2 |
cockpit-storagedTuxCare:AlmaLinux:9.2 |
before 286.2-1.el9_2.tuxcare.els2 | 286.2-1.el9_2.tuxcare.els2 |
cockpit-systemTuxCare:AlmaLinux:9.2 |
before 286.2-1.el9_2.tuxcare.els2 | 286.2-1.el9_2.tuxcare.els2 |
cockpit-testsTuxCare:AlmaLinux:9.2 |
before 286.2-1.el9_2.tuxcare.els2 | 286.2-1.el9_2.tuxcare.els2 |
cockpit-wsTuxCare:AlmaLinux:9.2 |
before 286.2-1.el9_2.tuxcare.els2 | 286.2-1.el9_2.tuxcare.els2 |
cockpitDebian:12 |
before 287.1-0+deb12u3, plus listed versions 287-1287.1-0+deb12u1287.1-0+deb12u2 |
287.1-0+deb12u3 |
cockpitDebian:13 |
before 320-1 | 320-1 |
cockpitDebian:14 |
before 320-1 | 320-1 |
cockpitMageia:9 |
before 338-1.6.mga9 | 338-1.6.mga9 |
cockpitopenEuler:22.03-LTS-SP3 |
before 178-17.oe2203sp3 | 178-17.oe2203sp3 |
cockpitopenEuler:20.03-LTS-SP4 |
before 178-13.oe2003sp4 | 178-13.oe2003sp4 |
cockpitopenEuler:24.03-LTS |
before 309-2.oe2403 | 309-2.oe2403 |
cockpitopenEuler:22.03-LTS-SP4 |
before 178-17.oe2203sp4 | 178-17.oe2203sp4 |
cockpitopenEuler:22.03-LTS-SP1 |
before 178-17.oe2203sp1 | 178-17.oe2203sp1 |
cockpit-debuginfoRed Hat:enterprise_linux:9::appstream |
before 0:323.1-1.el9_5 | 0:323.1-1.el9_5 |
cockpit-debugsourceRed Hat:enterprise_linux:9::appstream |
before 0:323.1-1.el9_5 | 0:323.1-1.el9_5 |
cockpit-packagekitRed Hat:enterprise_linux:9::appstream |
before 0:323.1-1.el9_5 | 0:323.1-1.el9_5 |
cockpit-pcpRed Hat:enterprise_linux:9::appstream |
before 0:323.1-1.el9_5 | 0:323.1-1.el9_5 |
cockpit-storagedRed Hat:enterprise_linux:9::appstream |
before 0:323.1-1.el9_5 | 0:323.1-1.el9_5 |
cockpitRed Hat:enterprise_linux:9::baseos |
before 0:323.1-1.el9_5 | 0:323.1-1.el9_5 |
cockpit-bridgeRed Hat:enterprise_linux:9::baseos |
before 0:323.1-1.el9_5 | 0:323.1-1.el9_5 |
cockpit-debuginfoRed Hat:enterprise_linux:9::baseos |
before 0:323.1-1.el9_5 | 0:323.1-1.el9_5 |
cockpit-debugsourceRed Hat:enterprise_linux:9::baseos |
before 0:323.1-1.el9_5 | 0:323.1-1.el9_5 |
cockpit-docRed Hat:enterprise_linux:9::baseos |
before 0:323.1-1.el9_5 | 0:323.1-1.el9_5 |
cockpit-systemRed Hat:enterprise_linux:9::baseos |
before 0:323.1-1.el9_5 | 0:323.1-1.el9_5 |
cockpit-wsRed Hat:enterprise_linux:9::baseos |
before 0:323.1-1.el9_5 | 0:323.1-1.el9_5 |
cockpitRocky Linux:9 |
before 0:323.1-1.el9_5 | 0:323.1-1.el9_5 |
cockpitSUSE:Linux Enterprise Micro 5.5 |
before 298-150500.3.6.1 | 298-150500.3.6.1 |
cockpitSUSE:Linux Enterprise Micro 5.2 |
before 251.3-150300.6.3.1 | 251.3-150300.6.3.1 |
cockpitSUSE:Linux Enterprise Micro 5.3 |
before 251.3-150400.8.3.1 | 251.3-150400.8.3.1 |
cockpitSUSE:Linux Enterprise Micro 5.1 |
before 195.12-150300.10.6.1 | 195.12-150300.10.6.1 |
cockpitSUSE:Linux Enterprise Micro 5.4 |
before 251.3-150400.6.7.1 | 251.3-150400.6.7.1 |
cockpitUbuntu:18.04:LTS |
All versions, plus listed versions 151-1156-1157-1158-1160-1 Show 4 moreShow less161-1162-1163-1164-1 |
None known |
cockpitUbuntu:20.04:LTS |
All versions, plus listed versions 202.1-1204-1206-1207-1208-1 Show 6 moreShow less210-1211-1212-1213-1214.1-1215-1 |
None known |
cockpitUbuntu:22.04:LTS |
All versions, plus listed versions 252-1256-1257-1258-1259-1 Show 6 moreShow less260-1261-1262-1263-1264-1264-1ubuntu0.22.04.1 |
None known |
cockpitUbuntu:24.04:LTS |
All versions, plus listed versions 300.1-1303-1304-1305-1306-1 Show 7 moreShow less307-1308-1309-1310.1-1311-1312-1build2314-1 |
None known |
cockpitSUSE:Package Hub 15 SP6 |
before 320-bp156.2.6.3 | 320-bp156.2.6.3 |
cockpitopenSUSE:Leap 15.6 |
before 320-bp156.2.6.3 | 320-bp156.2.6.3 |
cockpitopenSUSE:Tumbleweed |
before 320-1.1 | 320-1.1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2024-6126 is a low vulnerability (CVSS 3.2) in Red Hat Enterprise Linux 10, published July 3, 2024. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.27%, the 19th percentile. Fixed in cockpit 323.1-1.el9_5.
References
access.redhat.com/errata/RHSA-2024:9325
access.redhat.com/security/cve/CVE-2024-6126
bugzilla.redhat.com/show_bug.cgi?id=2292897
nvd.nist.gov/vuln/detail/CVE-2024-6126
github.com/advisories/GHSA-g6h4-j28x-38g5
bugzilla.redhat.com/2292897
Show 26 moreShow less
errata.almalinux.org/9/ALSA-2024-9325.html
errata.tuxcare.com/els_os/almalinux9.2esu/CLSA-2026-1781091230.html
nvd.nist.gov/vuln/detail/CVE-2026-4802
security-tracker.debian.org/tracker/CVE-2024-6126
advisories.mageia.org/MGASA-2025-0181.html
bugs.mageia.org/show_bug.cgi?id=33368
openeuler.org/zh/security/security-bulletins/detail?id=openEuler-SA-2024-1842
docs.redhat.com/en/documentation/red_hat_enterprise_linux/9/html/9.5_release_notes/index
access.redhat.com/security/updates/classification
issues.redhat.com/browse/RHEL-34216
issues.redhat.com/browse/RHEL-46354
issues.redhat.com/browse/RHEL-55860
security.access.redhat.com/data/csaf/v2/advisories/2024/rhsa-2024_9325.json
cve.org/CVERecord?id=CVE-2024-6126
errata.rockylinux.org/RLSA-2024:9325
suse.com/support/update/announcement/2024/suse-su-20242304-1
bugzilla.suse.com/1226040
suse.com/security/cve/CVE-2024-6126
suse.com/support/update/announcement/2024/suse-su-20242476-1
suse.com/support/update/announcement/2024/suse-su-20242477-1
suse.com/support/update/announcement/2024/suse-su-20242478-1
suse.com/support/update/announcement/2024/suse-su-20242494-1
ubuntu.com/security/CVE-2024-6126
bugzilla.redhat.com/show_bug.cgi?id=2290859
lists.opensuse.org/archives/list/[email protected]/thread/CNZTH7PKY4BMSDPSUA32JS3BZQRTKTGF
bugzilla.suse.com/1227299