CVE-2026-16524: Pcp: pcp linux_sockets pmda: arbitrary command execution via command injection
A command injection flaw in PCP's linuxsockets PMDA allows malicious shell metacharacters via the network.persocket.filter metric. This failed validation lets attackers execute arbitrary commands as the PMDA user when metrics refresh.
Other sources
A command injection vulnerability exists in the linuxsockets PMDA through the writable metric network.persocket.filter. The validation helper socketscheckfilter() returns 1 for safe input and 0 for unsafe input, but the store handler uses an inverted condition: safe expressions are rejected while malicious ones containing shell metacharacters are silently accepted. The attacker-controlled filter value is later incorporated into a shell command executed via popen() whenever socket metrics are refreshed, enabling arbitrary command execution as the PMDA process user. Prerequisites: • linuxsockets PMDA loaded; • ss binary present (/usr/sbin/ss or /usr/bin/ss); • no [access] section restricting pmstore in pmcd.conf (default behavior).
— Red Hat
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/pcpto a version that resolves this vulnerability.Fixed in 7.2.0-1 - Upgrade
Upgrade
debian/pcpto a version that resolves this vulnerability.Fixed in 7.2.2-1
Event History
Frequently Asked Questions
What is the severity of CVE-2026-16524?
CVE-2026-16524 has a high severity rating of 7.8.
What type of vulnerability is represented by CVE-2026-16524?
CVE-2026-16524 is a command injection vulnerability in PCP's linux_sockets PMDA.
How can attackers exploit CVE-2026-16524?
Attackers can exploit CVE-2026-16524 by sending malicious shell metacharacters via the network.persocket.filter metric.
What impact does CVE-2026-16524 have on affected systems?
CVE-2026-16524 allows attackers to execute arbitrary commands as the PMDA user on affected systems.
How do I fix CVE-2026-16524?
To fix CVE-2026-16524, update your PCP linux_sockets PMDA to the latest version that addresses this vulnerability.