CVE-2025-14550

7.5 HIGH

📋 TL;DR

This vulnerability in Django's ASGIRequest component allows remote attackers to cause denial-of-service by sending crafted requests with multiple duplicate headers. It affects Django versions 6.0 before 6.0.2, 5.2 before 5.2.11, and 4.2 before 4.2.28, potentially impacting earlier unsupported series as well.

💻 Affected Systems

Products:
  • Django
Versions: 6.0 before 6.0.2, 5.2 before 5.2.11, 4.2 before 4.2.28 (earlier unsupported series may also be affected)
Operating Systems: All
Default Config Vulnerable: ⚠️ Yes
Notes: Affects Django deployments using ASGI interface; WSGI deployments are not affected.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete service unavailability due to resource exhaustion from crafted requests overwhelming the server.

🟠

Likely Case

Degraded performance or intermittent service disruptions from repeated exploitation attempts.

🟢

If Mitigated

Minimal impact with proper rate limiting, request filtering, and updated Django versions.

🌐 Internet-Facing: HIGH - Remote attackers can exploit without authentication via HTTP requests.
🏢 Internal Only: MEDIUM - Internal attackers could still exploit, but attack surface is smaller.

🎯 Exploit Status

Public PoC: ✅ No
Weaponized: UNKNOWN
Unauthenticated Exploit: ⚠️ Yes
Complexity: LOW

Exploitation requires sending HTTP requests with duplicate headers, which is trivial to implement.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: 6.0.2, 5.2.11, 4.2.28

Vendor Advisory: https://docs.djangoproject.com/en/dev/releases/security/

Restart Required: Yes

Instructions:

1. Check current Django version with 'python -m django --version'. 2. Upgrade to patched version: 'pip install --upgrade django==6.0.2' (or appropriate version). 3. Restart Django application server.

🔧 Temporary Workarounds

Request Header Filtering

all

Configure web server or WAF to reject requests with duplicate headers before reaching Django.

# Example nginx config: map $http_connection $duplicate_header { default 0; ~*duplicate 1; } if ($duplicate_header) { return 444; }

Rate Limiting

all

Implement rate limiting to prevent mass exploitation attempts.

# Django settings: RATE_LIMIT = '100/hour'
# Or use middleware like django-ratelimit

🧯 If You Can't Patch

  • Deploy web application firewall (WAF) with rules to block requests containing duplicate headers.
  • Implement reverse proxy with request sanitization to filter malicious headers before reaching Django.

🔍 How to Verify

Check if Vulnerable:

Check Django version: if using 6.0.x < 6.0.2, 5.2.x < 5.2.11, or 4.2.x < 4.2.28, system is vulnerable.

Check Version:

python -m django --version

Verify Fix Applied:

After upgrade, verify version is 6.0.2, 5.2.11, or 4.2.28 or higher using 'python -m django --version'.

📡 Detection & Monitoring

Log Indicators:

  • Multiple requests with identical headers from single IP
  • Unusual spike in request processing time
  • Error logs showing request parsing failures

Network Indicators:

  • HTTP requests containing duplicate header fields
  • Abnormal request patterns from single sources

SIEM Query:

source="django" AND (message="ASGIRequest" OR message="header") AND status>=400 | stats count by src_ip

🔗 References

📤 Share & Export