CVE-2026-110593
Server-side template injection in BottleCRM’s send_email task allowing context disclosure or worker denial.
- CVSS 5.3
- CWE-1336
- Input Validation and Sanitization
- Remote
BottleCRM through 1.14.5 contains a server-side template injection vulnerability in the send_email Celery task, which compiles the user-supplied AccountEmail message_body with django.template.Template(). Authenticated organization members can submit template tags through POST /api/accounts/<id>/create_mail/ to disclose the rendering context and loaded Python modules, or block the shared Celery worker with nested loops.
- CWE
- CWE-1336
- CVSS base score
- 5.3
- Published
- 2026-10-14
- OWASP
- A03 Injection
- Orthogonal defect classification
- Interface
- Code defect classification
- Incorrect Interface
- Category
- Input Validation and Sanitization
- Subcategory
- Insecure Parsing or Deserialization
- Accessibility scope
- Remote
- Impact
- Information Disclosure
- Affected component
- Django
Solution
Upgrade BottleCRM to version 1.14.6 or later, which removes the unsafe django.template.Template() usage in the send_email Celery task.
Vulnerable code sample
from django.template import Template, Context
from django.core.mail import send_mail
def send_email_task(account_id, message_body, user):
# VULNERABLE: rendering untrusted template allows SSTI
tmpl = Template(message_body)
ctx = Context({'user': user})
rendered_body = tmpl.render(ctx)
send_mail(
subject='Account Notification',
message=rendered_body,
from_email='noreply@example.com',
recipient_list=[user.email],
fail_silently=False,
)Patched code sample
from django.template import Template, Context
from django.core.mail import send_mail
def send_email_task(account_id, message_body, user):
# FIX: avoid rendering untrusted template, use safe formatting
rendered_body = message_body.format(user=user.email)
send_mail(
subject='Account Notification',
message=rendered_body,
from_email='noreply@example.com',
recipient_list=[user.email],
fail_silently=False,
)Cite this entry
@misc{vaitp:cve2026110593,
title = {{Server-side template injection in BottleCRM’s send_email task allowing context disclosure or worker denial.}},
author = {Bogaerts, Fr\'ed\'eric and Ivaki, Naghmeh and Fonseca, Jos\'e},
year = {2026},
note = {VAITP Python Vulnerability Dataset, entry CVE-2026-110593},
howpublished = {\url{https://netpack.pt/vaitp/vulnerability/CVE-2026-110593/}}
}
Introducing the "VAITP dataset": a specialized repository of Python vulnerabilities and patches, meticulously compiled for the use of the security research community. As Python's prominence grows, understanding and addressing potential security vulnerabilities become crucial. Crafted by and for the cybersecurity community, this dataset offers a valuable resource for researchers, analysts, and developers to analyze and mitigate the security risks associated with Python. Through the comprehensive exploration of vulnerabilities and corresponding patches, the VAITP dataset fosters a safer and more resilient Python ecosystem, encouraging collaborative advancements in programming security.
The supreme art of war is to subdue the enemy without fighting.
Sun Tzu – “The Art of War”
:: Shaping the future through research and ingenuity ::
