FreeBSD : Django -- multiple vulnerabilities (0db46f84-b9fa-11ec-89df-080027240888)

critical Nessus Plugin ID 159654

Language:

Synopsis

The remote FreeBSD host is missing one or more security-related updates.

Description

The version of FreeBSD installed on the remote host is prior to tested version. It is, therefore, affected by multiple vulnerabilities as referenced in the 0db46f84-b9fa-11ec-89df-080027240888 advisory.

- A SQL injection issue was discovered in QuerySet.explain() in Django 2.2 before 2.2.28, 3.2 before 3.2.13, and 4.0 before 4.0.4. This occurs by passing a crafted dictionary (with dictionary expansion) as the
**options argument, and placing the injection payload in an option name. (CVE-2022-28347)

- An issue was discovered in Django 2.2 before 2.2.28, 3.2 before 3.2.13, and 4.0 before 4.0.4.
QuerySet.annotate(), aggregate(), and extra() methods are subject to SQL injection in column aliases via a crafted dictionary (with dictionary expansion) as the passed **kwargs. (CVE-2022-28346)

Note that Nessus has not tested for these issues but has instead relied only on the application's self-reported version number.

Solution

Update the affected packages.

See Also

https://www.djangoproject.com/weblog/2022/apr/11/security-releases/

http://www.nessus.org/u?8f2254a6

Plugin Details

Severity: Critical

ID: 159654

File Name: freebsd_pkg_0db46f84b9fa11ec89df080027240888.nasl

Version: 1.3

Type: local

Published: 4/12/2022

Updated: 5/3/2022

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 5.9

CVSS v2

Risk Factor: High

Base Score: 7.5

Temporal Score: 5.5

Vector: CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P

CVSS Score Source: CVE-2022-28347

CVSS v3

Risk Factor: Critical

Base Score: 9.8

Temporal Score: 8.5

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

Vulnerability Information

CPE: p-cpe:/a:freebsd:freebsd:py31-django40, p-cpe:/a:freebsd:freebsd:py310-django22, p-cpe:/a:freebsd:freebsd:py310-django32, p-cpe:/a:freebsd:freebsd:py37-django22, p-cpe:/a:freebsd:freebsd:py37-django32, p-cpe:/a:freebsd:freebsd:py38-django22, p-cpe:/a:freebsd:freebsd:py38-django32, p-cpe:/a:freebsd:freebsd:py38-django40, p-cpe:/a:freebsd:freebsd:py39-django22, p-cpe:/a:freebsd:freebsd:py39-django32, p-cpe:/a:freebsd:freebsd:py39-django40, cpe:/o:freebsd:freebsd

Required KB Items: Host/local_checks_enabled, Host/FreeBSD/release, Host/FreeBSD/pkg_info

Exploit Ease: No known exploits are available

Patch Publication Date: 4/12/2022

Vulnerability Publication Date: 4/2/2022

Reference Information

CVE: CVE-2022-28346, CVE-2022-28347