Giskard AI Giskard-Checks Unsandboxed Jinja2 Template Rendering Vulnerability in ConformityCheck Class Allowing Arbitrary Code Execution
Vulnerability
A vulnerability exists in the Giskard AI testing framework for AI models, specifically in the Giskard-Checks component, versions prior to 1.0.2b1. The issue arises in the ConformityCheck class, where the rule parameter is rendered using Jinja2's Template constructor. This implementation allows template expressions to be evaluated at runtime, creating a risk of arbitrary code execution if check definitions are sourced from untrusted origins. Exploitation requires write access to a check definition and the execution of the test suite.
Impact
Exploitation of this vulnerability could lead to arbitrary code execution within the context of the application running the Giskard-Checks library.
Remediation
Users are advised to upgrade to Giskard-Checks version 1.0.2b1 or later, where this vulnerability has been addressed by removing template rendering from rule evaluation.
Vulnerability Rating
Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.
