CVE-2026-105315
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
Summary
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.
Affected Software
| Vendor | Product | Version Range | Status |
|---|---|---|---|
| n/a | django-haystack | 3.0 | affected |
| n/a | django-haystack | 3.1 | affected |
| n/a | django-haystack | 3.2 | affected |
| n/a | django-haystack | 3.3.0 | affected |
| n/a | django-haystack | 3.4.0 | unaffected |
Weaknesses
- CWE-95: Improper Neutralization of Directives in Dynamically Evaluated Code
- CWE-94: Code Injection
ADP Enrichment
CISA ADP Vulnrichment
- SSVC:
- Exploitation: poc
- Automatable: no
- Technical Impact: partial
References
- https://vuldb.com/vuln/413523
- https://vuldb.com/vuln/413523/cti
- https://vuldb.com/cve/CVE-2026-105315
- https://vuldb.com/submit/978642
- https://github.com/django-haystack/django-haystack/security/advisories/GHSA-r3hx-x5rh-p9vv
- https://github.com/django-haystack/django-haystack/commit/eb05f193c9771a68dcc8cfac6674a0d48a52ee9d
- https://github.com/django-haystack/django-haystack/releases/tag/v3.4.0
- https://github.com/django-haystack/django-haystack/
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.