SB20261202370 - Multiple vulnerabilities in Django
Published: December 2, 2026
Breakdown by Severity
- Low
- Medium
- High
- Critical
Description
This security bulletin contains information about 7 vulnerabilities.
1) External Control of File Name or Path (CVE-ID: CVE-2026-124827)
CWE-ID: CWE-73 - External Control of File Name or Path
CVSSv4: 9.2 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
The vulnerability allows a remote attacker to write a file to an attacker-controlled location on the server and, depending on the raster driver, potentially execute arbitrary code.
The vulnerability exists due to insufficient validation of the raster output path in django.contrib.gis.db.models.RasterField when assigning untrusted raster definitions. A remote attacker can submit raster data through an application that exposes a writable RasterField to cause GDAL to write a file to an unintended location.
RasterField is available only on PostGIS. Geometry fields are not affected.
2) Cross-site scripting (CVE-ID: CVE-2026-115868)
CWE-ID: CWE-79 - Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
CVSSv4: 5.1 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N]
The vulnerability allows a remote attacker to potentially execute script in another user's browser in the context of the affected site.
The vulnerability exists due to improper neutralization of input in the truncatechars_html template filter and django.utils.text.Truncator.chars() with HTML mode enabled when the processed text is rendered in an HTML attribute. A remote attacker can supply content that the application processes and renders in that context to potentially cause script execution in another user's browser.
The affected case occurs when the input's text length matches the truncation length.
3) Use of Incorrectly-Resolved Name or Reference (CVE-ID: CVE-2026-125673)
CWE-ID: CWE-706 - Use of Incorrectly-Resolved Name or Reference
CVSSv4: 6.3 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N]
The vulnerability allows a remote attacker to cause cached responses to be served for unintended URLs.
The vulnerability exists due to incorrect normalization of dot segments in django.http.HttpRequest.build_absolute_uri() when Django's cache middleware or per-view caching decorator derives a cache key from the request URL. A remote attacker can send requests with paths that Django normalizes incorrectly to cause cached responses to be associated with unintended URLs.
Only certain deployment and URL configurations are affected.
4) Incorrect authorization (CVE-ID: CVE-2026-119642)
CWE-ID: CWE-863 - Incorrect Authorization
CVSSv4: 5.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N]
The vulnerability allows a remote user to infer related model data that the Django admin changelist should not expose.
The vulnerability exists due to improper authorization of primary-key aliases in the Django admin changelist when filtering a registered model with a custom OneToOneField primary key. A remote user can use changelist lookup results to infer otherwise restricted values if they have view permission on the registered model and sufficient knowledge of the related model's fields.
Models using multi-table inheritance are affected by default.
5) Incorrect authorization (CVE-ID: CVE-2026-127929)
CWE-ID: CWE-863 - Incorrect Authorization
CVSSv4: 5.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N]
The vulnerability allows a remote user to infer values that the Django admin changelist should not expose.
The vulnerability exists due to improper authorization of reverse-relation filters in the Django admin changelist when processing lookups on a registered model. A remote user can use changelist lookup results to infer otherwise restricted values if they have view permission on the registered model and know the relevant reverse-relation names.
6) Heap-based buffer overflow (CVE-ID: CVE-2026-132809)
CWE-ID: CWE-122 - Heap-based Buffer Overflow
CVSSv4: 6.8 [CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]
The vulnerability allows a local user to potentially cause a denial of service by crashing the process that handles geometry data.
The vulnerability exists due to a heap-based buffer overflow in django.contrib.gis.gdal.OGRGeometry.wkb when exporting a large geometry to well-known binary format. A local user can cause the affected code to process oversized geometry data, resulting in a write beyond the allocated buffer that may crash the process.
The buffer is undersized for geometries larger than 4 GB on 64-bit platforms.
7) SQL injection (CVE-ID: CVE-2026-132092)
CWE-ID: CWE-89 - Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
CVSSv4: 8.3 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N]
The vulnerability allows a remote attacker to potentially alter the SQL executed by the application and gain unauthorized access to database data.
The vulnerability exists due to improper neutralization of SQL special elements in Django's range and in ORM lookups when constructing queries involving certain aliases or key transforms. A remote attacker can supply input to an application that lets untrusted data influence the affected query construction to potentially change the resulting SQL.
Remediation
Install update from vendor's website.
References
- https://www.djangoproject.com/weblog/2026/dec/02/security-releases/
- https://github.com/django/django/commit/a3934abd4c0d43430efec34d6ae933794df2c2f5
- https://github.com/django/django/commit/454f44fc8f52d0b925a7661b9809061f257eeac9
- https://github.com/django/django/commit/bc2ceaddafbedbb047c860805e63d855051
- https://github.com/django/django/commit/3a88a554a0f45792e91e9338bbd01346af654b57
- https://github.com/django/django/commit/83f15ad66da658d121f4d3beefc5f30ffdfd328a
- https://github.com/django/django/commit/c2ccd78ec0a9fe6fe897815db941e09a845a6e91
- https://github.com/django/django/commit/1eb6104c5805d55fca4cd6cf9c715521934d45fc