Package: python-django
Version: 2:2.2.28-1~deb11u13
X-Debbugs-CC: [email protected]
Severity: grave
Tags: security
Hi,
The following vulnerabilities were published for python-django:
CVE-2026-108147
Potential memory exhaustion in MultiPartParser via base64-encoded file
upload When using django.http.multipartparser.MultiPartParser, multipart
uploads with Content-Transfer-Encoding: base64 could be buffered entirely
in memory, regardless of FILE_UPLOAD_MAX_MEMORY_SIZE, before being passed
to upload handlers, potentially consuming excessive memory.
CVE-2026-111211
Potential log injection via unescaped geometry form values
django.contrib.gis.forms.GeometryField and its widgets logged invalid
submitted values directly, allowing control characters (e.g. newlines or
ANSI escape sequences) to be written unescaped into logs. This could enable
log injection or forgery, letting attackers manipulate log appearance or
structure, especially in logs processed by external systems or viewed in
terminals.
CVE-2026-111362
Server-side request forgery via crs member of GeoJSON geometries Earlier
versions of the GeoJSON spec allowed specifying a coordinate reference
system (CRS) by URL. Since GDAL still resolves these URLs, any validation,
save, or query path where a geometry is instantiated from user input
allowed an attacker to submit a malicious CRS that would make a network
request as the Django process user, or read a file, or both.
Lookups against spatial fields, the GeometryField form field, and
GEOSGeometry now reject GeoJSON geometries with CRS references to external
resources. The DataSource and LayerMapping utilities for loading trusted
data continue to accept these values.
CVE-2026-113593
Potential exposure of private data via empty and missing Vary headers
UpdateCacheMiddleware and cache_page() generated the same cache key for a
request that omitted a header listed in the response's Vary header and a
request that sent that header with an empty value. As a result, a response
cached for one of these requests could be served to the other, which could
lead to the exposure of private data.
Cache keys now distinguish between absent and empty header values, as
required by RFC 9111#section-4.1.
Responses previously cached for requests that omitted a header listed in
Vary will no longer be matched, and will be cached again on the next
request.
CVE-2026-113733
Password hash disclosure to "view only" admin users with custom user models
Admin users with the view (but not change) permission to a user model were
displayed the entire password hash when the model was not AUTH_USER_MODEL,
or when AUTH_USER_MODEL inherited its password field from a concrete parent
model through multi-table inheritance.
CVE-2026-114582
Server-side request forgery via SpatialReference string input
SpatialReference passed string input to GDAL, which by default resolves
URLs and reads files. This behavior was not documented by Django. Other
affected methods included GEOSGeometry.transform(),
OGRGeometry.transform(), GDALRaster.transform(), the srs setter of
OGRGeometry, and the srs and srid setters of GDALRaster. A URL or file path
reaching any of these would issue an outbound request or read a file as the
Django process user. The attack vectors could be combined to reveal local
file contents by observing outbound requests.
SpatialReference now disables network and file access when parsing string
input on GDAL 3.9 and later. As a consequence, file paths and URLs are no
longer accepted as SpatialReference inputs. Dictionary references using the
DICT: prefix, including those prefixed with ESRI::, are rejected on all
GDAL versions.
Full protection requires GDAL 3.9 or later. Integer SRIDs are looked up
directly in the EPSG database, so prefer them when the input is untrusted.
Or, if strings must be used on lower GDAL versions, compare to an allow
list. The new gis.W001 system check warns when the installed version of
GDAL is not at least 3.9.
For further information see:
https://www.djangoproject.com/weblog/2026/nov/03/security-releases/
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` [email protected] / chris-lamb.co.uk
`-