django is vulnerable to Server-Side Request Forgery (SSRF)
53
CVE Score
Medium
Server-Side Request Forgery (SSRF)
Spatial lookups pass bytes values to GDALRaster from BaseSpatialField.get_prep_value in django/contrib/gis/db/models/fields.py. GDALRaster writes those bytes to GDAL's in-memory virtual filesystem and opens them, so a buffer containing a VRT document can reference an external raster source and cause the Django process to make a network request while preparing the lookup. GDALRaster.check_raster_lookup_value rejects dict and str inputs on releases that include that guard, and still allows bytes. The fix rejects bytes in the lookup guard and in the geometry fallback, while still accepting valid hexadecimal geometry bytes.
Upgrade the django library to the patch version.
You are affected if you are using a version that falls within the vulnerable range and your application passes user-controllable bytes into a GeoDjango spatial lookup that can reach GDALRaster.
5.2 - 5.2.17
Fixed in 5.2.186.0 - 6.0.8
Fixed in 6.0.96.1 - 6.1.1
Fixed in 6.1.2django is vulnerable to Server-Side Request Forgery (SSRF) in versions 6.1 - 6.1.1, 6.0 - 6.0.8 and 5.2 - 5.2.17.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.