CVE-2026-105315 django-haystack more_like_this Template Tag elasticsearch_backend.py _to_python eval injection
- 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.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| 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
| Product | Affected versions | Fixed 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
| Product | Affected versions | Fixed 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
- github.com exploit vendor-advisory
- github.com patch
- github.com product
- github.com patch
- VDB-413523 | django-haystack more_like_this Template Tag elasticsearch_backend.py _to_python eval injection technical-description vdb-entry
- VDB-413523 | CTI Indicators (IOB, IOC, IOA) permissions-required signature
- CVE-2026-105315 | CVE Analysis and Report third-party-advisory
- Submit #978642 | django-haystack 3.3.0 Code Execution third-party-advisory
- Red Hat CVE page vendor-advisory
- Red Hat Bugzilla 2545910 issue-tracking
- www.cve.org
- nvd.nist.gov
- Debian Security Tracker CVE-2026-105315 vendor-advisory
- github.com
- Ubuntu CVE tracker vendor-advisory
- bugs.debian.org issue-tracking
- ENISA EUVD EUVD-2026-92429 third-party-advisory