CVE Catalog

CVE-2026-105315

MediumCVSS 4.7
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.25%

16th percentile - higher than 16% of all known CVEs

Summary

In django-haystack up to 3.3.0, a vulnerability was found in the _to_python function in elasticsearch_backend.py, in the more_like_this template tag handler component. Manipulation of the result_class argument leads to improper neutralization of directives in dynamically evaluated code.

Risk Assessment

A remote attacker can execute arbitrary code by injecting directives into dynamically evaluated code, potentially leading to full application compromise. The exploit has been publicly disclosed.

Recommendation

Update django-haystack to version 3.4.0 or later, which contains the patch eb05f193c9771a68dcc8cfac6674a0d48a52ee9d.

Related vulnerabilities

Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS