The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-34172

CVE-2026-34172: Giskard Python Library RCE Vulnerability

CVE-2026-34172 is a remote code execution vulnerability in Giskard Python library caused by unsafe Jinja2 template processing. Attackers can execute arbitrary code through user input. This article covers technical details, affected versions, impact, and mitigation strategies.

Published: April 2, 2026

CVE-2026-34172 Overview

CVE-2026-34172 is a critical remote code execution vulnerability in Giskard, an open-source Python library designed for testing and evaluating agentic systems. The vulnerability exists in the ChatWorkflow.chat() method, which passes its string argument directly as a Jinja2 template source to a non-sandboxed Environment. This design flaw allows attackers to achieve full remote code execution through Jinja2 class traversal when developers pass user input to this method.

The method name chat and parameter name message naturally invite developers to pass user input directly, but the string is silently parsed as a Jinja2 template rather than treated as plain text. This creates a dangerous situation where seemingly innocuous chat functionality becomes a vector for arbitrary code execution.

Critical Impact

Attackers can achieve full remote code execution on systems running vulnerable versions of Giskard by exploiting the unsandboxed Jinja2 template processing in the ChatWorkflow.chat() method.

Affected Products

  • Giskard versions prior to 0.3.4
  • Giskard versions prior to 1.0.2b1

Discovery Timeline

  • 2026-03-31 - CVE-2026-34172 published to NVD
  • 2026-04-01 - Last updated in NVD database

Technical Details for CVE-2026-34172

Vulnerability Analysis

This vulnerability is classified as CWE-1336 (Improper Neutralization of Special Elements Used in a Template Engine). The core issue stems from the ChatWorkflow.chat(message) method accepting a string parameter that is directly processed by Jinja2's template engine without any sandboxing or input sanitization.

Jinja2 template injection vulnerabilities are particularly dangerous because they can lead to arbitrary code execution. When user-controlled input is passed to an unsandboxed Jinja2 Environment, attackers can leverage Python's object introspection capabilities to traverse the class hierarchy and access dangerous functions like os.system() or subprocess.Popen().

The attack requires network access and low privileges, with some preparation needed for exploitation. Upon successful exploitation, attackers gain high-impact capabilities across confidentiality, integrity, and availability of the vulnerable system.

Root Cause

The root cause is improper handling of user input in the ChatWorkflow.chat() method. The developers designed the method with parameter names (chat, message) that naturally encourage passing user input, but internally the method treats this input as a Jinja2 template source rather than plain text. The use of a non-sandboxed Jinja2 Environment compounds this issue, as it provides no restrictions on template capabilities.

Attack Vector

The attack vector is network-based, requiring an attacker to provide malicious input to the ChatWorkflow.chat() method. In a typical exploitation scenario, an attacker crafts a specially formatted string containing Jinja2 template syntax that leverages Python's method resolution order (MRO) to access base classes and ultimately invoke system commands.

The attack follows the standard Jinja2 Server-Side Template Injection (SSTI) pattern where attackers use constructs like {{ ''.__class__.__mro__[1].__subclasses__() }} to traverse the object hierarchy and locate classes that can be used to execute arbitrary commands. Since the Jinja2 Environment is not sandboxed, there are no restrictions preventing this class traversal technique.

For technical exploitation details and proof-of-concept examples, refer to the GitHub Security Advisory GHSA-frv4-x25r-588m.

Detection Methods for CVE-2026-34172

Indicators of Compromise

  • Presence of Jinja2 template syntax patterns in application logs, particularly strings containing {{ and }} with class traversal patterns like __class__, __mro__, or __subclasses__
  • Unexpected process spawning from Python processes running Giskard
  • Unusual network connections originating from Giskard application processes
  • Log entries showing error messages related to Jinja2 template rendering failures with suspicious payloads

Detection Strategies

  • Implement application-level logging to capture all input passed to ChatWorkflow.chat() and flag inputs containing Jinja2 template syntax
  • Deploy web application firewall (WAF) rules to detect and block Server-Side Template Injection (SSTI) payload patterns
  • Monitor for process execution anomalies where Giskard processes spawn unexpected child processes
  • Use static code analysis tools to identify code paths where user input flows into ChatWorkflow.chat() without sanitization

Monitoring Recommendations

  • Configure runtime application self-protection (RASP) solutions to monitor template engine operations
  • Implement alerting for any Jinja2-related exceptions or errors that may indicate exploitation attempts
  • Monitor system call patterns from Giskard processes for indicators of command injection
  • Review application logs regularly for evidence of template injection attempts

How to Mitigate CVE-2026-34172

Immediate Actions Required

  • Upgrade Giskard to version 0.3.4 or later for the 0.3.x branch
  • Upgrade Giskard to version 1.0.2b1 or later for the 1.x branch
  • Audit code to identify all locations where user input may be passed to ChatWorkflow.chat()
  • Implement input validation to reject any input containing Jinja2 template syntax before it reaches the vulnerable method

Patch Information

The vulnerability has been patched in Giskard versions 0.3.4 and 1.0.2b1. Organizations should upgrade to these versions immediately. For detailed patch information and release notes, consult the GitHub Security Advisory.

Workarounds

  • Implement strict input validation to sanitize or reject any user input containing Jinja2 template delimiters ({{, }}, {%, %}) before passing to ChatWorkflow.chat()
  • Wrap calls to ChatWorkflow.chat() with a preprocessing function that escapes or removes template syntax
  • Restrict network access to applications using Giskard to trusted sources only until patching is complete
  • Consider running Giskard in an isolated environment with minimal system privileges to limit the impact of potential exploitation
bash
# Example: Upgrade Giskard to patched version
pip install --upgrade giskard>=0.3.4

# Or for the 1.x branch
pip install --upgrade giskard>=1.0.2b1

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechGiskard

  • SeverityHIGH

  • CVSS Score7.7

  • EPSS Probability0.40%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-1336
  • Technical References
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-40320: Giskard AI Testing Framework RCE Flaw

  • CVE-2026-40319: Giskard AI Framework DOS Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English