Python Library Django 4.2.x < 4.2.22 / 5.1.x < 5.1.10 / 5.2.x < 5.2.2 Log Injection

medium Nessus Plugin ID 237889

Synopsis

A Python library installed on the remote host is affected by a log injection vulnerability.

Description

The detected version of the Django Python package, Django, is 4.2.x prior to 4.2.22, 5.1.x prior to 5.1.10 or 5.2.x prior to 5.2.2. It is, therefore, affected by a log injection vulnerability as disclosed in Django's June 4th, 2025 security advisory. Internal HTTP response logging does not escape request.path, which allows remote attackers to potentially manipulate log output via crafted URLs. This may lead to log injection or forgery when logs are viewed in terminals or processed by external systems.

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

Solution

Upgrade to Django version 4.2.22, 5.1.10, 5.2.2 or later.

See Also

https://www.djangoproject.com/weblog/2025/jun/04/security-releases/

Plugin Details

Severity: Medium

ID: 237889

File Name: python_django_5_2_2.nasl

Version: 1.1

Type: local

Agent: windows, macosx, unix

Family: Misc.

Published: 6/6/2025

Updated: 6/6/2025

Configuration: Enable thorough checks (optional)

Supported Sensors: Nessus Agent, Nessus

Risk Information

VPR

Risk Factor: Low

Score: 3.2

CVSS v2

Risk Factor: Low

Base Score: 2.6

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

CVSS Score Source: CVE-2025-48432

CVSS v3

Risk Factor: Medium

Base Score: 4

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

Vulnerability Information

CPE: cpe:/a:djangoproject:django

Patch Publication Date: 6/4/2025

Vulnerability Publication Date: 6/4/2025

Reference Information

CVE: CVE-2025-48432

IAVA: 2025-A-0399