Security mailing lists by PureSourceCode

CVE-2025-59682

MEDIUM 6.5CVSS 3.1

Django vulnerable to partial directory traversal via archives

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.

Published
1 Oct 2025
Last modified
12 Oct 2026
Assigned by
cve@mitre.org
NVD status
Modified
Weakness
CWE-23
Also known as
BIT-django-2025-59682GHSA-q95w-c7qg-hrffPYSEC-2026-1296
Sources
NVDJSONOSV GHSA-q95w-c7qg-hrffJSONOSV PYSEC-2026-1296JSON

Scores

SourceScored byVersionScoreVector / decision
NVD nvd@nist.gov (Primary) CVSS 3.1 MEDIUM 6.5 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
NVD cve@mitre.org (Secondary) CVSS 3.1 LOW 3.1 CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N
OSV GitHub CVSS 3.1 LOW 3.1 CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N
OSV PyPA CVSS 3.1 LOW 3.1 CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD djangoproject django
cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*
>= 4.2.0, < 4.2.25 4.2.25
NVD djangoproject django
cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*
>= 5.1, < 5.1.13 5.1.13
NVD djangoproject django
cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*
>= 5.2, < 5.2.7 5.2.7
OSV PyPI django >= 4.2, < 4.2.25 4.2.25
OSV PyPI django >= 5.1, < 5.1.13 5.1.13
OSV PyPI django >= 5.2, < 5.2.7 5.2.7
OSV PyPI django >= 4.2, < 4.2.25; >= 5.1, < 5.1.13; >= 5.2, < 5.2.7 4.2.25, 5.1.13, 5.2.7

References

History

  • 25 Nov 2026 20:59 UTC · NVD: first stored (published 1 Oct 2025)
  • 25 Nov 2026 20:12 UTC · OSV: first stored (published 7 Jul 2026)
  • 25 Nov 2026 20:12 UTC · OSV: first stored (published 1 Oct 2025)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.