CVE-2026-105315
LOW 2.0CVSS 4.0django-haystack: Remote Code Execution via `eval()` in Elasticsearch Result Deserialization
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.
- Published
- 5 Oct 2026
- Last modified
- 6 Oct 2026
- Assigned by
- cna@vuldb.com
- NVD status
- Deferred
- Weakness
- CWE-94CWE-95
- Also known as
- GHSA-r3hx-x5rh-p9vv
- Sources
- NVDJSONOSV GHSA-r3hx-x5rh-p9vvJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | cna@vuldb.com (Secondary) | CVSS 4.0 | LOW 2.0 | 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/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N | |
| NVD | cna@vuldb.com (Secondary) | CVSS 3.1 | MEDIUM 4.7 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:L |
| NVD | cna@vuldb.com (Secondary) | CVSS 2.0 | MEDIUM 5.8 | AV:N/AC:L/Au:M/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | PyPI | django-haystack | < 3.4.0 | 3.4.0 |
References
- https://github.com/django-haystack/django-haystack/ · PACKAGE
- https://github.com/django-haystack/django-haystack/commit/eb05f193c9771a68dcc8cfac6674a0d48a52ee9d · WEB
- https://github.com/django-haystack/django-haystack/releases/tag/v3.4.0 · WEB
- https://github.com/django-haystack/django-haystack/security/advisories/GHSA-r3hx-x5rh-p9vv · WEB
- https://vuldb.com/cve/CVE-2026-105315
- https://vuldb.com/submit/978642
- https://vuldb.com/vuln/413523
- https://vuldb.com/vuln/413523/cti
History
- 25 Nov 2026 21:22 UTC · NVD: first stored (published 5 Oct 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 15 Jul 2026)