p PatchFirst

CVE-2026-105315

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

This page contains facts from public vulnerability sources. Check the original advisory before updating.

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.

CVSS 5.1 · Medium · EPSS 0.3% · Fix available

Published
Updated

Stack: system · python

Affected products and versions

  • django-haystack

    Versions
    • 3.0: Affected
    • 3.1: Affected
    • 3.2: Affected
    • 3.3.0: Affected
    • 3.4.0: Not affected

    Update to 3.4.0

  • django-haystack Debian:12

    Versions
    • 3.2.1-1
    • 3.3.0-1
    • 3.3.0-2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • django-haystack Debian:13

    Versions
    • 3.3.0-2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • django-haystack Debian:14

    Versions
    • 3.3.0-2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • django-haystack PyPI

    Versions
    • 1.0.0-final
    • 1.0.0-rc1
    • 1.0.0b
    • 1.0.1-final
    • 1.0.2-final
    • 1.1.0
    • 1.2.0
    • 1.2.1
    • 1.2.2
    • 1.2.3
    • 1.2.4
    • 1.2.5
    • 1.2.6
    • 1.2.7
    • 2.0.0
    • 2.1.0
    • 2.2.0
    • 2.2.1
    • 2.3.0
    • 2.3.1
    • 2.3.2
    • 2.4.0
    • 2.4.0rc1
    • 2.4.0rc2
    • 2.4.1
    • 2.5.0
    • 2.5.1
    • 2.5.dev0
    • 2.5.dev1
    • 2.5.dev2
    • 2.6.0
    • 2.6.1
    • 2.7.0
    • 2.7.dev0
    • 2.7.dev1
    • 2.8.0
    • 2.8.1
    • 3.0
    • 3.0b1
    • 3.0b2
    • 3.1.0
    • 3.1.1
    • 3.2.0
    • 3.2.1
    • 3.2.dev0
    • 3.3.0
    • 3.3b2
    Affected ranges
    • ECOSYSTEM: < 3.4.0

    Update to 3.4.0

  • django-haystack Ubuntu:16.04:LTS

    Versions
    • 2.4.0-2
    • 2.4.1-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • django-haystack Ubuntu:18.04:LTS

    Versions
    • 2.6.1-1
    • 2.7.0-1
    • 2.8.0-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • django-haystack Ubuntu:20.04:LTS

    Versions
    • 2.8.1-3
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • django-haystack Ubuntu:22.04:LTS

    Versions
    • 3.0-1
    • 3.1.1-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • django-haystack Ubuntu:24.04:LTS

    Versions
    • 3.2.1-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • django-haystack Ubuntu:26.10

    Versions
    • 3.3.0-2build1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • django-haystack Ubuntu:26.04:LTS

    Versions
    • 3.3.0-2
    • 3.3.0-2build1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

Original sources

Check your server →