Werk #17985: jar_signature: Fix privilege escalation via insecure JAVA_HOME path handling
Component | Checks & agents | ||||||||
Title | jar_signature: Fix privilege escalation via insecure JAVA_HOME path handling | ||||||||
Date | Apr 28, 2025 | ||||||||
Level | Trivial Change | ||||||||
Class | Security Fix | ||||||||
Compatibility | Compatible - no manual interaction needed | ||||||||
Checkmk versions & editions |
|
The jar_signature agent plugin (configured by the "Signatures of certificates in JAR files" bakery rule) prepends JAVA_HOME/bin
to the PATH
environment variable. A user with write permission to that directory could replace legitimate commands with their own malicious scripts and execute them as root.
Affected Versions:
- 2.4.0 (beta)
- 2.3.0
- 2.2.0
- 2.1.0 (EOL)
Vulnerability Management:
We have rated the issue with a CVSS score of 5.2 (medium) with the following CVSS vector: CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:H
, and assigned CVE-2025-32917
.