Skip to content

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

MediumCVSS 5.1 EPSS 0.25%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: no · technical impact: partial
Technology
UbuntuDebian

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.

Upgrade path

9 packages: 1 fixed, 7 with no fix yet.

PackageAffectedFixed inStatus
debian/django-haystack(Debian 12) = 3.2.1-1; = 3.3.0-1; = 3.3.0-2; All versions No fix listed No fix yet
debian/django-haystack(Debian 13) = 3.3.0-2; All versions No fix listed No fix yet
debian/django-haystack(Debian 14) = 3.3.0-2; All versions No fix listed No fix yet
ubuntu/django-haystack(Ubuntu 22.04) All versions No fix listed No fix yet
ubuntu/django-haystack(Ubuntu 24.04) All versions No fix listed No fix yet
ubuntu/django-haystack(Ubuntu 26.04) All versions No fix listed No fix yet
ubuntu/django-haystack(Ubuntu 26.10) All versions No fix listed No fix yet
pypi django-haystack(PyPI) < 3.4.0; = 1.0.0-final; = 1.0.0-rc1; = 1.0.0b +44 more 3.4.0 Fixed
django-haystack = 3.0; = 3.1; = 3.2; = 3.3.0 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
pypi django-haystack(PyPI) < 3.4.0 3.4.0
pypi django-haystack(PyPI) = 1.0.0-final No fix listed
pypi django-haystack(PyPI) = 1.0.0-rc1 No fix listed
pypi django-haystack(PyPI) = 1.0.0b No fix listed
pypi django-haystack(PyPI) = 1.0.1-final No fix listed
pypi django-haystack(PyPI) = 1.0.2-final No fix listed
pypi django-haystack(PyPI) = 1.1.0 No fix listed
pypi django-haystack(PyPI) = 1.2.0 No fix listed
pypi django-haystack(PyPI) = 1.2.1 No fix listed
pypi django-haystack(PyPI) = 1.2.2 No fix listed
pypi django-haystack(PyPI) = 1.2.3 No fix listed
pypi django-haystack(PyPI) = 1.2.4 No fix listed
pypi django-haystack(PyPI) = 1.2.5 No fix listed
pypi django-haystack(PyPI) = 1.2.6 No fix listed
pypi django-haystack(PyPI) = 1.2.7 No fix listed
pypi django-haystack(PyPI) = 2.0.0 No fix listed
pypi django-haystack(PyPI) = 2.1.0 No fix listed
pypi django-haystack(PyPI) = 2.2.0 No fix listed
pypi django-haystack(PyPI) = 2.2.1 No fix listed
pypi django-haystack(PyPI) = 2.3.0 No fix listed
pypi django-haystack(PyPI) = 2.3.1 No fix listed
pypi django-haystack(PyPI) = 2.3.2 No fix listed
pypi django-haystack(PyPI) = 2.4.0 No fix listed
pypi django-haystack(PyPI) = 2.4.0rc1 No fix listed
pypi django-haystack(PyPI) = 2.4.0rc2 No fix listed
Show 39 more
ProductAffected versionsFixed in
pypi django-haystack(PyPI) = 2.4.1 No fix listed
pypi django-haystack(PyPI) = 2.5.0 No fix listed
pypi django-haystack(PyPI) = 2.5.1 No fix listed
pypi django-haystack(PyPI) = 2.5.dev0 No fix listed
pypi django-haystack(PyPI) = 2.5.dev1 No fix listed
pypi django-haystack(PyPI) = 2.5.dev2 No fix listed
pypi django-haystack(PyPI) = 2.6.0 No fix listed
pypi django-haystack(PyPI) = 2.6.1 No fix listed
pypi django-haystack(PyPI) = 2.7.0 No fix listed
pypi django-haystack(PyPI) = 2.7.dev0 No fix listed
pypi django-haystack(PyPI) = 2.7.dev1 No fix listed
pypi django-haystack(PyPI) = 2.8.0 No fix listed
pypi django-haystack(PyPI) = 2.8.1 No fix listed
pypi django-haystack(PyPI) = 3.0 No fix listed
pypi django-haystack(PyPI) = 3.0b1 No fix listed
pypi django-haystack(PyPI) = 3.0b2 No fix listed
pypi django-haystack(PyPI) = 3.1.0 No fix listed
pypi django-haystack(PyPI) = 3.1.1 No fix listed
pypi django-haystack(PyPI) = 3.2.0 No fix listed
pypi django-haystack(PyPI) = 3.2.1 No fix listed
pypi django-haystack(PyPI) = 3.2.dev0 No fix listed
pypi django-haystack(PyPI) = 3.3.0 No fix listed
pypi django-haystack(PyPI) = 3.3b2 No fix listed
django-haystack = 3.0 No fix listed
django-haystack = 3.1 No fix listed
django-haystack = 3.2 No fix listed
django-haystack = 3.3.0 No fix listed
debian/django-haystack(Debian:12) All versions No fix listed
debian/django-haystack(Debian:12) = 3.2.1-1 No fix listed
debian/django-haystack(Debian:12) = 3.3.0-1 No fix listed
debian/django-haystack(Debian:12) = 3.3.0-2 No fix listed
debian/django-haystack(Debian:13) All versions No fix listed
debian/django-haystack(Debian:13) = 3.3.0-2 No fix listed
debian/django-haystack(Debian:14) All versions No fix listed
debian/django-haystack(Debian:14) = 3.3.0-2 No fix listed
ubuntu/django-haystack(Ubuntu:22.04) All versions No fix listed
ubuntu/django-haystack(Ubuntu:24.04) All versions No fix listed
ubuntu/django-haystack(Ubuntu:26.04) All versions No fix listed
ubuntu/django-haystack(Ubuntu:26.10) All versions No fix listed

References