Uncontrolled Resource Consumption ('Resource Exhaustion') Affecting cockpit-project/cockpit package, versions [,320)


Severity

Recommended
0.0
low
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.27% (19th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UNMANAGED-COCKPITPROJECTCOCKPIT-7430270
  • published8 Jul 2024
  • disclosed3 Jul 2024
  • creditUnknown

Introduced: 3 Jul 2024

CVE-2024-6126  (opens in a new tab)
CWE-400  (opens in a new tab)

How to fix?

Upgrade cockpit-project/cockpit to version 320 or higher.

Overview

Affected versions of this package are vulnerable to Uncontrolled Resource Consumption ('Resource Exhaustion') via the user_readenv option, allowing an authenticated user to kill any process.

Note: This is only exploitable if the user_readenv option is enabled, which is not the default setting in some systems and is considered unsafe.

Workaround

This vulnerability can be mitigated by disabling pam_env's user_readenv option in PAM config.

CVSS Base Scores

version 4.0
version 3.1