UBUNTU-CVE-2026-105315

Source
https://ubuntu.com/security/CVE-2026-105315
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-105315.json
JSON Data
https://api.osv.dev/v1/vulns/UBUNTU-CVE-2026-105315
Upstream
Published
2026-10-05T13:16:00Z
Modified
2026-10-17T12:59:47Z
Severity
  • 4.7 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:L CVSS Calculator
  • 2.0 (Low) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P CVSS Calculator
  • Ubuntu - medium
Summary
[none]
Details

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.

References

Affected packages

Ubuntu:16.04:LTS
django-haystack

Package

Name
django-haystack
Purl
pkg:deb/ubuntu/django-haystack?arch=source&distro=xenial

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected

Affected versions

2.*
2.4.0-2
2.4.1-1

Ecosystem specific

{
    "binaries":  [
        {
            "binary_name":  "python-django-haystack",
            "binary_version":  "2.4.1-1"
        },
        {
            "binary_name":  "python3-django-haystack",
            "binary_version":  "2.4.1-1"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-105315.json"
Ubuntu:18.04:LTS
django-haystack

Package

Name
django-haystack
Purl
pkg:deb/ubuntu/django-haystack?arch=source&distro=bionic

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected

Affected versions

2.*
2.6.1-1
2.7.0-1
2.8.0-1

Ecosystem specific

{
    "binaries":  [
        {
            "binary_name":  "python-django-haystack",
            "binary_version":  "2.8.0-1"
        },
        {
            "binary_name":  "python3-django-haystack",
            "binary_version":  "2.8.0-1"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-105315.json"
Ubuntu:20.04:LTS
django-haystack

Package

Name
django-haystack
Purl
pkg:deb/ubuntu/django-haystack?arch=source&distro=focal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected

Affected versions

2.*
2.8.1-3

Ecosystem specific

{
    "binaries":  [
        {
            "binary_name":  "python3-django-haystack",
            "binary_version":  "2.8.1-3"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-105315.json"
Ubuntu:22.04:LTS
django-haystack

Package

Name
django-haystack
Purl
pkg:deb/ubuntu/django-haystack?arch=source&distro=jammy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected

Affected versions

3.*
3.0-1
3.1.1-1

Ecosystem specific

{
    "binaries":  [
        {
            "binary_name":  "python3-django-haystack",
            "binary_version":  "3.1.1-1"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-105315.json"
Ubuntu:24.04:LTS
django-haystack

Package

Name
django-haystack
Purl
pkg:deb/ubuntu/django-haystack?arch=source&distro=noble

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected

Affected versions

3.*
3.2.1-1

Ecosystem specific

{
    "binaries":  [
        {
            "binary_name":  "python3-django-haystack",
            "binary_version":  "3.2.1-1"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-105315.json"
Ubuntu:26.04:LTS
django-haystack

Package

Name
django-haystack
Purl
pkg:deb/ubuntu/django-haystack?arch=source&distro=resolute

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected

Affected versions

3.*
3.3.0-2
3.3.0-2build1

Ecosystem specific

{
    "binaries":  [
        {
            "binary_name":  "python3-django-haystack",
            "binary_version":  "3.3.0-2build1"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-105315.json"
Ubuntu:26.10
django-haystack

Package

Name
django-haystack
Purl
pkg:deb/ubuntu/django-haystack?arch=source&distro=stonking

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected

Affected versions

3.*
3.3.0-2build1

Ecosystem specific

{
    "binaries":  [
        {
            "binary_name":  "python3-django-haystack",
            "binary_version":  "3.3.0-2build1"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-105315.json"