---
id: CVE-2025-64460
title: >-
  Django: Django: Algorithmic complexity in XML Deserializer leads to denial of
  service (CVE-2025-64460)
summary: >-
  A flaw was found in Django. This vulnerability allows a remote attacker to
  cause a potential denial-of-service (DoS) attack triggering Central Processing
  Unit (CPU) and memory exhaustion via specially crafted Extensible Markup
  Language (XM…
severity: high
cvss: 7.5
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'
cvssSource: vendor
cwe: CWE-407
vendor: Red Hat
product: Red Hat Ansible Automation Platform 2.5 for RHEL 8
affected:
  - ansible_automation_platform_2_4_for_rhel 8
  - ansible_automation_platform_2_5_for_rhel 8
  - ansible_automation_platform_2_4_for_rhel 9
  - ansible_automation_platform_2_5_for_rhel 9
  - ansible_automation_platform_2_6_for_rhel 9
  - ansible_automation_platform 2.4
  - ansible_automation_platform 2.5
  - discovery 2
patched:
  - ansible_automation_platform_2_4_for_rhel 8
  - ansible_automation_platform_2_5_for_rhel 8
  - ansible_automation_platform_2_4_for_rhel 9
  - ansible_automation_platform_2_5_for_rhel 9
  - ansible_automation_platform_2_6_for_rhel 9
  - ansible_automation_platform 2.4
  - ansible_automation_platform 2.5
  - discovery 2
published: '2025-12-02'
updated: '2026-10-16'
sourceUpdated: '2026-10-16T10:47:36+00:00'
source: CSAF
sourceUrl: 'https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-64460.json'
references:
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-64460.json
  - url: 'https://access.redhat.com/security/cve/CVE-2025-64460'
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2418366'
  - url: 'https://www.cve.org/CVERecord?id=CVE-2025-64460'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2025-64460'
  - url: 'https://docs.djangoproject.com/en/dev/releases/security/'
  - url: 'https://groups.google.com/g/django-announce'
  - url: 'https://www.djangoproject.com/weblog/2025/dec/02/security-releases/'
  - url: 'https://access.redhat.com/errata/RHSA-2026:1497'
  - url: 'https://access.redhat.com/errata/RHSA-2026:1506'
  - url: 'https://access.redhat.com/errata/RHSA-2026:1249'
  - url: 'https://access.redhat.com/errata/RHSA-2026:1599'
  - url: 'https://access.redhat.com/errata/RHSA-2026:1609'
  - url: 'https://access.redhat.com/errata/RHSA-2026:0414'
  - url: >-
      https://github.com/django/django/commit/0db9ea4669312f1f4973e09f4bca06ab9c1ec74b
  - url: >-
      https://github.com/django/django/commit/1dbd07a608e495a0c229edaaf84d58d8976313b5
  - url: >-
      https://github.com/django/django/commit/4d2b8803bebcdefd2b76e9e8fc528d5fddea93f0
  - url: >-
      https://github.com/django/django/commit/99e7d22f55497278d0bcb2e15e72ef532e62a31d
  - url: 'https://docs.djangoproject.com/en/dev/releases/security'
  - url: 'https://github.com/django/django'
  - url: >-
      https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2025-109.yaml
  - url: 'https://www.djangoproject.com/weblog/2025/dec/02/security-releases'
tags:
  - csaf
  - vex
  - red-hat
  - osv
  - pip
epss: 0.02085
epssPercentile: 0.8147
aliases:
  - GHSA-vrcr-9hj9-jcg6
  - BIT-django-2025-64460
  - PYSEC-2025-109
ecosystem: pip
ingestedAt: '2026-09-12T03:13:01.731Z'
---

## Overview

A flaw was found in Django. This vulnerability allows a remote attacker to cause a potential denial-of-service (DoS) attack triggering Central Processing Unit (CPU) and memory exhaustion via specially crafted Extensible Markup Language (XML) input processed by the XML Deserializer.

## Vendor advisories

- **RHSA-2026:1497** · Red Hat · fixed in: Red Hat Ansible Automation Platform 2.4 for RHEL 8, Red Hat Ansible Automation Platform 2.4 for RHEL 9 · released 2026-01-28 · [advisory](https://access.redhat.com/errata/RHSA-2026:1497)
- **RHSA-2026:1506** · Red Hat · fixed in: Red Hat Ansible Automation Platform 2.5 for RHEL 8, Red Hat Ansible Automation Platform 2.5 for RHEL 9 · released 2026-01-28 · [advisory](https://access.redhat.com/errata/RHSA-2026:1506)
- **RHSA-2026:1249** · Red Hat · fixed in: Red Hat Ansible Automation Platform 2.6 for RHEL 9 · released 2026-01-26 · [advisory](https://access.redhat.com/errata/RHSA-2026:1249)
- **RHSA-2026:1599** · Red Hat · fixed in: Red Hat Ansible Automation Platform 2.4 · released 2026-01-29 · [advisory](https://access.redhat.com/errata/RHSA-2026:1599)
- **RHSA-2026:1609** · Red Hat · fixed in: Red Hat Ansible Automation Platform 2.5 · released 2026-01-30 · [advisory](https://access.redhat.com/errata/RHSA-2026:1609)
- **RHSA-2026:0414** · Red Hat · fixed in: Red Hat Discovery 2 · released 2026-01-08 · [advisory](https://access.redhat.com/errata/RHSA-2026:0414)

**Django: Django: Algorithmic complexity in XML Deserializer leads to denial of service** — rated Important by Red Hat. Released 2025-12-02, updated 2026-10-16.

Fixed:

- Red Hat Ansible Automation Platform 2.4 for RHEL 8
- Red Hat Ansible Automation Platform 2.5 for RHEL 8
- Red Hat Ansible Automation Platform 2.4 for RHEL 9
- Red Hat Ansible Automation Platform 2.5 for RHEL 9
- Red Hat Ansible Automation Platform 2.6 for RHEL 9
- Red Hat Ansible Automation Platform 2.4
- Red Hat Ansible Automation Platform 2.5
- Red Hat Discovery 2

Not affected:

- Red Hat Ansible Automation Platform 2.6 for RHEL 10
- Red Hat Ansible Automation Platform 2.4 for RHEL 8
- Red Hat Ansible Automation Platform 2.5 for RHEL 8
- Red Hat Ansible Automation Platform 2.4 for RHEL 9
- Red Hat Ansible Automation Platform 2.5 for RHEL 9
- Red Hat Ansible Automation Platform 2.6 for RHEL 9
- Red Hat Ansible Automation Platform 2.4
- Red Hat Ansible Automation Platform 2.5
- Red Hat Discovery 2
- OpenShift Service Mesh 2

## Remediation

For details on how to apply this update, refer to Ansible Automation Platform documentation. https://access.redhat.com/errata/RHSA-2026:1497
Red Hat Ansible Automation Platform https://access.redhat.com/errata/RHSA-2026:1506
For details on how to apply this update, refer to Ansible Automation Platform documentation. https://access.redhat.com/errata/RHSA-2026:1249

Workarounds / mitigations:

- Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.

## Package advisory (CVE-2025-64460)

Affected packages:

- `django >= 5.2a1, < 5.2.9`
- `django >= 5.1a1, < 5.1.15`
- `django >= 4.2a1, < 4.2.27`

Patched in:

- `django 5.2.9`
- `django 5.1.15`
- `django 4.2.27`

Source: https://osv.dev/vulnerability/GHSA-vrcr-9hj9-jcg6
