RCE in Django-Haystack
CVE-2026-105315
- CVSS v3
- 4.7 Medium
- Public exploits
- None known
- EPSS
- 0.003 · 17.2th percentile
- Published
- 2026-10-05
A vulnerability has been found in django-haystack up to 3.3.0. Affected is the function _to_python of the file haystack/backends/elasticsearch_backend.py of the component more_like_this Template Tag Handler. Such manipulation of the argument result_class leads to improper neutralization of directives in dynamically evaluated code. The attack can be launched remotely. The exploit has been disclosed to the public and may be used. Upgrading to version 3.4.0 is able to address this issue. The name of the patch is eb05f193c9771a68dcc8cfac6674a0d48a52ee9d. It is suggested to upgrade the affected component.
Vulnerability class: RCE (Remote Code Execution)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 4.7 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:L.
- Attack Vector
- Network
AV:N - Attack Complexity
- Low
AC:L - Privileges Required
- High
PR:H - User Interaction
- None
UI:N - Scope
- Unchanged
S:U - Confidentiality
- Low
C:L - Integrity
- Low
I:L - Availability
- Low
A:L
EPSS exploit prediction
EPSS 0.003, 17.2th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- Django-Haystack — versions 3.0, 3.1, 3.2
Weakness classification (CWE)
References
- VDB-413523 | django-haystack more_like_this Template Tag elasticsearch_backend.py _to_python eval injection (technical-description, vdb-entry)
- VDB-413523 | CTI Indicators (IOB, IOC, IOA) (signature, permissions-required)
- CVE-2026-105315 | CVE Analysis and Report (third-party-advisory)
- Submit #978642 | django-haystack 3.3.0 Code Execution (third-party-advisory)
- github.com/django-haystack/django-haystack/security/advisories/GHSA-r3hx-x5rh-p… (exploit)
- github.com/django-haystack/django-haystack/commit/eb05f193c9771a68dcc8cfac6674a… (patch)
- github.com/django-haystack/django-haystack/releases/tag/v3.4.0 (patch)
- github.com/django-haystack/django-haystack/ (product)