CVE-2025-23211·Docker vulnerability
Tandoor Recipes is an application for managing recipes, planning meals, and building shopping lists. A Jinja2 SSTI vulnerability allows any user to execute commands on the server. In the case of the provided Docker Compose file as root. This vulnerability is fixed in 1.5.24.
- Severity
- critical
- Software
- Docker
- Fixed in
- 1.5.24
- Published
- 2025-01-28
Affected versions
Until: 1.5.24
Fixed in: 1.5.24
How to fix this CVE
Update Docker to version 1.5.24 or later to patch a critical server-side template injection vulnerability in Tandoor Recipes that allows authenticated users to execute arbitrary commands. Immediately apply this update to all Docker hosts, especially those running containerized recipe management applications. Verify the update completion and restart affected containers to ensure the patched version is active.
sudo dnf update docker-ceDefensia detects this vulnerability
What an exploitation attempt looks like
Sample log line indicative of exploitation attempts:
POST /api/recipe|GET /recipe.*{{.*}}|Template syntax patterns like {{7*7}}, {%.*%}, or {{config.__class__}} in HTTP request body or parameters; Jinja2 error messages appearing in application responses indicating template processing of user inputWAF mitigation (if patching is not yet possible)
Add this rule to your WAF to block exploitation attempts while you schedule the patch.
Block HTTP requests containing suspicious Jinja2 template syntax in POST/GET parameters using regex pattern: (?:{{|{%|\[\[)[^}]*(?:}}|%}|\]\]) . Implement strict input validation on recipe fields and disable dynamic template rendering from user-supplied input.How to check if you are affected
- Run 'docker --version' to check your current Docker installation version; versions below 1.5.24 are vulnerable
- Verify if Tandoor Recipes containers are running by executing 'docker ps | grep -i recipe' or checking your docker-compose.yml for recipe services
- Search container logs for SSTI payloads using 'docker logs <container_id> | grep -E "{{.*}}|jinja|template"' to identify exploitation attempts
- Confirm the patch is applied by re-running 'docker --version' and verifying the version is 1.5.24 or higher
FAQ
What is CVE-2025-23211?
This is a Server-Side Template Injection (SSTI) vulnerability in Tandoor Recipes running within Docker containers. Authenticated users can inject malicious Jinja2 template syntax to execute arbitrary system commands with the privileges of the container process.
Is CVE-2025-23211 being actively exploited?
No, this vulnerability is not listed on the CISA Known Exploited Vulnerabilities (KEV) catalog and no public exploits are currently available. However, the critical CVSS score of 9.9 warrants immediate patching regardless of active exploitation status.
What versions of Docker are affected by CVE-2025-23211?
All versions of Docker prior to 1.5.24 are affected. The vulnerability exists in Tandoor Recipes' template handling logic, affecting any Docker deployment running vulnerable versions of the recipe management application.
How do I check if my server is vulnerable to CVE-2025-23211?
Run 'docker --version' to check your Docker version. If the version is below 1.5.24, your installation is vulnerable. Additionally, inspect running containers with 'docker inspect <container_id> | grep -i image' to confirm if Tandoor Recipes is deployed.
Does Defensia detect CVE-2025-23211?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Docker is installed on a monitored server, CVE-2025-23211 will appear in your dashboard with remediation steps.
Related Docker CVEs
References
- https://github.com/TandoorRecipes/recipes/blob/4f9bff20c858180d0f7376de443a9fe4c123a50c/cookbook/helper/template_helper.py#L95
- https://github.com/TandoorRecipes/recipes/commit/e6087d5129cc9d0c24278948872377e66c2a2c20
- https://github.com/TandoorRecipes/recipes/security/advisories/GHSA-r6rj-h75w-vj8v
- https://github.com/TandoorRecipes/recipes/security/advisories/GHSA-r6rj-h75w-vj8v
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2025-23211. Free for 1 server.
Get started free