CVE-2026-105315 PUBLISHED

django-haystack more_like_this Template Tag elasticsearch_backend.py _to_python eval injection

Assigner: VulDB
Reserved: 05.10.2026 Published: 05.10.2026 Updated: 05.10.2026

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.

Metrics

CVSS Vector: 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
CVSS Score: 5.1

Product Status

Vendor n/a
Product django-haystack
Versions
  • Version 3.0 is affected
  • Version 3.1 is affected
  • Version 3.2 is affected
  • Version 3.3.0 is affected
  • Version 3.4.0 is unaffected

Credits

  • Mohammedix88 (VulDB User) reporter

References

Problem Types

  • Improper Neutralization of Directives in Dynamically Evaluated Code CWE
  • Code Injection CWE