Skip to content
OpenAdvisories
Medium · 4.8 CVE-2026-53877 BIT-django-2026-53877EUVD-2026-42044GHSA-crhf-3pfg-w68wPYSEC-2026-2091

Heap buffer over-read in GDALRaster

Published Jul 7, 2026 · Updated Jul 7, 2026 · Assigned by DSF

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.

Affected products

VendorProductAffectedFixed
djangoproject Django 6.0 – < 6.0.7, 5.2 – < 5.2.16 6.0.7

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 python-django 3:5.2.16-1 —
Debian 13 python-django No fix yet —
Debian 12 python-django No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 python-django No fix yet —
Ubuntu 26.04 LTS python-django No fix yet —
Ubuntu 25.10 python-django No fix yet —
Ubuntu 24.04 LTS python-django No fix yet —
Ubuntu 22.04 LTS python-django No fix yet —
Show 4 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 20.04 LTS python-django No fix yet —
Ubuntu Pro 18.04 LTS python-django No fix yet —
Ubuntu Pro 16.04 LTS python-django No fix yet —
Ubuntu Pro 14.04 LTS python-django No fix yet —
ReleasePackageFixed inAdvisory
SLES 15 SP7 python-Django 4.2.11-150600.3.62.1 SUSE-SU-2026:2819-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed python-Django +1 5.2.16-1.1 openSUSE-SU-2026:11270-1, openSUSE-SU-2026:11248-1
openSUSE Tumbleweed python-Django4 4.2.30-4.1 openSUSE-SU-2026:11235-1
openSUSE Tumbleweed python-Django6 6.0.7-1.1 openSUSE-SU-2026:11236-1
openSUSE Leap 16.0 python-Django 5.2.4-bp160.10.1 openSUSE-SU-2026:21313-1
ReleasePackageFixed inAdvisory
Alpine v3.24 py3-django 5.2.16-r0 —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI django < 5.2.16 5.2.16 GHSA-crhf-3pfg-w68w
PyPI django >= 6.0.0, < 6.0.7 6.0.7 GHSA-crhf-3pfg-w68w
PyPI django >= 5.2, < 5.2.16 · >= 6.0, < 6.0.7 5.2.16, 6.0.7 PYSEC-2026-2091

Advisories 7

References