CVE-2026-53877
MEDIUM 6.3CVSS 4.0Django: GDALRaster may over-read heap memory when constructed from bytes
An issue was discovered in Django 6.0 before 6.0.7 and 5.2 before 5.2.16.
django.contrib.gis.gdal.GDALRaster over-reads its in-memory buffer when constructed from a bytes object, which can disclose adjacent memory or cause service degradation via a potential segmentation fault when the vsi_buffer property is accessed.
Earlier, unsupported Django series (such as 5.0.x, 4.1.x, and 3.2.x) were not evaluated and may also be affected.
Django would like to thank Bence Nagy for reporting this issue.
- Published
- 7 Jul 2026
- Last modified
- 25 Oct 2026
- Assigned by
- 6a34fbeb-21d4-45e7-8e0a-62b95bc12c92
- NVD status
- Analyzed
- Weakness
- CWE-805
- Also known as
- BIT-django-2026-53877GHSA-crhf-3pfg-w68wPYSEC-2026-2091
- Sources
- NVDJSONOSV GHSA-crhf-3pfg-w68wJSONOSV PYSEC-2026-2091JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | 6a34fbeb-21d4-45e7-8e0a-62b95bc12c92 (Secondary) | CVSS 4.0 | MEDIUM 6.3 | CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:L/SC:N/SI:N/SA:N | |
| OSV | PyPA | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X | |
| NVD | 6a34fbeb-21d4-45e7-8e0a-62b95bc12c92 (Secondary) | CVSS 3.1 | MEDIUM 4.8 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:L |
| OSV | GitHub | CVSS 3.1 | MEDIUM 4.8 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:L |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | djangoproject | djangocpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:* |
>= 5.2, < 5.2.16 | 5.2.16 |
| NVD | djangoproject | djangocpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:* |
>= 6.0, < 6.0.7 | 6.0.7 |
| OSV | PyPI | django | < 5.2.16 | 5.2.16 |
| OSV | PyPI | django | >= 6.0.0, < 6.0.7 | 6.0.7 |
| OSV | PyPI | django | >= 5.2, < 5.2.16; >= 6.0, < 6.0.7 | 5.2.16, 6.0.7 |
References
- https://docs.djangoproject.com/en/dev/releases/security/ · Patch, Vendor Advisory, WEB, FIX
- https://groups.google.com/g/django-announce · Release Notes, WEB, ADVISORY
- https://www.djangoproject.com/weblog/2026/jul/07/security-releases/ · Vendor Advisory, Patch, WEB, FIX
- https://nvd.nist.gov/vuln/detail/CVE-2026-53877 · ADVISORY
- https://github.com/django/django/commit/38dfbd27d7d4f4e6eaa087d7a90f2613fbf55b3a · WEB
- https://github.com/django/django/commit/6c66eb8cec52b303af85c2c6e4dd00aa37654dbc · WEB
- https://github.com/django/django/commit/6ca2bbe2efce21010eff48f1f36a3f621d698ed8 · WEB
- https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2026-2091.yaml · WEB
- https://github.com/advisories/GHSA-crhf-3pfg-w68w · ADVISORY
History
- 25 Nov 2026 21:03 UTC · NVD: first stored (published 7 Jul 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 7 Jul 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 7 Jul 2026)