|
|
Message-ID: <CAL4K_Naqroe9y5uoG1fXu66nZ38sNZiy1jjFHz5cDvsKTic0Wg@mail.gmail.com> Date: Wed, 2 Dec 2026 08:26:52 -0500 From: Jacob Walls <jwalls@...ngoproject.com> To: oss-security@...ts.openwall.com Cc: Django Security Team <security@...ngoproject.com> Subject: Django CVE-2026-115868, CVE-2026-119642, CVE-2026-124827, CVE-2026-125673, CVE-2026-127929, CVE-2026-132092, and CVE-2026-132809 * Announce: https://www.djangoproject.com/weblog/2026/dec/02/security-releases/ * CVE JSON Record for CVE-2026-115868: https://www.cve.org/CVERecord?id=CVE-2026-115868 * CVE JSON Record for CVE-2026-119642: https://www.cve.org/CVERecord?id=CVE-2026-119642 * CVE JSON Record for CVE-2026-124827: https://www.cve.org/CVERecord?id=CVE-2026-124827 * CVE JSON Record for CVE-2026-125673: https://www.cve.org/CVERecord?id=CVE-2026-125673 * CVE JSON Record for CVE-2026-127929: https://www.cve.org/CVERecord?id=CVE-2026-127929 * CVE JSON Record for CVE-2026-132092: https://www.cve.org/CVERecord?id=CVE-2026-132092 * CVE JSON Record for CVE-2026-132809: https://www.cve.org/CVERecord?id=CVE-2026-132809 In accordance with [our security release policy]( https://docs.djangoproject.com/en/dev/internals/security/), the Django team is issuing releases for [Django 6.1.4](https://docs.djangoproject.com/en/dev/releases/6.1.4/), [Django 6.0.11](https://docs.djangoproject.com/en/dev/releases/6.0.11/), and [Django 5.2.20](https://docs.djangoproject.com/en/dev/releases/5.2.20/). These releases address the security issues detailed below. We encourage all users of Django to upgrade as soon as possible. ## CVE-2026-124827: Server-side file-write via `RasterField` assignment Assigning a raster [data definition]( https://docs.djangoproject.com/en/stable/ref/contrib/gis/gdal/#creating-rasters-from-data) to `django.contrib.gis.db.models.RasterField` with a user-controlled `name` parameter and a non-default `driver` could cause GDAL to write a file to an attacker-controlled location. Depending on the raster driver, this could enable remote code execution. Because `RasterField` falls back to the `CharField` form field, the flaw was reachable by default on models with `RasterField` registered in the admin or using `ModelForm`s or writable model serializers. `RasterField` now defaults `editable` to `False`, excluding it from a `ModelForm` unless explicitly included. `RasterField` also now raises `GDALException` when assigning a `dict` or JSON string specifying a non-default driver. To use other drivers, wrap the definition in `GDALRaster` to signify the value is trusted. This exception only limits server-side file writes. Server-side request forgery is still possible if untrusted input is assigned to `RasterField`. See [raster security considerations]( https://docs.djangoproject.com/en/stable/ref/contrib/gis/gdal/#security-considerations) and implement validation before accepting untrusted input. Geometry fields were not affected. `RasterField` is only implemented on PostGIS. This issue has severity "high" according to the [Django security policy]( https://docs.djangoproject.com/en/stable/internals/security/#security-issue-severity-levels ). Thanks to Mohammed Fathy for the report. ## CVE-2026-115868: Potential cross-site scripting vulnerability in `truncatechars_html` The `truncatechars_html` template filter and the `django.utils.text.Truncator.chars()` method (with `html=True`) were subject to a potential cross-site scripting (XSS) attack when certain inputs whose text length matched the truncation length were processed and rendered in an HTML attribute. This issue has severity "moderate" according to the [Django security policy]( https://docs.djangoproject.com/en/dev/internals/security/#security-issue-severity-levels ). Thanks to JoeCyberTech for the report. ## CVE-2026-125673: Potential cache poisoning via dot segments in request paths `django.middleware.cache.UpdateCacheMiddleware` and `django.views.decorators.cache.cache_page()` were affected by a bug in `django.http.HttpRequest.build_absolute_uri()`, which incorrectly normalized request paths containing `.` or `..` segments. Under certain deployment and URL configurations, this could allow an unauthenticated attacker to cause cached responses to be served for unintended URLs. `django.http.HttpRequest.build_absolute_uri()` now preserves dot segments in the request path when called without a location. Existing cached responses are not invalidated, so users should clear any potentially affected caches after upgrading. This issue has severity "low" according to the [Django security policy]( https://docs.djangoproject.com/en/dev/internals/security/#security-issue-severity-levels ). Thanks to 4drez for the report. ## CVE-2026-119642: Information leakage in admin changelist via "pk" alias for `OneToOneField` The admin changelist allowed staff users with view permissions on a registered model with a custom `django.db.models.OneToOneField` primary key to enumerate data from those models by including the `pk` alias in the querystring and performing repeated lookup searches. This requires sufficient knowledge of the fields on the related model. It is a special case of CVE-2010-4534. Models using multi-table inheritance were affected by default, as the implicit primary key field created by Django is a `OneToOneField`. This issue has severity "low" according to the [Django security policy]( https://docs.djangoproject.com/en/stable/internals/security/#security-issue-severity-levels ). Thanks to JoeCyberTech for the report. ## CVE-2026-127929: Information leakage in admin changelist via reverse relations The admin changelist allowed staff users with view permissions on a registered model to enumerate values on those models via manipulating the querystring to perform repeated lookup searches. This requires knowledge of the related model names or `django.db.models.ForeignKey.related_query_name` overrides. It is a special case of CVE-2010-4534 that regressed in Django 5.0.3. This issue has severity "low" according to the [Django security policy]( https://docs.djangoproject.com/en/dev/internals/security/#security-issue-severity-levels ). Thanks to OpenAI for the report. ## CVE-2026-132809: Heap buffer overflow in `OGRGeometry.wkb` The `django.contrib.gis.gdal.OGRGeometry.wkb` property allocated an undersized buffer for geometries larger than 4GB on 64-bit platforms. This could result in segmentation faults or undefined behavior. The `hex` and `geos` properties of `OGRGeometry` and its pickling were also affected. This issue has severity "low" according to the [Django security policy]( https://docs.djangoproject.com/en/stable/internals/security/#security-issue-severity-levels ). Thanks to Zhixi "Jace" Sun for the report. ## CVE-2026-132092: Potential SQL injection in `range` and `in` lookups The `range` and `in` lookups were subject to SQL injection in queries involving aliases or key transforms containing percent signs. The `__range` flaw required incorrectly using more than two right-hand side values. The `__in` flaw required a bilateral transform. The `range` lookup now requires exactly two right-hand side values. Note that using percent signs in column aliases and key transforms was deprecated in Django 6.0 and is scheduled for removal in Django 2028. This issue has severity "high" according to the [Django security policy]( https://docs.djangoproject.com/en/stable/internals/security/#security-issue-severity-levels ). Thanks to Cristian Panaro for the report. ## Affected supported versions * Django main * Django 6.1 * Django 6.0 * Django 5.2 ## Resolution Patches to resolve the issue have been applied to Django's main, 6.1, 6.0, and 5.2 branches. The patches may be obtained from the following changesets. ### CVE-2026-124827: Server-side file-write via `RasterField` assignment * On the [main branch]( https://github.com/django/django/commit/a3934abd4c0d43430efec34d6ae933794df2c2f5 ) * On the [6.1 branch]( https://github.com/django/django/commit/b70d098878ae1a65fa2377be776610500ff44336 ) * On the [6.0 branch]( https://github.com/django/django/commit/6b5d29eae050ac7cf72cc5a407d2094ad8e83789 ) * On the [5.2 branch]( https://github.com/django/django/commit/02d09443c441ffc8064206dc4a8bdc6496fa49b0 ) ### CVE-2026-115868: Potential cross-site scripting vulnerability in `truncatechars_html` * On the [main branch]( https://github.com/django/django/commit/454f44fc8f52d0b925a7661b9809061f257eeac9 ) * On the [6.1 branch]( https://github.com/django/django/commit/7cf220a2486a7c5944893818bad9a6bbaebc48df ) * On the [6.0 branch]( https://github.com/django/django/commit/aaf82df0c772d98a71b740a331fccc0accb818a3 ) * On the [5.2 branch]( https://github.com/django/django/commit/781dd5f5d53b6848dce649582d30bef4f0f94f67 ) ### CVE-2026-125673: Potential cache poisoning via dot segments in request paths * On the [main branch]( https://github.com/django/django/commit/bc2ceaddafbedbb047c860805e63d855dc855051 ) * On the [6.1 branch]( https://github.com/django/django/commit/2fa6e4160c69bd71d14a1dc31a706f2c918be7fa ) * On the [6.0 branch]( https://github.com/django/django/commit/9ad3bcba17cec28c021dd589368bed48a1263df6 ) * On the [5.2 branch]( https://github.com/django/django/commit/7e797bf00d147b152859be0ca778e984728ab3b8 ) ### CVE-2026-119642: Information leakage in admin changelist via "pk" alias for `OneToOneField` * On the [main branch]( https://github.com/django/django/commit/3a88a554a0f45792e91e9338bbd01346af654b57 ) * On the [6.1 branch]( https://github.com/django/django/commit/2690ef254abf5120f84d7c99c998f7344455eac2 ) * On the [6.0 branch]( https://github.com/django/django/commit/99d9c8da0f4d2ff6e9ff0ecc9dd388f1089b1663 ) * On the [5.2 branch]( https://github.com/django/django/commit/8171bbca0a7a22ead364c3f8b97b94fc06a62a1d ) ### CVE-2026-127929: Information leakage in admin changelist via reverse relations * On the [main branch]( https://github.com/django/django/commit/83f15ad66da658d121f4d3beefc5f30ffdfd328a ) * On the [6.1 branch]( https://github.com/django/django/commit/8b6069a51832e96100d8ee8045babf436b956468 ) * On the [6.0 branch]( https://github.com/django/django/commit/8cff913e8205dc012eff87052a6fa42ab947ff9b ) * On the [5.2 branch]( https://github.com/django/django/commit/b171e45ad9e3a16cf359aca128ca8a0c78eee2b5 ) ### CVE-2026-132809: Heap buffer overflow in `OGRGeometry.wkb` * On the [main branch]( https://github.com/django/django/commit/c2ccd78ec0a9fe6fe897815db941e09a845a6e91 ) * On the [6.1 branch]( https://github.com/django/django/commit/7f7d6ca6999de67321f5c0a7d8aaf56e192426ef ) * On the [6.0 branch]( https://github.com/django/django/commit/06768e69078df785496f2987effd3e902c07f53d ) * On the [5.2 branch]( https://github.com/django/django/commit/51dcaaf51d1ccb9db8e5755b641d6dd34facb7f7 ) ### CVE-2026-132092: Potential SQL injection in `range` and `in` lookups * On the [main branch]( https://github.com/django/django/commit/1eb6104c5805d55fca4cd6cf9c715521934d45fc ) * On the [6.1 branch]( https://github.com/django/django/commit/e0e7876984f1b0b63700e2743d6f2a3edf01e0c6 ) * On the [6.0 branch]( https://github.com/django/django/commit/da230e17c9d77a2801419b911772aefe2cbed4b3 ) * On the [5.2 branch]( https://github.com/django/django/commit/5a8963c9fcb45dba9825e19c19c4190ca4772768 ) ## The following releases have been issued * Django 6.1.4 ([tarball]( https://www.djangoproject.com/download/6.1.4/tarball/) | [checksums]( https://www.djangoproject.com/download/6.1.4/checksum/)) * Django 6.0.11 ([tarball]( https://www.djangoproject.com/download/6.0.11/tarball/) | [checksums]( https://www.djangoproject.com/download/6.0.11/checksum/)) * Django 5.2.20 ([tarball]( https://www.djangoproject.com/download/5.2.20/tarball/) | [checksums]( https://www.djangoproject.com/download/5.2.20/checksum/)) The PGP key ID used for this release is Jacob Walls: [131403F4D16D8DC7]( https://github.com/jacobtylerwalls.gpg) ## General notes regarding security reporting As always, we ask that potential security issues be reported via private email to `security@...ngoproject.com`, and not via Django's Trac instance, nor via the Django Forum. Please see [our security policies](https://www.djangoproject.com/security/) for further information.
Powered by blists - more mailing lists
Please check out the Open Source Software Security Wiki, which is counterpart to this mailing list.
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.