{"schemaVersion":3,"id":"CVE-2025-13372","aliases":["GHSA-rqw2-ghq9-44m7","BIT-django-2025-13372","PYSEC-2025-104","UBUNTU-CVE-2025-13372","DEBIAN-CVE-2025-13372","CGA-39c5-q9x9-vjq7","CGA-7hxg-cgv9-397w","CGA-cx53-m3v5-7vvc","CGA-pp9c-m5q7-3pcq"],"status":"published","duplicateOf":null,"title":null,"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 also be affected.\nDjango would like to thank Stackered for reporting this issue.","dates":{"published":"2025-12-02T15:13:35.692Z","modified":"2025-12-02T15:43:47.127Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":4.3,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":4.3,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Pypi","score":4.3,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N","exploitability":7.2,"impact":2.3,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":4.3,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N","exploitability":7.2,"impact":2.3,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":4.3,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N","exploitability":7.2,"impact":2.3,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Chainguard","score":4.3,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N","exploitability":7.2,"impact":2.3,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":4.3,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00923,"percentile":0.59735,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.00923},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00923,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00923,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00923,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00923,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00923,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00923,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00923,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00923,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00923,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00923,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00923,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00923,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00923,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00923,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00923,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00923,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00923,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00923,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00923,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00923,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00923,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00923,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00923,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00923,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00923,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00923,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00923,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00923,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00923,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00923,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00923,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00923,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00923,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00923,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00923,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00923,"percentile":0.59735}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.00923,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00923,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00923,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00923,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00923,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00923,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00923,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00923,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00923,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00923,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00923,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00923,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00923,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00923,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00923,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00923,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00923,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00923,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00923,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00923,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00923,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00923,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00923,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00923,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00923,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00923,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00923,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00923,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00923,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00923,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00923,"percentile":0.59735}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')","description":"The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component. Without sufficient removal or quoting of SQL syntax in user-controllable inputs, the generated SQL query can cause those inputs to be interpreted as SQL instead of ordinary user data.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/89.html"}],"affected":[{"vendor":"chainguard","product":"authentik","name":"authentik","label":"authentik","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/authentik","purlType":"apk","versions":[{"text":"< 2025.10.2-r2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2025.10.2-r2","eol":null,"hubHref":null},{"vendor":"chainguard","product":"authentik-go-server","name":"authentik-go-server","label":"authentik-go-server","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/authentik-go-server","purlType":"apk","versions":[{"text":"< 2025.10.2-r2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2025.10.2-r2","eol":null,"hubHref":null},{"vendor":"chainguard","product":"awx","name":"awx","label":"awx","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/awx","purlType":"apk","versions":[{"text":"< 24.6.1-r20","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 24.6.1-r20","eol":null,"hubHref":null},{"vendor":"debian","product":"python-django","name":"python-django","label":"python-django","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/python-django","purlType":"deb","versions":[{"text":"< 3:3.2.25-0+deb12u1","noFixRecorded":false,"fixedIn":null},{"text":"< 3:4.2.27-0+deb13u1","noFixRecorded":false,"fixedIn":null},{"text":"< 3:4.2.27-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3:3.2.25-0+deb12u1 | < 3:4.2.27-0+deb13u1 | < 3:4.2.27-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"python-django","name":"python-django","label":"python-django","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/python-django","purlType":"deb","versions":[{"text":"< 2:2.2.12-1ubuntu0.29+esm6","noFixRecorded":false,"fixedIn":null},{"text":"< 2:3.2.12-2ubuntu1.24","noFixRecorded":false,"fixedIn":null},{"text":"< 3:4.2.11-1ubuntu1.13","noFixRecorded":false,"fixedIn":null},{"text":"< 3:5.2.4-1ubuntu2.2","noFixRecorded":false,"fixedIn":null},{"text":"< 3:5.2.9-0ubuntu1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2:2.2.12-1ubuntu0.29+esm6 | < 2:3.2.12-2ubuntu1.24 | < 3:4.2.11-1ubuntu1.13 | < 3:5.2.4-1ubuntu2.2 | < 3:5.2.9-0ubuntu1","eol":null,"hubHref":null},{"vendor":"djangoproject","product":"django","name":"django","label":"django","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 4.2, < 4.2.27","noFixRecorded":false,"fixedIn":null},{"text":"≥ 5.1, < 5.1.15","noFixRecorded":false,"fixedIn":null},{"text":"≥ 5.2, < 5.2.9","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 4.2, < 4.2.27 | ≥ 5.1, < 5.1.15 | ≥ 5.2, < 5.2.9","eol":{"isEol":null,"eolDate":null,"matchMethod":"cpe","cycle":null,"product":{"name":"django","label":"Django","category":"framework"}},"hubHref":"/vendor/djangoproject/django"},{"vendor":"PyPI","product":"django","name":"django","label":"django","ecosystem":"PyPI","cpePart":null,"purl":"pkg:pypi/django","purlType":"pypi","versions":[{"text":"≥ 5.2a1, < 5.2.9","noFixRecorded":false,"fixedIn":null},{"text":"≥ 5.1a1, < 5.1.15","noFixRecorded":false,"fixedIn":null},{"text":"≥ 4.2a1, < 4.2.27","noFixRecorded":false,"fixedIn":null},{"text":"≥ 5.2, < 5.2.9","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 5.2a1, < 5.2.9 | ≥ 5.1a1, < 5.1.15 | ≥ 4.2a1, < 4.2.27 | ≥ 5.2, < 5.2.9","eol":null,"hubHref":null}],"affectedCount":7,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://docs.djangoproject.com/en/dev/releases/security/","label":"docs.djangoproject.com/en/dev/releases/security/","hostname":"docs.djangoproject.com","tags":["Vendor Advisory","FIX","Advisory","Patch"]},{"url":"https://groups.google.com/g/django-announce","label":"groups.google.com/g/django-announce","hostname":"groups.google.com","tags":["Mailing List","WEB","Advisory","ARTICLE","Release Notes"]},{"url":"https://www.djangoproject.com/weblog/2025/dec/02/security-releases/","label":"www.djangoproject.com/weblog/2025/dec/02/security-releases/","hostname":"www.djangoproject.com","tags":["Vendor Advisory","FIX","Advisory","Patch"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-13372","label":"nvd.nist.gov/vuln/detail/CVE-2025-13372","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/django/django/commit/479415ce5249bcdebeb6570c72df2a87f45a7bbf","label":"github.com/django/django/commit/479415ce5249bcdebeb6570c72df2a87f45a7bbf","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/django/django/commit/56aea00c3c5e1aacf4ed05f8ee06c2e78f02cea0","label":"github.com/django/django/commit/56aea00c3c5e1aacf4ed05f8ee06c2e78f02cea0","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/django/django/commit/5b90ca1e7591fa36fccf2d6dad67cf1477e6293e","label":"github.com/django/django/commit/5b90ca1e7591fa36fccf2d6dad67cf1477e6293e","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/django/django/commit/9c6a5bde24240382807d13bc3748d08444709355","label":"github.com/django/django/commit/9c6a5bde24240382807d13bc3748d08444709355","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/django/django/commit/f997037b235f6b5c9e7c4a501491ec45f3400f3d","label":"github.com/django/django/commit/f997037b235f6b5c9e7c4a501491ec45f3400f3d","hostname":"github.com","tags":["WEB"]},{"url":"https://docs.djangoproject.com/en/dev/releases/security","label":"docs.djangoproject.com/en/dev/releases/security","hostname":"docs.djangoproject.com","tags":["WEB"]},{"url":"https://github.com/django/django","label":"github.com/django/django","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2025-104.yaml","label":"github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2025-104.yaml","hostname":"github.com","tags":["WEB"]},{"url":"https://www.djangoproject.com/weblog/2025/dec/02/security-releases","label":"www.djangoproject.com/weblog/2025/dec/02/security-releases","hostname":"www.djangoproject.com","tags":["WEB"]},{"url":"https://github.com/advisories/GHSA-rqw2-ghq9-44m7","label":"github.com/advisories/GHSA-rqw2-ghq9-44m7","hostname":"github.com","tags":["Advisory"]},{"url":"https://ubuntu.com/security/CVE-2025-13372","label":"ubuntu.com/security/CVE-2025-13372","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2025-13372","label":"www.cve.org/CVERecord?id=CVE-2025-13372","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-7903-1","label":"ubuntu.com/security/notices/USN-7903-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2025-13372","label":"security-tracker.debian.org/tracker/CVE-2025-13372","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://github.com/django/django/","label":"github.com/django/django/","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/13xxx/CVE-2025-13372.json","label":"github.com/CVEProject/cvelistV5/tree/main/cves/2025/13xxx/CVE-2025-13372.json","hostname":"github.com","tags":["Advisory"]},{"url":"https://pypi.org/project/Django/","label":"pypi.org/project/Django/","hostname":"pypi.org","tags":["PACKAGE"]}],"lineage":{"upstream":[],"downstream":["DSA-6117-1","DSA-6136-1","MGASA-2025-0320","OPENSUSE-SU-2025:15805-1","OPENSUSE-SU-2025:15806-1","OPENSUSE-SU-2025:20153-1","OPENSUSE-SU-2026:10005-1","OPENSUSE-SU-2026:11270-1","SUSE-SU-2025:4384-1","USN-7903-1"],"duplicates":[],"related":["CGA-R387-25X2-FCMW","CGA-V568-2QPH-56R2","OPENSUSE-SU-2025:15805-1","OPENSUSE-SU-2025:15806-1","OPENSUSE-SU-2025:20153-1","OPENSUSE-SU-2026:10005-1","OPENSUSE-SU-2026:11270-1","SUSE-SU-2025:4384-1","USN-7903-1"]},"timeline":[{"kind":"published","date":"2025-12-02T15:13:35.692Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-12-02T15:43:47.127Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":17,"level":"low","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T22:44:08.562Z","stale":false,"partial":false}}