Cyber Security News

Multiple Django Vulnerabilities Enables SQL Injection and Denial-of-Service Attacks

The development team has officially released essential security updates to address two significant vulnerabilities found in the popular web framework.

These issues range from high to moderate severity. They could allow attackers to compromise database integrity or crash servers through resource exhaustion.

The most critical flaw, tracked as CVE-2025-13372, is a high-severity SQL injection vulnerability affecting projects that use PostgreSQL. The issue lies within the FilteredRelation class, specifically how it handles column aliases.

Attackers can exploit this by crafting a specific dictionary (using dictionary expansion) passed to QuerySet.annotate() or QuerySet.alias(). If successful, this manipulation allows malicious SQL code to be injected into the database query.

The second vulnerability, CVE-2025-64460, is a moderate-severity issue involving the XML serializer.

Django discovered that the method django.core.serializers.xml_serializer. getInnerText() suffers from algorithmic complexity issues.

CVE IDVulnerability TypeSeverity
CVE-2025-13372SQL InjectionHigh
CVE-2025-64460Denial of Service (DoS)Moderate

When an application processes specially crafted XML input, the serializer repeatedly concatenates strings as it collects text nodes.

Django has released security updates 5.2.9, 5.1.15, and 4.2.27, and developers are strongly advised to upgrade right away to avoid possible attacks.

This recursive process can lead to “superlinear” computation time, causing the server’s CPU and memory usage to spike.

A remote attacker could use this to trigger a denial-of-service (DoS) attack, effectively crashing the service or making it unresponsive.

These vulnerabilities affect all supported versions of Django, including the main branch and the upcoming Django 6.0 (currently in release candidate status).

Developers using the main branch or the Django 6.0 release candidate should pull the latest commits from the official repository to ensure their projects are secure.

Follow us on Google News, LinkedIn, and X for daily cybersecurity updates. Contact us to feature your stories.

Abinaya

Abi is a Security Editor and fellow reporter with Cyber Security News. She is covering various cyber security incidents happening in the Cyber Space.

Recent Posts

Hackers Target AI Infrastructure With RCE, Prompt Injection and API Key Theft

Hackers are actively probing AI systems, turning exposed gateways and agent tools into routes for…

4 hours ago

Hackers Make Phishing Pages Change Their Code Every Time Someone Opens Them

Hackers are making some phishing pages harder to track by changing the code delivered to…

4 hours ago

Iran-Linked Hackers Reportedly Knock UK Power Plant Offline for Four Days

A cyber incident reportedly forced a British power plant to halt operations for about four…

5 hours ago

Russian Hackers Use New HOOKEDGE Malware to Spy on European Defense and Diplomatic Targets

Russian hackers have used a new backdoor called HOOKEDGE to target defense manufacturers, government bodies,…

6 hours ago

Ransomware Gang Claims AI Can Analyze 700GB of Stolen Data Every Hour

TITAN ransomware is pairing file encryption with an ambitious claim: artificial intelligence that can sort…

6 hours ago

Hackers Compromise Hundreds of WordPress Sites to Deploy Amatera Stealer via ClickFix

A fake student resume is being used to place a remote-access tool on researchers’ Windows…

7 hours ago