Knowage
cpe:2.3:a:eng:knowage:*:*:*:*:*:*:*
- < 8.1.27
A remote code execution vulnerability exists in Knowage versions through 8.1.26. The issue arises from the use of an unsafe 'org.apache.commons.jxpath.JXPathContext' in the 'MetaService.java' file, allowing a normal user to execute commands on the server.
Exploitation of this vulnerability allows for arbitrary code execution on the server where Knowage is running.
To reproduce this vulnerability, clone the Knowage-Server-Docker repository and start it using Docker Compose. Log in with a normal user account and obtain the session ID. After creating a model for the current session, send a request to the 'checkRelationships' endpoint, including a crafted 'diff' payload that executes a command, such as creating a file in the '/tmp' directory. Finally, verify that the command was executed by checking for the presence of the created file in the container.
Users can upgrade to Knowage version 8.1.27 or 8.2.0 to address this vulnerability.
Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.