CVE-2026-105315
django-haystack more_like_this Template Tag elasticsearch_backend.py _to_python eval injection
- State
- Published
- Severity
- 5.1 Medium
- Published
- Oct 5, 2026
- Updated
- Oct 5, 2026
- Reserved
- Oct 5, 2026
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.
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 4.0 | 5.1 Medium | CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P | VulDB |
| 3.1 | 4.7 Medium | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:L/E:P/RL:O/RC:C | VulDB |
| 3.0 | 4.7 Medium | CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:L/E:P/RL:O/RC:C | VulDB |
| 2.0 | 5.8 Medium | AV:N/AC:L/Au:M/C:P/I:P/A:P/E:POC/RL:OF/RC:C | VulDB |
Weaknesses
Affected Products
| Product | Versions |
|---|---|
django-haystackn/a |
|
References
- VDB-413523 | django-haystack more_like_this Template Tag elasticsearch_backend.py _to_python eval injectionvdb-entrytechnical-description
- VDB-413523 | CTI Indicators (IOB, IOC, IOA)signaturepermissions-required
- CVE-2026-105315 | CVE Analysis and Reportthird-party-advisory
- Submit #978642 | django-haystack 3.3.0 Code Executionthird-party-advisory
- https://github.com/django-haystack/django-haystack/security/advisories/GHSA-r3hx-x5rh-p9vvexploit
- https://github.com/django-haystack/django-haystack/commit/eb05f193c9771a68dcc8cfac6674a0d48a52ee9dpatch
- https://github.com/django-haystack/django-haystack/releases/tag/v3.4.0patch
- https://github.com/django-haystack/django-haystack/product
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.