CVE-2026-105315 Details
Description
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.
A remote code execution vulnerability exists in django-haystack versions through 3.3.0, specifically within the Elasticsearch backend. The issue arises in the '_to_python' function of 'haystack/backends/elasticsearch_backend.py', where the 'eval()' function is used to deserialize field values from Elasticsearch. This behavior can be exploited when a 'SearchField' is indexed under an alias that differs from its logical name, allowing an attacker to execute arbitrary code in the context of the Django application.
Users are advised to upgrade to django-haystack version 3.4.0, which removes the vulnerable 'eval()' usage and addresses the issue for Elasticsearch 1.x users.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Oct 5, 2026CISA-ADP
Assessed Oct 5, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/django-haystack/django-haystack/ | [email protected] | Vendor |
| https://github.com/django-haystack/django-haystack/commit/eb05f193c9771a68dcc8cfac6674a0d48a52ee9d | [email protected] | Source CodeVendor |
| https://github.com/django-haystack/django-haystack/releases/tag/v3.4.0 | [email protected] | Release NotesVendor |
| https://github.com/django-haystack/django-haystack/security/advisories/GHSA-r3hx-x5rh-p9vv | [email protected] | AdvisoryExploitRemedyVendor |
| https://vuldb.com/cve/CVE-2026-105315 | [email protected] | AdvisoryPermission Required |
| https://vuldb.com/submit/978642 | [email protected] | Issue TrackingPermission Required |
| https://vuldb.com/vuln/413523 | [email protected] | AdvisoryPermission Required |
| https://vuldb.com/vuln/413523/cti | [email protected] | Content Wall |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-94 | Improper Control of Generation of Code ('Code Injection') | [email protected] |
| CWE-95 | Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| django-haystack | <= 3.3.0 (semver) |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 5, 2026 | CVE Modified | CISA-ADP |
| Oct 5, 2026 | New CVE Received | [email protected] |
Volerion