« Volver al listado

CVE-2025-13372

Estado: AnalizadaMedia (4.3)—

An issue was discovered in 5.2 before 5.2.9, 5.1 before 5.1.15, and 4.2 before 4.2.27. `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. Earlier, unsupported Django series (such as 5.0.x, 4.1.x, and 3.2.x) were not evaluated and may also be affected. Django would like to thank Stackered for reporting this issue.

CVSS

Probabilidad de explotación (EPSS)

EPSS (Exploit Prediction Scoring System, de FIRST) estima la probabilidad de que una vulnerabilidad sea explotada en 30 días. Complementa a CVSS (impacto) y a CISA KEV (explotación confirmada).

Tecnologías afectadas (1)

CWE

Referencias

JSON original (NVD)

Mostrar
{
  "id": "CVE-2025-13372",
  "cveTags": [],
  "metrics": {
    "ssvcV203": [
      {
        "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
        "ssvcData": {
          "id": "CVE-2025-13372",
          "role": "CISA Coordinator",
          "options": [
            {
              "exploitation": "none"
            },
            {
              "automatable": "no"
            },
            {
              "technicalImpact": "partial"
            }
          ],
          "version": "2.0.3",
          "timestamp": "2025-12-02T15:43:29.673288Z"
        }
      }
    ],
    "cvssMetricV31": [
      {
        "type": "Secondary",
        "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
        "cvssData": {
          "scope": "UNCHANGED",
          "version": "3.1",
          "baseScore": 4.3,
          "attackVector": "NETWORK",
          "baseSeverity": "MEDIUM",
          "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N",
          "integrityImpact": "NONE",
          "userInteraction": "REQUIRED",
          "attackComplexity": "LOW",
          "availabilityImpact": "NONE",
          "privilegesRequired": "NONE",
          "confidentialityImpact": "LOW"
        },
        "impactScore": 1.4,
        "exploitabilityScore": 2.8
      }
    ]
  },
  "affected": [
    {
      "source": "6a34fbeb-21d4-45e7-8e0a-62b95bc12c92",
      "affectedData": [
        {
          "repo": "https://github.com/django/django/",
          "vendor": "djangoproject",
          "product": "Django",
          "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"
            }
          ],
          "packageName": "django",
          "collectionURL": "https://pypi.org/project/Django/",
          "defaultStatus": "unaffected"
        }
      ]
    }
  ],
  "published": "2025-12-02T16:15:53.907",
  "references": [
    {
      "url": "https://docs.djangoproject.com/en/dev/releases/security/",
      "tags": [
        "Patch",
        "Vendor Advisory"
      ],
      "source": "6a34fbeb-21d4-45e7-8e0a-62b95bc12c92"
    },
    {
      "url": "https://groups.google.com/g/django-announce",
      "tags": [
        "Mailing List",
        "Release Notes"
      ],
      "source": "6a34fbeb-21d4-45e7-8e0a-62b95bc12c92"
    },
    {
      "url": "https://www.djangoproject.com/weblog/2025/dec/02/security-releases/",
      "tags": [
        "Patch",
        "Vendor Advisory"
      ],
      "source": "6a34fbeb-21d4-45e7-8e0a-62b95bc12c92"
    }
  ],
  "vulnStatus": "Analyzed",
  "weaknesses": [
    {
      "type": "Secondary",
      "source": "6a34fbeb-21d4-45e7-8e0a-62b95bc12c92",
      "description": [
        {
          "lang": "en",
          "value": "CWE-89"
        }
      ]
    }
  ],
  "descriptions": [
    {
      "lang": "en",
      "value": "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."
    }
  ],
  "lastModified": "2026-06-17T08:34:00.510",
  "configurations": [
    {
      "nodes": [
        {
          "negate": false,
          "cpeMatch": [
            {
              "criteria": "cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*",
              "vulnerable": true,
              "matchCriteriaId": "5208B938-135B-4682-9340-C15B7329ABA6",
              "versionEndExcluding": "4.2.27",
              "versionStartIncluding": "4.2"
            },
            {
              "criteria": "cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*",
              "vulnerable": true,
              "matchCriteriaId": "37B0F07E-F8EA-4DFF-8ED9-C60A79A9ED24",
              "versionEndExcluding": "5.1.15",
              "versionStartIncluding": "5.1"
            },
            {
              "criteria": "cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*",
              "vulnerable": true,
              "matchCriteriaId": "C523418D-ACB5-4E97-9D05-6879B0F48344",
              "versionEndExcluding": "5.2.9",
              "versionStartIncluding": "5.2"
            }
          ],
          "operator": "OR"
        }
      ]
    }
  ],
  "sourceIdentifier": "6a34fbeb-21d4-45e7-8e0a-62b95bc12c92"
}