-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Format: 1.8 Date: Thu, 05 Nov 2026 09:27:41 -0800 Source: python-django Binary: python-django-doc python3-django Architecture: all Version: 3:4.2.30-0+deb13u1 Distribution: trixie-security Urgency: high Maintainer: all / amd64 / i386 Build Daemon (x86-grnet-03) Changed-By: Chris Lamb Description: python-django-doc - High-level Python web development framework (documentation) python3-django - High-level Python web development framework Closes: 1126323 Changes: python-django (3:4.2.30-0+deb13u1) trixie-security; urgency=high . * New upstream security release (4.2.30): . - CVE-2026-3902: ASGI header spoofing via underscore/hyphen conflation. ASGIRequest normalizes header names following WSGI conventions, mapping hyphens to underscores. As a result, even in configurations where reverse proxies carefully strip security-sensitive headers named with hyphens, such a header could be spoofed by supplying a header named with underscores. Under WSGI, it is the responsibility of the server or proxy to avoid ambiguous mappings. (Django's runserver was patched via CVE-2015-0219.) But under ASGI, there is not the same uniform expectation, even if many proxies protect against this under default configuration (including nginx via underscores_in_headers off;). Headers containing underscores are now ignored by ASGIRequest, matching the behavior of Daphne, the reference server for ASGI. . - CVE-2026-4277: Privilege abuse in GenericInlineModelAdmin. Add permissions on inline model instances were not validated on submission of forged POST data in GenericInlineModelAdmin. . - CVE-2026-4292: Privilege abuse in ModelAdmin.list_editable. Admin changelist forms using ModelAdmin.list_editable incorrectly allowed new instances to be created via forged POST data. . - CVE-2026-33033: Potential denial-of-service vulnerability in MultiPartParser via base64-encoded file upload. When using django.http.multipartparser.MultiPartParser, multipart uploads with Content-Transfer-Encoding: base64 that include excessive whitespace may trigger repeated memory copying, potentially degrading performance. . - CVE-2026-33034: Potential denial-of-service vulnerability in ASGI requests via memory upload limit bypass. ASGI requests with a missing or understated Content-Length header could bypass the DATA_UPLOAD_MAX_MEMORY_SIZE limit when reading HttpRequest.body, potentially loading an unbounded request body into memory and causing service degradation. . * New upstream security release (4.2.29): . - CVE-2026-25674: Potential incorrect permissions on newly created file system objects. . Django's file-system storage and file-based cache backends used the process umask to control permissions when creating directories. In multi-threaded environments, one thread's temporary umask change can affect other threads' file and directory creation, resulting in file system objects being created with unintended permissions. Django now applies the requested permissions via os.chmod() after os.mkdir(), removing the dependency on the process-wide umask. . - One additional issue (CVE-2026-25673) to address a Windows-specific issue is also fixed in this version. This is potential denial-of-service vulnerability in URLField via Unicode normalization. . * In addition: . - CVE-2026-15337: Avoid a potential denial-of-service vulnerability in the check_for_language() method in the django.utils.translation method. This was subject to a potential denial-of-service (DoS) attack when checking many distinct, very long language codes. Each code was used as a key in an in-memory cache, consuming process memory. . The language value reaches this function through the set_language() view of django.views.i18n (which is not active by default) from POST data. Since request data is limited by the DATA_UPLOAD_MAX_MEMORY_SIZE setting and the cache is configured to store a maximum number of entries, the memory that could be consumed was bounded. To mitigate this vulnerability, language codes longer than 500 characters are now rejected before the cached lookup. . - CVE-2026-15920: Prevent a potential cross-site scripting (XSS) attack via URLField values in the Django admin. The admin renders URLField values as clickable links on changelist views and read-only fields. The link was generated without validating the value as a safe URL, so a stored value using a potentially dangerous scheme was rendered as a link. URLField values shown via display_for_field are now validated using URLValidator before a link is rendered and displayed as plain text if validation is failed. . - CVE-2026-77050: Potential denial-of-service vulnerability in get_supported_language_variant. This method was subject to a potential denial-of-service attack when processing many distinct and very long language codes. Language codes were used as keys in an in-memory cache before their length was limited, potentially consuming excessive process memory. To mitigate this vulnerability, language codes longer than 500 characters are now rejected or truncated before the cached lookup. . - CVE-2026-84429: Potential denial-of-service vulnerability in HTTP header parsing. django.utils.http.parse_header_parameters() was subject to a potential denial-of-service attack due to quadratic time complexity when parsing a value with many separators inside a quoted parameter. An unauthenticated request could reach this through common headers such as Accept or Content-Type, for instance via the content negotiation performed by HttpRequest.accepts(). The per-call length limit does not bound the combined size of repeated headers. The undocumented django.utils.http.parse_header_parameters() function now uses Python's email.message.Message for parsing. As a result, parsing of some malformed or unusual header values may differ, for example, RFC 2231 values with a missing encoding are now decoded. . - CVE-2026-108147: Prevent a potential memory exhaustion in MultiPartParser via base64-encoded file uploads. When using django.http.multipartparser's MultiPartParser, multipart uploads with a "Content-Transfer-Encoding: base64" header could be buffered entirely in memory regardless of the value of FILE_UPLOAD_MAX_MEMORY_SIZE before being passed to upload handlers, potentially consuming excessive memory. . - CVE-2026-113593: Avoid a 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. . * Lastly, we adjust the scaling factor in the test for CVE-2025-64460 added in 3:4.2.27-0+deb13u1 as it causes flakiness on loaded machines, and, in particular, on the runners for Debian autopkgtests. (Closes: #1126323) Checksums-Sha1: 8c7cc79e193c3cbdfcdd43b8009ab66af88885ac 3621044 python-django-doc_4.2.30-0+deb13u1_all.deb 92f7c64a6f4a173c54d57548abd79e9083e02b97 17169 python-django_4.2.30-0+deb13u1_all-buildd.buildinfo 200b3b84e36f69c55eb80e1d44306659729ab5bb 2743788 python3-django_4.2.30-0+deb13u1_all.deb Checksums-Sha256: 25e2b8b0032a465059a94b735469f3daa164e2bfc039c1051c7593295fba3e76 3621044 python-django-doc_4.2.30-0+deb13u1_all.deb be17e35cbc4d98589c9205af61f8ed5f3e3b422e3c061a50edbb30d2e485bfa4 17169 python-django_4.2.30-0+deb13u1_all-buildd.buildinfo ac416501972eb8519a3e6c99f28be4eafccfc02b054da85a7de195d81de610cb 2743788 python3-django_4.2.30-0+deb13u1_all.deb Files: b03d5c464d6c83057bf3e83591118a1d 3621044 doc optional python-django-doc_4.2.30-0+deb13u1_all.deb 99e9178dac26c3c0abadebd7f6173ae4 17169 python optional python-django_4.2.30-0+deb13u1_all-buildd.buildinfo 3cd74e4e7dd7e1bc0b5d3e9919600c21 2743788 python optional python3-django_4.2.30-0+deb13u1_all.deb -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEE5ZI1lXv5WjhHIVjsN8Ugyu9dQiQFAmr3c/gACgkQN8Ugyu9d QiT/uA//d9+OF6L8VjDYgCPTZ5DVQ6u6GAVVQ06VqmceCNoPVYV395it47Nt42rj bpcUiaClH2tIfml29wTWWdctk0RGCgaYkzp0p1OVbYuUUV6ehMG2Q7K/czg82V4n c5OydpXFa5Nj3FsB1+QVi1MPeEk/DfwFqR7OiG9V06PCUzkWD3+3ZUrwZ9hFWhiJ 9AK9jilnvq8GmznWGrE3nmX0r0RtvxeWtADKqocb6uUpNr63w6zG4TbSfyKylgQg I3LdlKhCiKGz79L4dlXSrGsdFeE8GBL59zDLby0l3lCGuxZ46HjC+Q8CDPw7eo/f +0aC+xVppg3buuQDOKrS/bKra5b8H5gayT/ZXMndw1x818j8wSkBzDto0UaY+Bb/ w4FgRHcgNukXZBclp+N7v4teZR/OPLzdyIDphJphvpcEqD8GC4TGhQUiH+LNx234 8xJy2sm1FqPemGZUGRER4Ev9qgXP52/i3SOHX9HDV0Ww0TRbE+OYKkePlWXThyR5 EZ80xpm7+lygKmx5P3Ebz4MWWG7qCtdiEkVzwPSoKc8kKGQOk6rLubeK8ox0jPsT 6C4mnV+j1RksZmCsl0kV6J5Dpis6I1pdng54QOWg9m9xwienzFUJUKzfvMSFuvNw Z+Iwi4wiyCWRV1lc5OevjB676FgVutU53tqIhfudDo5oUAKxZes= =rjJJ -----END PGP SIGNATURE-----