CVEfocus › CVE database › CVE-2026-105315

CVE-2026-105315django-haystack more_like_this Template Tag elasticsearch_backend.py _to_python eval…

CVSS 4.7 MediumEPSS 0.4% (higher than 30% of CVEs)Published 2026-10-05Updated 2026-10-05Assigner: VulDB

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.

CWE-94CWE-95

What to do

Fixed builds are available from PyPI: see the table below for the fixed version per release.

Debian, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

1Fixed
7Fix pending
3Under investigation

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10django-haystackFix pendingUBUNTU-CVE-2026-105315
Ubuntu 26.04django-haystackUnder investigationUBUNTU-CVE-2026-105315
Ubuntu 24.04django-haystackUnder investigationUBUNTU-CVE-2026-105315
Ubuntu 22.04django-haystackUnder investigationUBUNTU-CVE-2026-105315
Ubuntu 20.04django-haystackFix pendingUBUNTU-CVE-2026-105315
Ubuntu 18.04django-haystackFix pendingUBUNTU-CVE-2026-105315
Ubuntu 16.04django-haystackFix pendingUBUNTU-CVE-2026-105315
Debian 14django-haystackFix pendingDEBIAN-CVE-2026-105315
Debian 13django-haystackFix pendingDEBIAN-CVE-2026-105315
Debian 12django-haystackFix pendingDEBIAN-CVE-2026-105315
PyPI librarydjango-haystackFixed3.4.0GHSA-r3hx-x5rh-p9vv

What the vendor says

As published in the CVE record by VulDB, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.