Description
An issue was discovered in Django 6.1 before 6.1.3, 6.0 before 6.0.10, and 5.2 before 5.2.19.
`django.contrib.gis.gdal.SpatialReference` (and related `transform()` methods and `srs`/`srid` setters) do not restrict GDAL’s file and network access when parsing string input, which allows attackers to trigger server-side requests or local file reads via crafted spatial reference strings.
Earlier, unsupported Django series (such as 5.1.x, 5.0.x, and 4.2.x) were not evaluated and may also be affected.
Django would like to thank Adraca for reporting this issue.
Published: 2026-11-03
Score: 6.9 Medium
EPSS: n/a
KEV: No
Impact: Server‑side request forgery
Action: Patch ASAP
AI Analysis

Impact

An application that parses spatial reference strings in Django 5.2, 6.0, or 6.1 can unknowingly allow the GDAL library to perform any file system or network operation. By supplying a crafted spatial reference string, an attacker can trigger the server to request external resources or read local files. This vulnerability enables a server‑side request forgery or local file read, potentially exposing data, hijacking traffic, or facilitating further attacks.

Affected Systems

The issue affects Django 5.2 before version 5.2.19, Django 6.0 before version 6.0.10, and Django 6.1 before version 6.1.3. Versions earlier in the series such as 5.1.x, 5.0.x, and 4.2.x were not evaluated but may also be vulnerable. The problem resides in the django.contrib.gis.gdal.SpatialReference component and its related transform methods and srs/srid setters.

Risk and Exploitability

The CVSS score of 6.9 indicates moderate to high severity, and while EPSS data is not available, the vulnerability is not listed in the CISA KEV catalog, so it is not known to have been widely exploited yet. Attackers can exploit it by submitting a malicious spatial reference string through any interface that accepts GIS data, which may be typical in mapping services or applications that import external geospatial files. If the application processes untrusted data without validation, the attack can succeed without additional conditions.

Generated by OpenCVE AI on November 3, 2026 at 16:39 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Django to the latest patch release (6.1.3, 6.0.10, or 5.2.19) or to a newer supported series.
  • Validate spatial reference strings against a whitelist of known SRIDs or reject arbitrary input before it is passed to GDAL.
  • Apply network or file‑system restrictions so that the GDAL library running under Django cannot perform outbound requests or read arbitrary local files.

Generated by OpenCVE AI on November 3, 2026 at 16:39 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 03 Nov 2026 19:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Tue, 03 Nov 2026 17:00:00 +0000

Type Values Removed Values Added
First Time appeared Django Project
Django Project django
Djangoproject
Djangoproject django
Vendors & Products Django Project
Django Project django
Djangoproject
Djangoproject django

Tue, 03 Nov 2026 15:45:00 +0000

Type Values Removed Values Added
Description An issue was discovered in Django 6.1 before 6.1.3, 6.0 before 6.0.10, and 5.2 before 5.2.19. `django.contrib.gis.gdal.SpatialReference` (and related `transform()` methods and `srs`/`srid` setters) do not restrict GDAL’s file and network access when parsing string input, which allows attackers to trigger server-side requests or local file reads via crafted spatial reference strings. Earlier, unsupported Django series (such as 5.1.x, 5.0.x, and 4.2.x) were not evaluated and may also be affected. Django would like to thank Adraca for reporting this issue.
Title Server-side request forgery via SpatialReference string input
Weaknesses CWE-918
References
Metrics cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N'}

cvssV4_0

{'score': 6.9, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N'}


Subscriptions

Django Project Django
Djangoproject Django
cve-icon MITRE

Status: PUBLISHED

Assigner: DSF

Published:

Updated: 2026-11-03T18:26:08.053Z

Reserved: 2026-10-21T18:36:16.193Z

Link: CVE-2026-114582

cve-icon Vulnrichment

Updated: 2026-11-03T17:51:28.494Z

cve-icon NVD

Status : Deferred

Published: 2026-11-03T16:17:19.570

Modified: 2026-11-03T19:17:54.530

Link: CVE-2026-114582

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-11-03T16:45:14Z

Weaknesses
  • CWE-918

    Server-Side Request Forgery (SSRF)