Heap buffer overflow in OGRGeometry.wkb
- Exploited
- No known exploitation
- Fix
- Fixed in 6.1.4, 6.0.11, 5.2.20
- Who is exposed
- Not reported
Summary
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.
What to do
Upgrade to a fixed version: 6.1.4, 6.0.11, 5.2.20.
Check your systems with an agent
Paste this into a coding or ops agent. It checks your systems read-only and reports a table per asset.
Check whether my systems are affected by CVE-2026-132809 (Heap buffer overflow in OGRGeometry.wkb), using the cve.now data below.
Rules: work read-only. Do not run exploit code, proof-of-concept scripts or scanners that send attack payloads, and do not change any configuration, package, image or deployment. Report findings only.
What cve.now has for CVE-2026-132809 (entry last updated 2026-12-02):
Affected:
- PyPI package django: from 6.1, fixed in 6.1.4; from 6.0, fixed in 6.0.11; from 5.2, fixed in 5.2.20
Fixed versions: 6.1.4, 6.0.11, 5.2.20.
Setup: unknown whether the bug needs a non-default feature or setting. Check the advisory.
CISA KEV: CVE-2026-132809 is not listed as of cve.now's last read.
This KEV status is for CVE-2026-132809 only. If you also check another CVE, look up its own KEV status; never assume it from this one.
How to check:
- Packages (PyPI): find every lockfile in each project and run the stack.check operation of the cve.now MCP server (execute) on each one. Compare the resolved versions, not the ranges a manifest declares, with the affected versions above. Include transitive dependencies.
Verify against the linked advisories before concluding, and cite the date you read each one:
- https://docs.djangoproject.com/en/dev/releases/security/
- https://www.djangoproject.com/weblog/2026/dec/02/security-releases/
- https://github.com/django/django/commit/c2ccd78ec0a9fe6fe897815db941e09a845a6e91
- https://github.com/django/django/commit/7f7d6ca6999de67321f5c0a7d8aaf56e192426ef
- https://github.com/django/django/commit/06768e69078df785496f2987effd3e902c07f53d
- https://github.com/django/django/commit/51dcaaf51d1ccb9db8e5755b641d6dd34facb7f7
- https://groups.google.com/g/django-announce
Do not conclude an asset is unaffected unless you checked it and the evidence covers both its version and the conditions above. If you could not check something, mark it unknown and say what is missing.
Report a table with one row per asset and these columns: Asset | Version or build | Status (affected, fixed, not applicable, unknown) | Compensating controls | Exposure (internet-facing, internal, none) | Evidence | Next action.
Entry: https://cve.now/CVE-2026-132809
For follow-up questions, use the cve.now MCP server at https://mcp.cve.now/mcp (no authentication), for example execute with name cve.get and arguments {"id": "CVE-2026-132809"}.Affected versions
cve.now Index
- Exploitation?/40Unknown. No CISA SSVC exploitation rating yet
- Exposure17/25No login or user action needed per the CVSS vector, reachable over the network without a login · Unknown: No advisory context yet
- Reach20/20django: 12M downloads a week
- Severity5.3/10CVSS 5.3
- No patch0/5No signal
What would change the score
- Would score about 87 if added to CISA KEV
- Would score about 82 if CISA's SSVC rates exploitation active
- Would score about 47 if advisories confirm default setups are exposed
Impact
- Widely useddjango has 12m weekly downloads. pypistats.org12.2k packages depend on django. deps.dev
Timeline
- CVE published
- First seen by cve.now
Evidence 9
| Kind | Source |
|---|---|
| Vendor advisory 2Establishes: Affected and fixed versions. | |
| Advisory | docs.djangoproject.com · en/dev/releases/security |
| Advisory | djangoproject.com · weblog/2026/dec/02/security-releases |
| CVE record 2Establishes: The identifier and description. | |
| Record | CVE List · CVE-2026-132809 |
| Record | NVD · CVE-2026-132809 |
| Other links 5 | |
| Patch | GitHub · django/django · Commit c2ccd78e |
| Patch | GitHub · django/django · Commit 7f7d6ca6 |
| Patch | GitHub · django/django · Commit 06768e69 |
| Patch | GitHub · django/django · Commit 51dcaaf5 |
| Link | groups.google.com · g/django-announce |
Questions about CVE-2026-132809
Is CVE-2026-132809 being exploited?
It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. No public exploit code is tracked.
Source: cve.now feed data
Which versions are affected by CVE-2026-132809?
django (PyPI): from 6.1 before 6.1.4; from 6.0 before 6.0.11; from 5.2 before 5.2.20.
Source: cve.now feed data
How do I fix CVE-2026-132809?
Upgrade to a fixed version: 6.1.4, 6.0.11, 5.2.20.
Source: cve.now feed data
Related
- CVE-2026-132092Potential SQL injection in range and in lookups
- CVE-2026-124827Server-side file-write via RasterField assignment
- CVE-2026-15307Server-side file-write and request forgery via spatial lookups
- CVE-2026-115868Potential cross-site scripting vulnerability in truncatechars_html
- CVE-2026-53878Header injection possibility since DomainNameValidator accepted newlines in input
- CVE-2026-114582Server-side request forgery via SpatialReference string input
No corrections so far. Something wrong on this page? Report an error.