django is vulnerable to Arbitrary File Write
82
High Risk
GeoDjango spatial lookups optimistically pass the right-hand-side value to the django.contrib.gis.gdal.GDALRaster constructor, including untrusted filter input such as a spatial-field query string on a Django admin changelist. A dict, or a str holding its JSON form, is opened in write mode regardless of the constructor's write=False default, so a file-backed GDAL driver can write an attacker-chosen name and contents; any other str is treated as a datasource and can trigger an outbound request through a GDAL virtual filesystem handler. Writing a file that the application later imports can lead to remote code execution. The fix disallows dict values and strings that are not valid GEOSGeometry inputs in spatial lookups.
You are affected if you are using a version that falls within the vulnerable range and your application uses GeoDjango spatial fields (GeometryField or RasterField) where untrusted input can reach spatial lookups.
django is vulnerable to Arbitrary File Write in versions 5.2.0 - 5.2.16 and 6.0.0 - 6.0.7.
Upgrade the django library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant