Exposure of Resource to Wrong Sphere Affecting performancecopilot/pcp package, versions [4.3.4,]


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Not Defined
EPSS
0.04% (16th 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-PERFORMANCECOPILOTPCP-6513794
  • published29 Mar 2024
  • disclosed28 Mar 2024
  • creditxcuter

Introduced: 28 Mar 2024

CVE-2024-3019  (opens in a new tab)
CWE-668  (opens in a new tab)

How to fix?

A fix was pushed into the master branch but not yet published.

Overview

Affected versions of this package are vulnerable to Exposure of Resource to Wrong Sphere due to the default configuration of pmproxy which exposes the Redis server backend to the local network. An attacker can execute commands remotely with the privileges of the Redis user by exploiting this configuration when pmproxy is running. By default, pmproxy is not running and needs to be started manually, usually from the 'Metrics settings' page of the Cockpit web interface.

Note:

This is only exploitable if pmproxy is running.

Workaround

This vulnerability can be mitigated by stopping and disabling the pmproxy.service or disabling the Redis server backend via the pmproxy configuration file. To stop and disable the pmproxy.service, run the following command:

# systemctl disable --now pmproxy.service

To disable the Redis backend server via the pmproxy configuration file:

# sed -i 's/redis.enabled = true/redis.enabled = false/g' /etc/pcp/pmproxy/pmproxy.conf
# systemctl restart pmproxy.service

CVSS Scores

version 3.1