llamaCVEVulnerability Intelligence
/
Django

CVE-2025-64459

Potential SQL injection via _connector keyword argument in QuerySet and Q objects

Crítica · CVSS alto en tecnología listada, EPSS ≥ 10 %UnclearParche disponible
Descargar PNG JSON
CVSS 3.1
9.1
Crítica
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N Fuente: CISA-ADP
ExplotaciónExploit públicoSSVC: none · no figura en CISA KEV
Exploits públicos112 fuentes
Parche3 versionesPrimer parche el mismo día de la divulgación
Exposición378 dDesde la divulgación, 5 nov 2025, 10:09 a. m.
EPSS ≥ 10 %2 nov 2026Fecha en que la probabilidad de explotación superó el umbral
Decisión SSVCAtender
Priorizar en el próximo ciclo de cambios
Sin explotación conocida, automatizable e impacto técnico total. Hay versiones corregidas disponibles.
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
Evaluación SSVC
Modificada
Explotación
Exploit-DB
Umbral EPSS
Remediación
Parche 4.2.26 +2
Monitoreo
Detectada
Verificada
5 nov 25
6 nov 25
3 dic 25
26 feb 26
2 nov 26
3 nov 26
11 nov 26
19 nov 26
5 nov 25
8 feb 26
14 may 26
16 ago 26
19 nov 26
FechaFaseEventoDetalle
Divulgación Publicada CVE-2025-64459 divulgada · CVSS 9.1 (CISA-ADP)
Remediación Parche 4.2.26 django · 0 d desde divulgación
Remediación Parche 5.1.14 django · 0 d desde divulgación
Remediación Parche 5.2.8 django · 0 d desde divulgación
Divulgación Evaluación SSVC CISA-ADP · explotación ninguna
Explotación Exploit-DB 1 exploit público
Divulgación Modificada Última actualización del registro
Explotación Umbral EPSS La probabilidad de explotación supera el 10 %
Monitoreo Detectada Ingresó al índice
Monitoreo Verificada Última verificación contra las fuentes
Resumen

An issue was discovered in 5.1 before 5.1.14, 4.2 before 4.2.26, and 5.2 before 5.2.8. The methods `QuerySet.filter()`, `QuerySet.exclude()`, and `QuerySet.get()`, and the class `Q()`, are subject to SQL injection when using a suitably crafted dictionary, with dictionary expansion, as the `_connector` argument. 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 cyberstan for reporting this issue.

Affects Django 4.2, 5.1 and 5.2 (before 4.2.26, 5.1.14, 5.2.8) when a dictionary expanded into filter(), exclude(), get() or Q() supplies the _connector argument. Fixed in 5.2.8, 5.1.14 and 4.2.26.

¿Qué significa?QuerySet filtering methods and Q objects could be made to run attacker-chosen SQL. This happens when a crafted dictionary is expanded as keyword arguments and supplies the _connector argument.
¿Quién está afectado?Django 4.2 before 4.2.26, 5.1 before 5.1.14 and 5.2 before 5.2.8 are listed, and the advisory also names 6.0 beta and main. The risk applies where code passes a dictionary with ** expansion to QuerySet.filter(), exclude(), get() or Q(), and the dictionary can supply _connector. Running python -m django --version shows the installed Django version.
¿Qué hacer?Upgrade to Django 5.2.8, 5.1.14 or 4.2.26, whichever matches the release series in use. No workaround is listed in the facts.
Contexto

Condiciones y alcance

Condiciones necesarias para que el fallo sea explotable
01
Application calls QuerySet.filter(), exclude(), get() or Q() with a dictionary expanded as keyword arguments, where the dictionary supplies the _connector argument“when using a suitably crafted dictionary, with dictionary expansion, as the _connector argument”
02
Django 5.2, 5.1 or 4.2 (also 6.0 beta and main) before the patched releases“Django 6.0 (currently at beta status) Django 5.2 Django 5.1 Django 4.2”
¿Quién debe revisar?Teams running Django 4.2, 5.1 or 5.2 (also 6.0 beta) whose code passes user-controlled dictionaries as kwargs into filter(), exclude(), get() or Q().
Vector CVSS 3.1

Desglose de métricas

Opción resaltada = valor del vector · izquierda = peor caso · CISA-ADP
Vector de ataqueAV:N
RedAdyacenteLocalFísica
ComplejidadAC:L
BajaAlta
PrivilegiosPR:N
NingunoBajosAltos
InteracciónUI:N
NingunaRequerida
AlcanceS:U
CambiadoSin cambio
ConfidencialidadC:H
AltoBajoNinguno
IntegridadI:H
AltoBajoNinguno
DisponibilidadA:N
AltoBajoNinguno
Versiones

Rangos afectados

Afectada Corregida Última
django< 4.2.26
django≥ 4.2 < 4.2.26
django≥ 5.0a1 < 5.1.14
django≥ 5.2a1 < 5.2.8
django≥ 5.1 < 5.1.14
django≥ 5.2 < 5.2.8
4.2
4.2.26
5.0a1
5.2a1
5.1
5.1.14
5.2
5.2.8
6.1.3
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
pypidjango
Corregida 4.2.26, 5.1.14, 5.2.8 0 d · 0 d · 0 d 6.1.3 no afectada
Versiones corregidas4.2.265.1.145.2.8
Explotación

Arsenal público

Exploit-DB
EDB-52456
1
Metasploit
—
0
Nuclei
—
0
PoC en GitHub
0xCyberstan/CVE-2025-64459-Poc · YouGina/CVE-2025-64459 · Z3YR0xX/CVE-2025-64459 · alxsourin/Helpdesk-Telecom-CVE-2025-64459 · joshualent/django-cve-2025-64459 · nunpa/CVE-2025-64459 …
10
Ver los 10 repositorios de GitHub
0xCyberstan/CVE-2025-64459-Poc
YouGina/CVE-2025-64459
Z3YR0xX/CVE-2025-64459
alxsourin/Helpdesk-Telecom-CVE-2025-64459
joshualent/django-cve-2025-64459
nunpa/CVE-2025-64459
omarkurt/django-connector-CVE-2025-64459-testbed
purehate/CVE-2025-64459-hunter
rafaelchriss/RedTeamBrasil-CVE-2025-64459
rockmelodies/django_sqli_target_CVE-2025-64459

Los repositorios públicos incluyen exploits, escáneres, laboratorios y reglas de detección. No ejecute código de terceros sin revisarlo en un entorno aislado.

Referencias
Fabricantehttps://docs.djangoproject.com/en/dev/releases/security/
Fabricantehttps://www.djangoproject.com/weblog/2025/nov/05/security-releases/
Exploithttps://www.exploit-db.com/exploits/52456
Exploithttps://github.com/0xCyberstan/CVE-2025-64459-Poc
Exploithttps://github.com/YouGina/CVE-2025-64459
Exploithttps://github.com/Z3YR0xX/CVE-2025-64459
Exploithttps://github.com/alxsourin/Helpdesk-Telecom-CVE-2025-64459
Exploithttps://github.com/joshualent/django-cve-2025-64459
Exploithttps://github.com/nunpa/CVE-2025-64459
Exploithttps://github.com/omarkurt/django-connector-CVE-2025-64459-testbed
Exploithttps://github.com/purehate/CVE-2025-64459-hunter
Exploithttps://github.com/rafaelchriss/RedTeamBrasil-CVE-2025-64459
Ver 2 referencias más
Exploithttps://github.com/rockmelodies/django_sqli_target_CVE-2025-64459
Otrahttps://groups.google.com/g/django-announce

Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.