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.
Published: 2026-07-07
Score: 6.3 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability is a heap buffer over‑read in the GDALRaster constructor when instantiated with a raw bytes object. The over‑read can expose adjacent memory contents, potentially leaking sensitive data, and accessing the vsi_buffer property may cause a segmentation fault, leading to service degradation. This flaw is classified as CWE‑126 and CWE‑805, threatening confidentiality and reliability of the affected application.

Affected Systems

The issue affects Django releases 6.0 before 6.0.7 and 5.2 before 5.2.16; earlier series such as 5.0.x, 4.1.x, and 3.2.x were not evaluated but may also be impacted by the same flaw.

Risk and Exploitability

The CVSS score of 6.3 indicates medium severity, while the EPSS score of less than 1 % suggests a very low current exploitation probability. The flaw is not listed in CISA’s KEV catalog. Based on the description, the likely attack vector is an external GIS byte payload supplied via a remote request to the application; an attacker would need to craft a malicious buffer that triggers the over‑read or segmentation fault, indicating that exploitation is possible if the application processes unvalidated GIS data.

Generated by OpenCVE AI on July 25, 2026 at 20:54 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Django to version 6.0.7, 5.2.16, or newer to apply the fixed constructor for GDALRaster.
  • Validate or sanitize all user‑supplied GIS byte data before passing it to GDALRaster; enforce strict size limits and structure checks to prevent malicious buffers from being processed.
  • If an immediate upgrade is not feasible, restrict exposure of endpoints that accept GIS byte data, apply rate limiting, and monitor the application logs for segmentation faults or anomalous memory access patterns to detect attempted exploitation.

Generated by OpenCVE AI on July 25, 2026 at 20:54 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sat, 11 Jul 2026 00:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-126
References
Metrics threat_severity

None

threat_severity

Low


Tue, 07 Jul 2026 17:30:00 +0000

Type Values Removed Values Added
First Time appeared Djangoproject
Djangoproject django
Vendors & Products Djangoproject
Djangoproject django

Tue, 07 Jul 2026 16:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Tue, 07 Jul 2026 15:00:00 +0000

Type Values Removed Values Added
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.
Title Heap buffer over-read in GDALRaster
Weaknesses CWE-805
References
Metrics cvssV3_1

{'score': 4.8, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:L'}

cvssV4_0

{'score': 6.3, 'vector': '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'}


Subscriptions

Djangoproject Django
cve-icon MITRE

Status: PUBLISHED

Assigner: DSF

Published:

Updated: 2026-07-07T14:59:07.106Z

Reserved: 2026-06-11T01:11:27.545Z

Link: CVE-2026-53877

cve-icon Vulnrichment

Updated: 2026-07-07T14:59:02.364Z

cve-icon NVD

No data.

cve-icon Redhat

Severity : Low

Publid Date: 2026-07-07T14:00:00Z

Links: CVE-2026-53877 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-07-25T21:00:14Z

Weaknesses
  • CWE-126

    Buffer Over-read

  • CWE-805

    Buffer Access with Incorrect Length Value