CVE-2026-53877 Details
Description
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.
A heap buffer over-read vulnerability has been identified in Django versions 6.0 prior to 6.0.7 and 5.2 prior to 5.2.16. The issue arises in the 'django.contrib.gis.gdal.GDALRaster' class, where the 'vsi_buffer' property can over-read the allocated memory buffer by approximately 32 bytes when the raster is created from a bytes object representing a raster file. This over-read can lead to the disclosure of adjacent memory or, in rare cases, cause a segmentation fault. The vulnerability only affects rasters stored in GDAL's virtual filesystem.
Users can upgrade to Django versions 6.0.7 or 5.2.16 to address this vulnerability.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jul 7, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://docs.djangoproject.com/en/dev/releases/security/ | Django Software Foundation | PatchVendor Advisory |
| https://groups.google.com/g/django-announce | Django Software Foundation | Release Notes |
| https://www.djangoproject.com/weblog/2026/jul/07/security-releases/ | Django Software Foundation | Vendor AdvisoryPatch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-805 | Buffer Access with Incorrect Length Value | Django Software Foundation |
Affected Products
| Product | Versions |
|---|---|
| djangoproject django | >= 5.2, < 5.2.16 >= 6.0, < 6.0.7 |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 9, 2026 | Initial Analysis | [email protected] |
| Jul 7, 2026 | CVE Modified | CISA-ADP |
| Jul 7, 2026 | New CVE Received | Django Software Foundation |