... o the Django security policy . CVE-2026-53877: Heap buffer over-read in GDALRaster When GDALRaster was instantiated with a bytes object representing a raster file, the vsi_buffer property could over-read the allocated buffer by approximately 32 bytes. ... policy . バグ修正 Fixed a regression in Django 6.0 where the PBKDF2 and MD5 password hashers raised UnicodeDecodeError for bytes passwords that were not valid UTF-8. Passwords supplied as str or as UTF-8 bytes are unaffected ( #37184 ). ... ... VE-2026-87890: Potential request forgery via spatial lookup byte values Spatial lookups accepted raster values provided as bytes without requiring them to be explicitly wrapped in GDALRaster . Although these values were opened through GDAL's in-memory ... ngo process user while preparing the lookup. This issue could be exploited by applications that passed attacker-controlled bytes directly to a spatial lookup. It was overlooked in the fix for CVE-2026-15307. To mitigate this issue, raster values provi ... ded as bytes must now be wrapped in GDALRaster before being used in spatial lookups. Byte values representing valid hexadecimal geometr ... ... VE-2026-87890: Potential request forgery via spatial lookup byte values Spatial lookups accepted raster values provided as bytes without requiring them to be explicitly wrapped in GDALRaster . Although these values were opened through GDAL's in-memory ... ngo process user while preparing the lookup. This issue could be exploited by applications that passed attacker-controlled bytes directly to a spatial lookup. It was overlooked in the fix for CVE-2026-15307. To mitigate this issue, raster values provi ... ded as bytes must now be wrapped in GDALRaster before being used in spatial lookups. Byte values representing valid hexadecimal geometr ... ... o the Django security policy . CVE-2026-53877: Heap buffer over-read in GDALRaster When GDALRaster was instantiated with a bytes object representing a raster file, the vsi_buffer property could over-read the allocated buffer by approximately 32 bytes. ... ... VE-2026-87890: Potential request forgery via spatial lookup byte values Spatial lookups accepted raster values provided as bytes without requiring them to be explicitly wrapped in GDALRaster . Although these values were opened through GDAL's in-memory ... ngo process user while preparing the lookup. This issue could be exploited by applications that passed attacker-controlled bytes directly to a spatial lookup. It was overlooked in the fix for CVE-2026-15307. To mitigate this issue, raster values provi ... ded as bytes must now be wrapped in GDALRaster before being used in spatial lookups. Byte values representing valid hexadecimal geometr ... ... go) for Django to be the direct HTTP endpoint when RemoteUserMiddleware is used. Request headers and URLs must be under 8K bytes To prevent denial-of-service (DoS) attacks, production-grade servers impose limits on request header and URL sizes. For ex ... ample, by default Gunicorn allows up to roughly: 4k bytes for a URL 8K bytes for a request header Other web servers, such as Nginx and Apache, have similar restrictions to prevent ... mption. Consequently, the Django security team will not consider reports that rely on request headers or URLs exceeding 8K bytes, as such inputs are already mitigated at the server level in production environments. runserver should never be used in pr ... ... [5, 2, 3, 5], [5, 2, 3, 5], [5, 5, 5, 5]], dtype=uint8) >>> rst_file = open ( "/path/to/your/raster.tif" , "rb" ) >>> rst_bytes = rst_file . read () >>> rst = GDALRaster ( rst_bytes ) >>> rst . is_vsi_based True >>> rst . name # Stored in a random pa ... EFAULT" : { "OWNER" : None , "VERSION" : "2.0" }} >>> rst . metadata {'DEFAULT': {'VERSION': '2.0'}} vsi_buffer [ソース] A bytes representation of this raster. Returns None for rasters that are not stored in GDAL's in-memory virtual filesystem. is_vsi ... ージからバッファとして取得されたり、ディスクに書き込まれることなくビューから返されたりするようなWebコンテキストで便利です。 bytes オブジェクトが入力として提供されるか、ファイルパスが /vsimem/ で始まる場合、仮想ファイルシステム内に GDALRaster オブジェク ... ... ンクのサイズをコントロールします。 パフォーマンスを最大限にするために、チャンクサイズは 4 で割り切れる必要があり、2 GB (2 31 bytes) を超えてはいけません。 複数のハンドラによってチャンクサイズが複数ある場合、Django はハンドラで定義された最小のチャンクサイ ... ズを使用します。 デフォルトは 64*2 10 bytes、つまり 64 KB です。 FileUploadHandler. new_file ( field_name , file_name , content_type , content_length , charset , conte ... ... ge import MIMEPart from django.core.mail import EmailMultiAlternatives message = EmailMultiAlternatives ( ... ) image_data_bytes = ... # Load image as bytes # Create a random Content-ID, including angle brackets cid = email . utils . make_msgid () inl ... ine_image = email . message . MIMEPart () inline_image . set_content ( image_data_bytes , maintype = "image" , subtype = "png" , # or "jpeg", etc. depending on the image type disposition = "inline" , cid = cid ... ... jango.core.files.base import ContentFile f1 = ContentFile ( "esta frase está en español" ) f2 = ContentFile ( b "these are bytes" ) ImageFile クラス class ImageFile ( file_object , name = None ) [ソース] Django には画像専用の組み込みクラスがあります。 ... 2026年10月08日