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

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). 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
    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

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.