CVE-2024-24680: Django Django Denial-of-service Attack Vulnerability

HIGH
Advisory Identifier: GHSA-xxj9-f6rv-m3x4
CVSS 5.9
CWE-770
Published
Advisory Summary

CVE-2024-24680 is a HIGH (CVSS 5.9) django denial-of-service attack vulnerability (CWE-770: Allocation of Resources Without Limits or Throttling) affecting Django libraries in the PyPI ecosystem. The issue involves django denial-of-service attack in the intcomma template filter. Remediation is available by upgrading affected packages to version 3.2.24, 4.2.10, 5.0.2.

CVE-2024-24680 at a Glance

CVE Identifier CVE-2024-24680
GHSA Identifier GHSA-xxj9-f6rv-m3x4
Severity HIGH
CVSS v3.1 Base Score 5.9
CWE Classification CWE-770: Allocation of Resources Without Limits or Throttling
Affected Product Django
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 5.9

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity None (I:N)
Availability High (A:H)

How to Fix CVE-2024-24680

To remediate this vulnerability, upgrade all affected Django dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

Django fixed: 3.2.24
pip install Django>=3.2.24
Django fixed: 4.2.10
pip install Django>=4.2.10
Django fixed: 5.0.2
pip install Django>=5.0.2
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show Django

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2024-24680, inspect your installed packages using pip:

pip show Django

Analyze the terminal output to locate any version of Django in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.2.24), your application is affected.

Note: The pip show Django command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-770: Allocation of Resources Without Limits or Throttling, where the product allocates a reusable resource or group of resources on behalf of an actor without imposing any intended restrictions on the size or number of resources that can be allocated. In Django, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

An issue was discovered in Django 3.2 before 3.2.24, 4.2 before 4.2.10, and Django 5.0 before 5.0.2. The intcomma template filter was subject to a potential denial-of-service attack when used with very long strings.

CVE-2024-24680 Affected Django Versions

3 component(s)
Fixed Versions:
3.2.244.2.105.0.2
Product / Package Ecosystem Affected Versions Fixed Version
Django
PyPI
≥ 3.2
< 3.2.24
3.2.24
Django
PyPI
≥ 4.2
< 4.2.10
4.2.10
Django
PyPI
≥ 5.0
< 5.0.2
5.0.2

References

NVD — CVE-2024-24680 NVD
https://nvd.nist.gov/vuln/detail/CVE-2024-24680
Security Fix Commit FIX COMMIT
https://github.com/django/django/commit/16a8fe18a3b81250f4fa57e3f93f0599dc4895bc
Security Fix Commit FIX COMMIT
https://github.com/django/django/commit/55519d6cf8998fe4c8f5c8abffc2b10a7c3d14e9
Security Fix Commit FIX COMMIT
https://github.com/django/django/commit/572ea07e84b38ea8de0551f4b4eda685d91d09d2
Security Fix Commit FIX COMMIT
https://github.com/django/django/commit/c1171ffbd570db90ca206c30f8e2b9f691243820
Django Release RELEASE
https://docs.djangoproject.com/en/5.0/releases/security
Django Source Repository REPOSITORY
https://github.com/django/django
Django Source Repository REPOSITORY
https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2024-28.yaml
groups.google.com/forum/ WEB
https://groups.google.com/forum/#%21forum/django-announce
lists.fedoraproject.org/archives/list/packa... WEB
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/D2JIRXEDP4ZET5KFMAPPYSK663Q52NEX
Django Release RELEASE
https://www.djangoproject.com/weblog/2024/feb/06/security-releases
lists.fedoraproject.org/archives/list/packa... WEB
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/SN2PLJGYSAAG5KUVIUFJYKD3BLQ4OSN6
lists.fedoraproject.org/archives/list/packa... WEB
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZQJOMNRMVPCN5WMIZ7YSX5LQ7IR2NY4D

Frequently Asked Questions

What is CVE-2024-24680?
CVE-2024-24680 is a security vulnerability in Django involving Django denial-of-service attack in the intcomma template filter under CWE-770: Allocation of Resources Without Limits or Throttling.
Which Django versions are affected?
Affected versions include releases prior to 3.2.24, 4.2.10, 5.0.2 across affected packages: Django.
What version fixes CVE-2024-24680?
Upgrading to 3.2.24, 4.2.10, 5.0.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is Django affected?
Yes, Django is affected in releases prior to 3.2.24, 4.2.10, 5.0.2. Upgrade your dependency to 3.2.24, 4.2.10, 5.0.2 or later.
What is the CVSS score of CVE-2024-24680?
CVE-2024-24680 has a CVSS v3.1 base score of 5.9 (HIGH) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H.
What CWE is associated with CVE-2024-24680?
CVE-2024-24680 is classified under CWE-770: Allocation of Resources Without Limits or Throttling (The product allocates a reusable resource or group of resources on behalf of an actor without imposing any intended restrictions on the size or number of resources that can be allocated.).
How can I check PyPI dependencies for CVE-2024-24680?
Run the dependency tree command: 'pip show Django'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-xxj9-f6rv-m3x4",
  "modified" : "2025-11-04T22:13:17Z",
  "published" : "2024-02-07T00:30:25Z",
  "aliases" : [ "CVE-2024-24680" ],
  "summary" : "Django denial-of-service attack in the intcomma template filter",
  "details" : "An issue was discovered in Django 3.2 before 3.2.24, 4.2 before 4.2.10, and Django 5.0 before 5.0.2. The intcomma template filter was subject to a potential denial-of-service attack when used with very long strings.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "Django"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.2"
      }, {
        "fixed" : "3.2.24"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "Django"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.2"
      }, {
        "fixed" : "4.2.10"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "Django"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "5.0"
      }, {
        "fixed" : "5.0.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-24680"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/django/django/commit/16a8fe18a3b81250f4fa57e3f93f0599dc4895bc"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/django/django/commit/55519d6cf8998fe4c8f5c8abffc2b10a7c3d14e9"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/django/django/commit/572ea07e84b38ea8de0551f4b4eda685d91d09d2"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/django/django/commit/c1171ffbd570db90ca206c30f8e2b9f691243820"
  }, {
    "type" : "WEB",
    "url" : "https://docs.djangoproject.com/en/5.0/releases/security"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/django/django"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2024-28.yaml"
  }, {
    "type" : "WEB",
    "url" : "https://groups.google.com/forum/#%21forum/django-announce"
  }, {
    "type" : "WEB",
    "url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/D2JIRXEDP4ZET5KFMAPPYSK663Q52NEX"
  }, {
    "type" : "WEB",
    "url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/SN2PLJGYSAAG5KUVIUFJYKD3BLQ4OSN6"
  }, {
    "type" : "WEB",
    "url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZQJOMNRMVPCN5WMIZ7YSX5LQ7IR2NY4D"
  }, {
    "type" : "WEB",
    "url" : "https://www.djangoproject.com/weblog/2024/feb/06/security-releases"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-770" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-02-07T17:32:14Z",
    "nvd_published_at" : "2024-02-06T22:16:15Z"
  }
}