RCE in Django-Haystack
CVE-2026-105315
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.
EPSS exploit prediction
No EPSS score from FIRST.org yet. New CVEs usually get one within a few days; no score means no signal yet, not low risk. How EPSS works.
Affected products
- Django-Haystack — versions 3.0, 3.1, 3.2
Weakness classification (CWE)
References
- vuldb.com/vuln/413523 (technical-description, vdb-entry)
- vuldb.com/vuln/413523/cti (signature, permissions-required)
- vuldb.com/cve/CVE-2026-105315 (third-party-advisory)
- vuldb.com/submit/978642 (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)
Frequently asked questions
- What is CVE-2026-105315?
- CVE-2026-105315 is a medium-severity vulnerability in Django-Haystack, classified under Code Injection. CVSS score: 4.7/10. Published 2026-10-05.
- How severe is CVE-2026-105315?
- Medium severity. CVSS v3 base score is 4.7 out of 10.