Skip to main content
CVE-2025-48432VulnerabilityPublished Updated

CVE-2025-48432: djangoproject Django · Log Injection

Affects djangoproject DjangoSource CVE Database V5

0

Not known to be exploited · CVSS 4.0 Medium · fixed in 5.2.3 : update djangoproject Django when convenient.

Data as of 26 Oct 2026, 06:26 UTC

CVSS 3.1 base score
4.0Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.7% chance of exploitation in 30 days – higher than 54% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 5.2.3, 5.1.11, 4.2.23
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:L/A:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 5 Jun 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-26.

What to do

Upgrade djangoproject Django to 5.2.3, 5.1.11 or 4.2.23.

Affected software

ProductAffectedFixed in
PyPIdjangopkg:pypi/djangoOther threatsAffected
  • <4.2.23
  • <5.1.11
  • <5.2.3
Fixed in
  • 4.2.23
  • 5.1.11
  • 5.2.3

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

1. Upgrade Django to the fixed versions: 4.2.23, 5.1.11, or 5.2.3 as soon as possible to ensure the logging mechanism properly escapes request paths. 2. In the interim, implement log sanitization at the logging aggregation or SIEM level to detect and neutralize suspicious log entries that may indicate injection attempts. 3. Restrict access to logs and ensure that log viewers or terminals used to inspect logs properly handle escape sequences to prevent log forging or terminal manipulation. 4. Monitor web server and application logs for unusual URL patterns that could indicate attempts to exploit this vulnerability. 5. Educate security and operations teams about the risks of log injection and encourage validation of log data during incident investigations. 6. Consider deploying web application firewalls (WAFs) with rules to detect and block suspicious URL patterns that could be used to exploit this vulnerability. 7. Review and harden log processing pipelines to ensure that external systems consuming logs are resilient to malformed or malicious log entries.

Description

An issue was discovered in Django 5.2 before 5.2.3, 5.1 before 5.1.11, and 4.2 before 4.2.23. 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.

References

Community reviews

Loading reviews…