CVEMETERBack to radar
OFFICIAL RECORD · Python packages

CVE-2025-59682

PUBLISHEDOfficial status check: verifiedCVSS 3.1: 3.1 · low

Python packages · CVE-2025-59682

An issue was discovered in Django 4.2 before 4.2.25, 5.1 before 5.1.13, and 5.2 before 5.2.7. The django.utils.archive.extract() function, used by the "startapp --template" and "startproject --template" commands, allows partial directory traversal via an archive with file paths sharing a common prefix with the target directory.

Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.

Severity and exploitation evidence

EPSS: 0.966% · score date 2026-11-19. EPSS is an estimated probability over the next 30 days, not proof of exploitation.

CISA KEV: not included in the checked catalog; exploitation may still occur. Last checked: 2026-11-19T16:25:55.090Z. Public exploit availability is not used to set this status.

CVSS 3.1 · 3.1 · published by mitre
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N
Assessment source · checked 2026-11-19T12:01:31.220Z

Verification by field

FieldStatusChecked at (UTC)Source
kevverified2026-11-19T16:25:55.090ZCISA KEV
cvssverified2026-11-19T12:01:31.220ZCVE Program
epssverified2026-11-19T16:04:41.864ZFIRST EPSS
patchesverified2026-11-19T12:52:01.389ZOSV
affectedverified2026-11-19T12:01:31.220ZCVE Program
lifecycleverified2026-11-19T12:01:31.220ZCVE Program

Affected versions and configuration

djangoproject Django; default status: unknown: 4.2 to < 4.2.25 [affected; scheme: custom]; 5.1 to < 5.1.13 [affected; scheme: custom]; 5.2 to < 5.2.7 [affected; scheme: custom]

Defaults, conditional configuration, package status and version schemes are retained below. A version range alone is not an exposure verdict.

OSV · osv · full conditions
{
  "id": "GHSA-q95w-c7qg-hrff",
  "aliases": [
    "BIT-django-2025-59682",
    "CVE-2025-59682",
    "PYSEC-2026-1296"
  ],
  "affected": [
    {
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "4.2"
            },
            {
              "fixed": "4.2.25"
            }
          ]
        }
      ],
      "package": {
        "name": "django",
        "purl": "pkg:pypi/django",
        "ecosystem": "PyPI"
      },
      "versions": [
        "4.2",
        "4.2.1",
        "4.2.10",
        "4.2.11",
        "4.2.12",
        "4.2.13",
        "4.2.14",
        "4.2.15",
        "4.2.16",
        "4.2.17",
        "4.2.18",
        "4.2.19",
        "4.2.2",
        "4.2.20",
        "4.2.21",
        "4.2.22",
        "4.2.23",
        "4.2.24",
        "4.2.3",
        "4.2.4",
        "4.2.5",
        "4.2.6",
        "4.2.7",
        "4.2.8",
        "4.2.9"
      ],
      "database_specific": {
        "source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/10/GHSA-q95w-c7qg-hrff/GHSA-q95w-c7qg-hrff.json"
      }
    },
    {
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "5.1"
            },
            {
              "fixed": "5.1.13"
            }
          ]
        }
      ],
      "package": {
        "name": "django",
        "purl": "pkg:pypi/django",
        "ecosystem": "PyPI"
      },
      "versions": [
        "5.1",
        "5.1.1",
        "5.1.10",
        "5.1.11",
        "5.1.12",
        "5.1.2",
        "5.1.3",
        "5.1.4",
        "5.1.5",
        "5.1.6",
        "5.1.7",
        "5.1.8",
        "5.1.9"
      ],
      "database_specific": {
        "source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/10/GHSA-q95w-c7qg-hrff/GHSA-q95w-c7qg-hrff.json"
      }
    },
    {
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "5.2"
            },
            {
              "fixed": "5.2.7"
            }
          ]
        }
      ],
      "package": {
        "name": "django",
        "purl": "pkg:pypi/django",
        "ecosystem": "PyPI"
      },
      "versions": [
        "5.2",
        "5.2.1",
        "5.2.2",
        "5.2.3",
        "5.2.4",
        "5.2.5",
        "5.2.6"
      ],
      "database_specific": {
        "source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/10/GHSA-q95w-c7qg-hrff/GHSA-q95w-c7qg-hrff.json"
      }
    }
  ],
  "severity": [
    {
      "type": "CVSS_V3",
      "score": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N"
    }
  ],
  "upstream": [],
  "withdrawn": null,
  "references": [
    {
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2025-59682",
      "type": "ADVISORY"
    },
    {
      "url": "https://github.com/django/django/commit/43d84aef04a9e71164c21a74885996981857e66e",
      "type": "WEB"
    },
    {
      "url": "https://github.com/django/django/commit/924a0c092e65fa2d0953fd1855d2dc8786d94de2",
      "type": "WEB"
    },
    {
      "url": "https://docs.djangoproject.com/en/dev/releases/security",
      "type": "WEB"
    },
    {
      "url": "https://github.com/django/django",
      "type": "PACKAGE"
    },
    {
      "url": "https://groups.google.com/g/django-announce",
      "type": "WEB"
    },
    {
      "url": "https://www.djangoproject.com/weblog/2025/oct/01/security-releases",
      "type": "WEB"
    },
    {
      "url": "http://www.openwall.com/lists/oss-security/2025/10/01/3",
      "type": "WEB"
    }
  ],
  "relatedGitRanges": [],
  "database_specific": {
    "cwe_ids": [
      "CWE-23"
    ],
    "severity": "LOW",
    "github_reviewed": true,
    "nvd_published_at": "2025-10-01T19:15:37Z",
    "github_reviewed_at": "2025-10-01T21:57:54Z"
  }
}
Archived source JSON
OSV · osv · full conditions
{
  "id": "PYSEC-2026-1296",
  "aliases": [
    "BIT-django-2025-59682",
    "CVE-2025-59682",
    "GHSA-q95w-c7qg-hrff"
  ],
  "affected": [
    {
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "4.2"
            },
            {
              "fixed": "4.2.25"
            },
            {
              "introduced": "5.1"
            },
            {
              "fixed": "5.1.13"
            },
            {
              "introduced": "5.2"
            },
            {
              "fixed": "5.2.7"
            }
          ]
        }
      ],
      "package": {
        "name": "django",
        "purl": "pkg:pypi/django",
        "ecosystem": "PyPI"
      },
      "versions": [
        "4.2",
        "4.2.1",
        "4.2.10",
        "4.2.11",
        "4.2.12",
        "4.2.13",
        "4.2.14",
        "4.2.15",
        "4.2.16",
        "4.2.17",
        "4.2.18",
        "4.2.19",
        "4.2.2",
        "4.2.20",
        "4.2.21",
        "4.2.22",
        "4.2.23",
        "4.2.24",
        "4.2.3",
        "4.2.4",
        "4.2.5",
        "4.2.6",
        "4.2.7",
        "4.2.8",
        "4.2.9",
        "5.1",
        "5.1.1",
        "5.1.10",
        "5.1.11",
        "5.1.12",
        "5.1.2",
        "5.1.3",
        "5.1.4",
        "5.1.5",
        "5.1.6",
        "5.1.7",
        "5.1.8",
        "5.1.9",
        "5.2",
        "5.2.1",
        "5.2.2",
        "5.2.3",
        "5.2.4",
        "5.2.5",
        "5.2.6"
      ],
      "database_specific": {
        "source": "https://github.com/pypa/advisory-database/blob/main/vulns/django/PYSEC-2026-1296.yaml"
      }
    }
  ],
  "severity": [
    {
      "type": "CVSS_V3",
      "score": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N"
    }
  ],
  "upstream": [],
  "withdrawn": null,
  "references": [
    {
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2025-59682",
      "type": "ADVISORY"
    },
    {
      "url": "https://github.com/django/django/commit/43d84aef04a9e71164c21a74885996981857e66e",
      "type": "WEB"
    },
    {
      "url": "https://github.com/django/django/commit/924a0c092e65fa2d0953fd1855d2dc8786d94de2",
      "type": "WEB"
    },
    {
      "url": "https://docs.djangoproject.com/en/dev/releases/security",
      "type": "WEB"
    },
    {
      "url": "https://github.com/django/django",
      "type": "PACKAGE"
    },
    {
      "url": "https://groups.google.com/g/django-announce",
      "type": "WEB"
    },
    {
      "url": "https://www.djangoproject.com/weblog/2025/oct/01/security-releases",
      "type": "WEB"
    },
    {
      "url": "http://www.openwall.com/lists/oss-security/2025/10/01/3",
      "type": "WEB"
    },
    {
      "url": "https://pypi.org/project/django",
      "type": "PACKAGE"
    },
    {
      "url": "https://github.com/advisories/GHSA-q95w-c7qg-hrff",
      "type": "ADVISORY"
    }
  ],
  "relatedGitRanges": [],
  "database_specific": {}
}
Archived source JSON
CVE Program · cve-json · full conditions
{
  "affected": [
    {
      "vendor": "djangoproject",
      "product": "Django",
      "versions": [
        {
          "status": "affected",
          "version": "4.2",
          "lessThan": "4.2.25",
          "versionType": "custom"
        },
        {
          "status": "affected",
          "version": "5.1",
          "lessThan": "5.1.13",
          "versionType": "custom"
        },
        {
          "status": "affected",
          "version": "5.2",
          "lessThan": "5.2.7",
          "versionType": "custom"
        }
      ],
      "defaultStatus": "unknown"
    }
  ],
  "additionalContainers": [
    {
      "title": "CISA ADP Vulnrichment",
      "metrics": [
        {
          "other": {
            "type": "ssvc",
            "content": {
              "id": "CVE-2025-59682",
              "role": "CISA Coordinator",
              "options": [
                {
                  "Exploitation": "none"
                },
                {
                  "Automatable": "no"
                },
                {
                  "Technical Impact": "partial"
                }
              ],
              "version": "2.0.3",
              "timestamp": "2025-10-01T19:10:29.537724Z"
            }
          }
        }
      ],
      "providerMetadata": {
        "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
        "shortName": "CISA-ADP",
        "dateUpdated": "2025-10-01T19:10:39.951Z"
      }
    },
    {
      "title": "CVE Program Container",
      "references": [
        {
          "url": "http://www.openwall.com/lists/oss-security/2025/10/01/3"
        }
      ],
      "providerMetadata": {
        "orgId": "af854a3a-2127-422b-91ae-364da2661108",
        "shortName": "CVE",
        "dateUpdated": "2025-11-04T21:13:56.342Z"
      }
    }
  ]
}
Archived source JSON

Correction evidence

Distribution packages and upstream releases are distinct. ESM channels may require the corresponding Ubuntu entitlement. Notes and branch ranges are not installable package versions. OSV fixed boundaries are ecosystem-specific version thresholds, not proof that a package is currently available or installed.

Evidence typeDistribution / releasePackageChannelVersion or source noteSource
ecosystem-boundaryPyPI / packagedjangoNot a distribution channel4.2.25Official record
ecosystem-boundaryPyPI / packagedjangoNot a distribution channel5.1.13Official record
ecosystem-boundaryPyPI / packagedjangoNot a distribution channel5.2.7Official record

Vendor notices and operational guidance

No connected vendor notice is available for this record.

Original sources and dates

Official status history