Debian DLA-2906-1 : python-django - LTS security update

medium Nessus Plugin ID 157324

Synopsis

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

Description

The remote Debian 9 host has packages installed that are affected by multiple vulnerabilities as referenced in the dla-2906 advisory.

It was discovered that there were two vulnerabilities in Django, a popular Python-based web development framework: CVE-2022-22818 Possible XSS via {% debug %} template tag. The {% debug %} template tag didn't properly encode the current context, posing an XSS attack vector. In order to avoid this vulnerability, {% debug %} no longer outputs information when the DEBUG setting is False, and it ensures all context variables are correctly escaped when the DEBUG setting is True. CVE-2022-23833 Denial-of-service possibility in file uploads Passing certain inputs to multipart forms could result in an infinite loop when parsing files. For Debian 9 Stretch, these problems have been fixed in version 1:1.10.7-2+deb9u15. We recommend that you upgrade your python-django packages. Further information about Debian LTS security advisories, how to apply these updates to your system and frequently asked questions can be found at:
https://wiki.debian.org/LTS

Tenable has extracted the preceding description block directly from the Debian security advisory.

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

Solution

Upgrade the python-django packages.

For Debian 9 Stretch, these problems have been fixed in version 1

See Also

https://www.debian.org/lts/security/2022/dla-2906

https://security-tracker.debian.org/tracker/CVE-2022-22818

https://security-tracker.debian.org/tracker/CVE-2022-23833

https://packages.debian.org/source/stretch/python-django

Plugin Details

Severity: Medium

ID: 157324

File Name: debian_DLA-2906.nasl

Version: 1.5

Type: local

Agent: unix

Published: 2/2/2022

Updated: 1/24/2025

Supported Sensors: Frictionless Assessment Agent, Nessus Agent, Agentless Assessment, Continuous Assessment, Nessus

Risk Information

VPR

Risk Factor: Low

Score: 3.8

CVSS v2

Risk Factor: Medium

Base Score: 4.3

Temporal Score: 3.4

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

CVSS Score Source: CVE-2022-22818

CVSS v3

Risk Factor: Medium

Base Score: 6.1

Temporal Score: 5.5

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

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

Vulnerability Information

CPE: p-cpe:/a:debian:debian_linux:python-django-common, cpe:/o:debian:debian_linux:9.0, p-cpe:/a:debian:debian_linux:python-django, p-cpe:/a:debian:debian_linux:python-django-doc, p-cpe:/a:debian:debian_linux:python3-django

Required KB Items: Host/local_checks_enabled, Host/Debian/release, Host/Debian/dpkg-l

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 2/1/2022

Vulnerability Publication Date: 2/1/2022

Reference Information

CVE: CVE-2022-22818, CVE-2022-23833