CVE-2026-132809: Heap buffer overflow in OGRGeometry.wkb

Published Dec 2, 2026
·
Updated

An issue was discovered in Django 6.1 before 6.1.4, 6.0 before 6.0.11, and 5.2 before 5.2.20. django.contrib.gis.gdal.OGRGeometry.wkb allocates an undersized buffer for geometries larger than 4GB on 64-bit platforms, which can cause service degradation when GDAL subsequently writes to it. Earlier, unsupported Django series (such as 5.1.x, 5.0.x, and 4.2.x) were not evaluated and may also be affected. Django would like to thank Zhixi "Jace" Sun for reporting this issue.

Affected Software

1 affected component
Django Software Foundation Django<6.1.4, <6.0.11, <5.2.20

Event History

Dec 2, 2026
CVE Published
via MITRE·01:21 PM
Data Sourced
via MITRE·01:21 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which deployments are affected?

Django versions 6.1 before 6.1.4, 6.0 before 6.0.11, and 5.2 before 5.2.20 are affected on 64-bit platforms when handling geometries larger than 4GB through django.contrib.gis.gdal.OGRGeometry.wkb. Unsupported series, including 5.1.x, 5.0.x, and 4.2.x, were not evaluated and may also be affected.

2

What must an attacker be able to do to trigger the issue?

The issue requires a geometry larger than 4GB to be processed through OGRGeometry.wkb on a 64-bit platform. The available information does not specify how such a geometry would be supplied to an application.

3

What is the expected impact?

The undersized allocation can result in service degradation when GDAL writes to the buffer. The supplied severity vector indicates availability impact only, with no stated confidentiality or integrity impact.

4

What versions should be used to remediate the issue?

Upgrade to Django 6.1.4, 6.0.11, or 5.2.20, depending on the maintained release line in use. For unsupported Django series, no evaluated fixed version is provided in the available information.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203