Skip to content
MediumVulnerability

GHSA-7xjm-g8f4-rp26: Giskard has Unsandboxed Jinja2 Template Rendering in ConformityCheck

Published
Record updated
View JSON
Affected
  • giskard-checks <= 1.0.1b1
Fixed in
1.0.2b1
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.2%

Summary

giskard-checks versions before 1.0.2b1 render the ConformityCheck rule parameter through Jinja2's default Template() constructor, so template expressions in rule definitions are evaluated at runtime. If check definitions come from an untrusted source, this can lead to arbitrary code execution, though the library is a local testing tool and exploitation requires write access to a check definition followed by a developer running the test suite.

Mitigation

Upgrade to giskard-checks >= 1.0.2b1. The template rendering has been removed from rule evaluation.