Track vulnerabilities like this one. Sign up free to get alerted when software you use is affected.
2.0

CVE-2026-105315: django-haystack before 3.4 can be exploited remotely

CVE-2026-105315 · published 13 days ago
Summary

The django-haystack search library (versions up to 3.3.0) has a flaw in a function that builds search queries, allowing an attacker to inject harmful code from a distance. This could let a remote user run unexpected commands on your server. Upgrade to version 3.4.0 or later to fix the problem.

What to do

The CVE record does not list a fixed version. Check the vendor's site or the advisory links below - a fix may already be released.

Affected software
Ecosystem VendorProductAffected versions
– – django-haystack 3.0
Debian:12 debian django-haystack All versions
Original advisory text
DEBIAN-CVE-2026-105315
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.
Fix within
Internet-facing 60 days
Internal At next upgrade
  • Not known to be exploited
  • Needs hands-on effort to exploit
  • Gives an attacker partial control
Severity
2.0 Low
Exploitation
<1% chance of attack within 30 days
Type
CWE-94Code Injection
CWE-95Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection')
Timeline
Published5 Oct 2026
Updated15 Oct 2026
First seen5 Oct 2026
Sources
CVE-2026-105315 · MITRE
Track software like this
Free during beta