# CVE-2026-53877: Django GDALRaster heap buffer over-read in GIS component

Source: https://junglewise.ai/threats/cve-2026-53877-django-gdalraster-heap-buffer-over-read-in-gis-component  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-07-07. Updated: 2026-08-07  
License: CC BY 4.0 with a link back

CVE-2026-53877 · Severity: medium · CVSS 4.8 · Published 2026-07-07

Django, a popular web framework, contains a vulnerability in its geographic data handling component. An attacker could potentially crash the application or view sensitive information stored in the server's memory. This could lead to service outages or the unauthorized disclosure of internal data.

Technologies: [Django (PyPI)](https://junglewise.ai/threats/technologies/django). Vendors: [PyPI](https://junglewise.ai/threats/vendors/pypi).

## Quick answers

**Is CVE-2026-53877 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-53877 being exploited in the wild.

**How severe is CVE-2026-53877?** Medium severity, with a CVSS score of 4.8, published 7 July 2026.

**Which products and versions are affected?** Django (PyPI) ECOSYSTEM:introduced=0,fixed=5.2.16, ECOSYSTEM:introduced=5.2,fixed=5.2.16,introduced=6.0,fixed=6.0.7.

**Is there a fix for CVE-2026-53877?** Yes. Django (PyPI): upgrade to 5.2.16, 6.0.7 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-53877 attacked?** It is attacked over the network, in a software library.

**Am I affected by CVE-2026-53877?** Check whether you run Django (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- Django (PyPI): upgrade to 5.2.16, 6.0.7 or later

  ```sh
  pip install "Django>=6.0.7"
  ```


## Technical details

A heap buffer over-read vulnerability (CWE-805) exists in the `django.contrib.gis.gdal.GDALRaster` component of Django. The flaw occurs when a `GDALRaster` object is constructed from a bytes object, causing it to over-read its in-memory buffer. An attacker can trigger this by accessing the `vsi_buffer` property, which may result in the disclosure of adjacent heap memory or a segmentation fault leading to a denial-of-service. The vulnerability is reachable over the network if the application processes user-supplied raster data. Patches are available in versions 5.2.16 and 6.0.7.

## Affected products

- Django Software Foundation Django 5.2 before 5.2.16, 6.0 before 6.0.7

## Identifiers

- CVE-2026-53877
- GHSA-crhf-3pfg-w68w
- PYSEC-2026-2091

## Timeline

- 2026-07-07: disclosed
- 2026-07-07: patched
- 2026-07-07: advisory

## References

- [https://docs.djangoproject.com/en/dev/releases/security](https://docs.djangoproject.com/en/dev/releases/security)
- [https://groups.google.com/g/django-announce](https://groups.google.com/g/django-announce)
- [https://www.djangoproject.com/weblog/2026/jul/07/security-releases](https://www.djangoproject.com/weblog/2026/jul/07/security-releases)
- [https://github.com/django/django/commit/38dfbd27d7d4f4e6eaa087d7a90f2613fbf55b3a](https://github.com/django/django/commit/38dfbd27d7d4f4e6eaa087d7a90f2613fbf55b3a)
- [https://github.com/django/django/commit/6c66eb8cec52b303af85c2c6e4dd00aa37654dbc](https://github.com/django/django/commit/6c66eb8cec52b303af85c2c6e4dd00aa37654dbc)

## Related threats

- [Django GeoDjango unbounded recursion denial of service](https://junglewise.ai/threats/cve-2026-15830-django-geodjango-unbounded-recursion-denial-of-service)
- [Django GeoDjango spatial lookups file write and request forgery](https://junglewise.ai/threats/cve-2026-15307-django-geodjango-spatial-lookups-file-write-and-request-forgery)
- [PYSEC-2026-2449 - Django has a Race Condition vulnerability](https://junglewise.ai/threats/cve-2026-25674-django-has-a-race-condition-vulnerability)
- [PYSEC-2026-1296 - Django vulnerable to partial directory traversal via archives](https://junglewise.ai/threats/cve-2025-59682-django-vulnerable-to-partial-directory-traversal-via-archives)
- [Django DomainNameValidator header injection via newline characters](https://junglewise.ai/threats/cve-2026-53878-django-domainnamevalidator-header-injection-via-newline)
