The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2025-48432

CVE-2025-48432: Django Log Injection Vulnerability

CVE-2025-48432 is a log injection vulnerability in Djangoproject Django that allows attackers to manipulate log output through crafted URLs. This article covers the technical details, affected versions, and mitigation steps.

Updated: January 22, 2026

CVE-2025-48432 Overview

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.

Critical Impact

Remote attackers can inject malicious content into application logs through crafted URL paths, potentially leading to log forgery, terminal manipulation, or exploitation of downstream log processing systems.

Affected Products

  • Django versions 5.2 before 5.2.3
  • Django versions 5.1 before 5.1.11
  • Django versions 4.2 before 4.2.23
  • Debian Linux 11.0

Discovery Timeline

  • June 4, 2025 - Django Project releases security advisory
  • June 5, 2025 - CVE CVE-2025-48432 published to NVD
  • October 15, 2025 - Last updated in NVD database

Technical Details for CVE-2025-48432

Vulnerability Analysis

This vulnerability is classified as CWE-117 (Improper Output Neutralization for Logs), a log injection flaw affecting Django's internal HTTP response logging mechanism. The core issue stems from the framework's failure to properly escape or sanitize the request.path value before writing it to application logs.

When Django logs HTTP responses, the request path is included in the log output without adequate sanitization. An attacker can craft URLs containing special characters, ANSI escape sequences, or newline characters that get written directly into the log files. This can result in several attack scenarios including log entry forgery (creating fake log entries that appear legitimate), terminal manipulation when logs are viewed in consoles, and potential exploitation of log parsing systems that process these logs downstream.

The attack is network-accessible and requires no authentication or user interaction, making it relatively easy to exploit across the internet against vulnerable Django deployments.

Root Cause

The root cause lies in Django's HTTP response logging functionality, which directly incorporates the request.path value into log messages without proper output neutralization. The logging code fails to escape special characters such as newlines (\n), carriage returns (\r), and ANSI escape sequences before writing to log files. This oversight allows attackers to inject arbitrary content into logs by including these characters in URL paths.

Attack Vector

The attack is executed remotely over the network by sending HTTP requests with specially crafted URL paths to a vulnerable Django application. An attacker constructs URLs containing malicious payloads embedded in the path component, such as newline characters to inject fake log entries, ANSI escape codes to manipulate terminal output when logs are viewed, or crafted content designed to exploit log aggregation and analysis tools.

When the Django application processes these requests and logs the HTTP response, the unsanitized path content is written directly to the logs, enabling the attacker's payload to execute its intended effect.

Detection Methods for CVE-2025-48432

Indicators of Compromise

  • Unusual characters or escape sequences appearing in HTTP access logs
  • Log entries containing unexpected newline characters or ANSI codes
  • Suspicious URL patterns with encoded special characters in request paths
  • Anomalous log formatting or unexpected log entries appearing out of sequence

Detection Strategies

  • Implement log integrity monitoring to detect injected or malformed log entries
  • Deploy web application firewalls (WAF) to filter requests containing suspicious characters in URL paths
  • Monitor for HTTP requests with unusual URL encoding patterns targeting Django applications
  • Review application logs for evidence of terminal escape sequences or control characters

Monitoring Recommendations

  • Enable verbose logging for Django applications and correlate with web server access logs
  • Configure SIEM systems to alert on log entries containing control characters or escape sequences
  • Implement application-level monitoring for requests with abnormal URL path patterns
  • Regularly audit log files for signs of tampering or injection attempts

How to Mitigate CVE-2025-48432

Immediate Actions Required

  • Upgrade Django to version 5.2.3, 5.1.11, or 4.2.23 or later immediately
  • Review existing logs for potential evidence of exploitation attempts
  • Implement input validation at the web server level to filter malicious URL patterns
  • Consider deploying a WAF with rules to block requests containing control characters in paths

Patch Information

Django Project has released security patches addressing this vulnerability. Organizations should upgrade to the following patched versions:

  • Django 5.2.3 or later for the 5.2.x branch
  • Django 5.1.11 or later for the 5.1.x branch
  • Django 4.2.23 or later for the 4.2.x branch

Patch details and release notes are available via the Django Security Releases Documentation and the Django Weblog Security Releases announcement.

Workarounds

  • Implement custom middleware to sanitize request.path before logging
  • Configure web server or reverse proxy to reject URLs containing control characters
  • Use log sanitization at the log aggregation layer to strip dangerous characters
  • Disable verbose HTTP response logging temporarily until patches can be applied
bash
# Example: Upgrade Django to patched version
pip install --upgrade Django>=5.2.3

# Verify installed version
python -c "import django; print(django.get_version())"

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeOther

  • Vendor/TechDjangoproject Django

  • SeverityMEDIUM

  • CVSS Score5.3

  • EPSS Probability0.11%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-117
  • Technical References
  • Django Weblog Bugfix Releases

  • OpenWall OSS-Security Mailing List Update

  • OpenWall OSS-Security Mailing List Update

  • OpenWall OSS-Security Mailing List Update

  • OpenWall OSS-Security Mailing List Update
  • Vendor Resources
  • Django Security Releases Documentation

  • Django Announcement Group

  • Django Weblog Security Releases
  • Related CVEs
  • CVE-2026-25673: Djangoproject Django DoS Vulnerability

  • CVE-2026-1312: Djangoproject Django SQLi Vulnerability

  • CVE-2026-1207: Django SQLi Vulnerability in RasterField

  • CVE-2025-13473: Django Auth Bypass Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English