{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2025-13372","id":"CVE-2025-13372","title":"Potential SQL injection in FilteredRelation column aliases on PostgreSQL","description":"An issue was discovered in 5.2 before 5.2.9, 5.1 before 5.1.15, and 4.2 before 4.2.27.\n`FilteredRelation` is subject to SQL injection in column aliases, using a suitably crafted dictionary, with dictionary expansion, as the `**kwargs` passed to `QuerySet.annotate()` or `QuerySet.alias()` on PostgreSQL.\nEarlier, unsupported Django series (such as 5.0.x, 4.1.x, and 3.2.x) were not evaluated and may ","descriptionLong":"An issue was discovered in 5.2 before 5.2.9, 5.1 before 5.1.15, and 4.2 before 4.2.27.\n`FilteredRelation` is subject to SQL injection in column aliases, using a suitably crafted dictionary, with dictionary expansion, as the `**kwargs` passed to `QuerySet.annotate()` or `QuerySet.alias()` on PostgreSQL.\nEarlier, unsupported Django series (such as 5.0.x, 4.1.x, and 3.2.x) were not evaluated and may also be affected.\nDjango would like to thank Stackered for reporting this issue.","published":"2025-12-02T15:13:35.692Z","updated":"2026-11-17T02:45:10.103217485Z","reserved":"2025-11-18T18:34:58.688Z","status":"Analyzed","rejected":false,"assigner":"DSF","metric":{"version":"3.1","score":4.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N","rating":"medium","source":"CISA-ADP"},"metrics":[{"version":"3.1","score":4.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N","rating":"medium","source":"CISA-ADP"},{"version":"3.1","score":4.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N","rating":"medium","source":"OSV"},{"version":"3.1","score":4.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N","rating":"medium","source":"GitHub"}],"rating":"medium","products":["djangoproject Django"],"affectedProducts":[{"vendor":"djangoproject","product":"Django","defaultStatus":"unaffected","versions":[{"status":"affected","version":"5.2","lessThan":"5.2.9","versionType":"semver"},{"status":"unaffected","version":"5.2.9","versionType":"semver"},{"status":"affected","version":"5.1","lessThan":"5.1.15","versionType":"semver"},{"status":"unaffected","version":"5.1.15","versionType":"semver"},{"status":"affected","version":"4.2","lessThan":"4.2.27","versionType":"semver"},{"status":"unaffected","version":"4.2.27","versionType":"semver"}],"platforms":[]}],"packages":[{"ecosystem":"PyPI","name":"django","purl":"pkg:pypi/django","ranges":[">=5.2a1 <5.2.9",">=5.1a1 <5.1.15",">=4.2a1 <4.2.27",">=4.2 <4.2.27",">=5.1 <5.1.15",">=5.2 <5.2.9"],"fixed":["5.2.9","5.1.15","4.2.27"],"advisory":"GHSA-rqw2-ghq9-44m7"}],"cwes":["CWE-89"],"aliases":["BIT-django-2025-13372","GHSA-rqw2-ghq9-44m7","PYSEC-2025-104"],"references":[{"url":"https://docs.djangoproject.com/en/dev/releases/security/","tags":["vendor-advisory","Patch","Vendor Advisory","advisory","fix"]},{"url":"https://groups.google.com/g/django-announce","tags":["mailing-list","Mailing List","Release Notes","article","web","advisory"]},{"url":"https://www.djangoproject.com/weblog/2025/dec/02/security-releases/","tags":["vendor-advisory","Patch","Vendor Advisory","advisory","fix"]},{"url":"https://github.com/django/django/","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/13xxx/CVE-2025-13372.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-13372","tags":["advisory"]},{"url":"https://pypi.org/project/Django/","tags":["package"]},{"url":"https://github.com/django/django/commit/479415ce5249bcdebeb6570c72df2a87f45a7bbf","tags":["web"]},{"url":"https://github.com/django/django/commit/56aea00c3c5e1aacf4ed05f8ee06c2e78f02cea0","tags":["web"]},{"url":"https://github.com/django/django/commit/5b90ca1e7591fa36fccf2d6dad67cf1477e6293e","tags":["web"]},{"url":"https://github.com/django/django/commit/9c6a5bde24240382807d13bc3748d08444709355","tags":["web"]},{"url":"https://github.com/django/django/commit/f997037b235f6b5c9e7c4a501491ec45f3400f3d","tags":["web"]},{"url":"https://docs.djangoproject.com/en/dev/releases/security","tags":["web"]},{"url":"https://github.com/django/django","tags":["package"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2025-104.yaml","tags":["web"]},{"url":"https://www.djangoproject.com/weblog/2025/dec/02/security-releases","tags":["web"]},{"url":"https://github.com/advisories/GHSA-rqw2-ghq9-44m7","tags":["advisory"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00926,"epssPercentile":0.6122,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2025-13372","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-13372","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2025-13372","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-rqw2-ghq9-44m7","ok":true,"note":"GHSA-rqw2-ghq9-44m7"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2025-13372","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":["django"],"critical":[],"attention":null}