CVE-2026-105315
published medium CVSS 4.0 · 5.1django-haystack more_like_this Template Tag elasticsearch_backend.py _to_python eval injection
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | django-haystack3.0 (affected) · 3.1 (affected) · 3.2 (affected) · 3.3.0 (affected) · 3.4.0 (unaffected) | Version-specific | Not stated | VulDB |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 5.1 / 10
- Severity
- medium
- Provider
- VulDB · cna
- Vector string
- 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
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 4.7 | medium | VulDB · cna | 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 | — |
| 3.0 | 4.7 | medium | VulDB · cna | 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 | — |
| 2.0 | 5.8 | medium | VulDB · cna | AV:N/AC:L/Au:M/C:P/I:P/A:P/E:POC/RL:OF/RC:C | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | django-haystack | 3.0 (affected)3.1 (affected)3.2 (affected)3.3.0 (affected)3.4.0 (unaffected) | VulDB · cna |
Weaknesses
2- CWE-95 Improper Neutralization of Directives in Dynamically Evaluated Code
- CWE-94 Code Injection
References
8- https://github.com/django-haystack/django-haystack/
- 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/security/advisories/GHSA-r3hx-x5rh-p9vv
- CVE-2026-105315 | CVE Analysis and Report https://vuldb.com/cve/CVE-2026-105315
- Submit #978642 | django-haystack 3.3.0 Code Execution https://vuldb.com/submit/978642
- VDB-413523 | django-haystack more_like_this Template Tag elasticsearch_backend.py _to_python eval injection https://vuldb.com/vuln/413523
- VDB-413523 | CTI Indicators (IOB, IOC, IOA) https://vuldb.com/vuln/413523/cti
Provider assertions
2VulDB · cna
django-haystack more_like_this Template Tag elasticsearch_backend.py _to_python eval injection
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- c84d190a6f1a37663038f1d543befbc7d01a26b2f57bcfc71786cdf1d5e9c1fd
- Ingested
- 05 Oct 2026, 13:55:34 UTC
- Source record
- Official CVE record