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-2025-23211

CVE-2025-23211: Tandoor Recipes RCE Vulnerability

CVE-2025-23211 is a Jinja2 SSTI remote code execution flaw in Tandoor Recipes that enables any user to execute server commands. This article covers the technical details, affected versions, security impact, and mitigation.

Published: April 8, 2026

CVE-2025-23211 Overview

CVE-2025-23211 is a critical Server-Side Template Injection (SSTI) vulnerability in Tandoor Recipes, a popular open-source application for managing recipes, planning meals, and building shopping lists. The vulnerability exists in the Jinja2 template processing functionality, allowing any authenticated user to execute arbitrary commands on the server. When deployed using the provided Docker Compose configuration, this can result in command execution with root privileges.

Critical Impact

Any authenticated user can achieve remote code execution on the server, potentially gaining root access when using the default Docker Compose deployment configuration.

Affected Products

  • Tandoor Recipes versions prior to 1.5.24
  • Docker Compose deployments running vulnerable versions (with potential root-level access)
  • Self-hosted Tandoor Recipes instances

Discovery Timeline

  • 2025-01-28 - CVE-2025-23211 published to NVD
  • 2025-05-08 - Last updated in NVD database

Technical Details for CVE-2025-23211

Vulnerability Analysis

This vulnerability is a Server-Side Template Injection (SSTI) flaw in Tandoor Recipes' Jinja2 template processing engine. Jinja2 is a widely-used Python templating engine, and when user-controlled input is rendered directly into templates without proper sanitization, attackers can inject malicious template directives that execute arbitrary Python code on the server.

The vulnerable code resides in the template_helper.py file within the cookbook helper module. When processing recipe data or user input through the template engine, the application fails to properly sanitize or sandbox the template rendering context, allowing injection of Jinja2 expressions that can escape the template sandbox and execute system commands.

The impact is particularly severe in Docker deployments using the provided Docker Compose configuration, where the application container runs as root. This means successful exploitation grants the attacker root-level command execution within the container, potentially leading to container escape, lateral movement, or complete system compromise.

Root Cause

The root cause of CVE-2025-23211 is improper handling of user-supplied input within the Jinja2 template rendering process. The application directly incorporates user-controlled data into template expressions without implementing proper sandboxing or input validation. This allows attackers to inject template syntax that accesses Python's object introspection capabilities to reach dangerous classes and execute arbitrary code.

The vulnerable code path can be traced to the template helper functionality at line 95 in cookbook/helper/template_helper.py, where user input is processed through the Jinja2 engine without adequate protection mechanisms.

Attack Vector

The attack requires network access and low-privilege authentication to the Tandoor Recipes application. Once authenticated, an attacker can craft malicious input containing Jinja2 template injection payloads. Common SSTI attack patterns leverage Python's object model to traverse from safe objects to dangerous built-in functions, ultimately achieving command execution.

Typical exploitation involves injecting Jinja2 expressions that access the __class__, __mro__, __subclasses__, and __globals__ attributes to navigate Python's object hierarchy and locate modules capable of executing system commands, such as os.popen() or subprocess.Popen().

The vulnerability can be exploited by any authenticated user, meaning even users with minimal privileges can escalate to full server control. For detailed technical information, refer to the GitHub Security Advisory GHSA-r6rj-h75w-vj8v.

Detection Methods for CVE-2025-23211

Indicators of Compromise

  • Unusual Jinja2 template syntax in user-submitted recipe data or form fields containing strings like {{, {%, __class__, __mro__, or __subclasses__
  • Unexpected process execution originating from the Tandoor Recipes application container
  • Server logs showing template rendering errors with Python object attribute access patterns
  • Outbound network connections from the application container to external command-and-control infrastructure

Detection Strategies

  • Monitor application logs for suspicious template syntax patterns including __class__, __mro__, __subclasses__, and __globals__ attribute chains
  • Implement Web Application Firewall (WAF) rules to detect and block common SSTI payloads in HTTP requests
  • Deploy container runtime security to detect anomalous command execution within the Tandoor Recipes container
  • Review user-submitted content for template injection indicators using automated scanning tools

Monitoring Recommendations

  • Enable verbose logging in Tandoor Recipes and review logs for template rendering anomalies
  • Implement network monitoring to detect unexpected outbound connections from the application container
  • Configure host-based intrusion detection systems (HIDS) to alert on suspicious process spawning from Python/Django processes
  • Set up file integrity monitoring on critical system files within the container environment

How to Mitigate CVE-2025-23211

Immediate Actions Required

  • Upgrade Tandoor Recipes to version 1.5.24 or later immediately
  • If immediate upgrade is not possible, restrict access to authenticated users and review user permissions
  • Audit existing user accounts and remove any unauthorized or unnecessary accounts
  • Review server logs for signs of prior exploitation attempts

Patch Information

The vulnerability has been fixed in Tandoor Recipes version 1.5.24. The security patch addresses the SSTI vulnerability by implementing proper input sanitization and template sandbox restrictions. The fix can be reviewed in the GitHub Commit Update. Organizations should upgrade to version 1.5.24 or the latest available release as soon as possible.

Workarounds

  • Place the Tandoor Recipes application behind a reverse proxy with request filtering to block common SSTI payloads
  • Restrict network access to the application to trusted IP addresses only using firewall rules
  • Run the Docker container with a non-root user by modifying the Docker Compose configuration
  • Implement additional authentication layers (e.g., VPN, SSO) to limit exposure while awaiting the patch deployment
bash
# Run container as non-root user (add to docker-compose.yml)
user: "1000:1000"

# Restrict container capabilities
security_opt:
  - no-new-privileges:true
cap_drop:
  - ALL

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechTandoor Recipes

  • SeverityCRITICAL

  • CVSS Score9.9

  • EPSS Probability0.88%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-1336

  • CWE-94
  • Technical References
  • GitHub Template Helper Code
  • Vendor Resources
  • GitHub Commit Update

  • GitHub Security Advisory GHSA-r6rj-h75w-vj8v
  • Related CVEs
  • CVE-2026-27460: Tandoor Recipes DoS Vulnerability

  • CVE-2026-35488: Tandoor Recipes Auth Bypass Vulnerability

  • CVE-2026-35489: Tandoor Recipes Information Disclosure Flaw

  • CVE-2026-35046: Tandoor Recipes XSS 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