django-haystack more_like_this Template Tag elasticsearch_backend.py _to_python eval injection
Summary
| CVE | CVE-2026-105315 |
|---|---|
| State | PUBLISHED |
| Assigner | VulDB |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-10-05 13:16:52 UTC |
| Updated | 2026-10-05 14:17:20 UTC |
| 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. |
Risk And Classification
Primary CVSS: v4.0 2 LOW from [email protected]
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
Problem Types: CWE-94 | CWE-95 | CWE-95 Improper Neutralization of Directives in Dynamically Evaluated Code | CWE-94 Code Injection
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 4.0 | [email protected] | Secondary | 2 | LOW | 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/C... |
| 4.0 | CNA | DECLARED | 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 |
| 3.1 | [email protected] | Secondary | 4.7 | MEDIUM | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:L |
| 3.1 | CNA | DECLARED | 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 |
| 3.0 | CNA | DECLARED | 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 |
| 2.0 | [email protected] | Secondary | 5.8 | AV:N/AC:L/Au:M/C:P/I:P/A:P | |
| 2.0 | CNA | DECLARED | 5.8 | AV:N/AC:L/Au:M/C:P/I:P/A:P/E:POC/RL:OF/RC:C |
CVSS v4.0 Breakdown
Attack Vector
NetworkAttack Complexity
LowAttack Requirements
NonePrivileges Required
HighUser Interaction
NoneConfidentiality
LowIntegrity
LowAvailability
LowSub Conf.
NoneSub Integrity
NoneSub Availability
NoneCVSS: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
CVSS v3.1 Breakdown
Attack Vector
NetworkAttack Complexity
LowPrivileges Required
HighUser Interaction
NoneScope
UnchangedConfidentiality
LowIntegrity
LowAvailability
LowCVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:L
CVSS v3.0 Breakdown
Attack Vector
NetworkAttack Complexity
LowPrivileges Required
HighUser Interaction
NoneScope
UnchangedConfidentiality
LowIntegrity
LowAvailability
LowCVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:L/E:P/RL:O/RC:C
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | Na | Django-haystack | affected 3.0 | Not specified |
| CNA | Na | Django-haystack | affected 3.1 | Not specified |
| CNA | Na | Django-haystack | affected 3.2 | Not specified |
| CNA | Na | Django-haystack | affected 3.3.0 | Not specified |
| CNA | Na | Django-haystack | unaffected 3.4.0 | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| github.com/django-haystack/django-haystack/commit/eb05f193c9771a68dcc8cf... | [email protected] | github.com | |
| github.com/django-haystack/django-haystack/security/advisories/GHSA-r3hx... | [email protected] | github.com | |
| github.com/django-haystack/django-haystack | [email protected] | github.com | |
| vuldb.com/submit/978642 | [email protected] | vuldb.com | |
| vuldb.com/vuln/413523 | [email protected] | vuldb.com | |
| github.com/django-haystack/django-haystack/releases/tag/v3.4.0 | [email protected] | github.com | |
| vuldb.com/vuln/413523/cti | [email protected] | vuldb.com | |
| vuldb.com/cve/CVE-2026-105315 | [email protected] | vuldb.com | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
Vendor Comments And Credit
Discovery Credit
CNA: Mohammedix88 (VulDB User) (en)
Additional Advisory Data
| Source | Time | Event |
|---|---|---|
| CNA | 2026-10-05T00:00:00.000Z | Advisory disclosed |
| CNA | 2026-10-05T02:00:00.000Z | VulDB entry created |
| CNA | 2026-10-05T09:38:38.000Z | VulDB entry last update |
There are currently no legacy QID mappings associated with this CVE.