llamaCVEVulnerability Intelligence
/
framework

CVE-2021-21263

Query Binding Exploitation in Laravel

UnclearParche disponible
Descargar PNG JSON
CVSS 3.1
7.2
Alta
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N Fuente: CNA
5.3NVD · CVSS 3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
ExplotaciónSin evidenciaNo figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche3 versiones6.20.11 · 7.30.2 · 8.22.1
Exposición2.131 dDesde la divulgación, 19 ene 2021, 2:40 p. m.
Detección2.113 dDesde la divulgación hasta su ingreso al índice
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
Modificada
Explotación
Remediación
Monitoreo
Detectada
Verificada
19 ene 21
3 ago 24
3 nov 26
19 nov 26
21 nov 26
19 ene 21
6 jul 22
21 dic 23
6 jun 25
21 nov 26
FechaFaseEventoDetalle
Divulgación Publicada CVE-2021-21263 divulgada · CVSS 7.2 (CNA)
Divulgación Modificada Última actualización del registro
Monitoreo Detectada Ingresó al índice
Monitoreo Verificada Última verificación contra las fuentes
Resumen

Laravel is a web application framework. Versions of Laravel before 6.20.11, 7.30.2 and 8.22.1 contain a query binding exploitation. This same exploit applies to the illuminate/database package which is used by Laravel. If a request is crafted where a field that is normally a non-array value is an array, and that input is not validated or cast to its expected type before being passed to the query builder, an unexpected number of query bindings can be added to the query. In some situations, this will simply lead to no results being returned by the query builder; however, it is possible certain queries could be affected in a way that causes the query to return unexpected results.

¿Qué significa?The bug lets an attacker add an unexpected number of query bindings to a query. That can cause no results to be returned or, for some queries, unexpected results.
¿Quién está afectado?Laravel framework 6.x before 6.20.12, 7.x before 7.30.3, and 8.x before 8.22.1 are affected, and the same applies to illuminate/database. It matters only when the application passes request input to the query builder without validating or casting it to the expected type. Check the installed version with `php artisan --version` or the laravel/framework entry in composer.lock.
¿Qué hacer?Upgrade to 8.22.1 on the 8.x line. On 6.x and 7.x, upgrade to 6.20.12 or 7.30.3, since the advisory text names those versions as the cutoff while the range data lists 6.20.11 and 7.30.2. Until then, validate or cast request input to its expected type before it reaches the query builder.
Contexto

Condiciones y alcance

Condiciones necesarias para que el fallo sea explotable
01
The application passes request input to the query builder without validating or casting it to its expected type.“that input is not validated or cast to its expected type before being passed to the query builder”
02
Laravel or illuminate/database is an affected version (before 6.20.12, 7.30.3 or 8.22.1).“Laravel versions <6.20.12, <7.30.3 & <8.22.1 contain a query binding exploitation.”
¿Quién debe revisar?Teams running the Laravel framework or illuminate/database via Composer, on 6.x before 6.20.12, 7.x before 7.30.3, or 8.x before 8.22.1, especially those passing request input to the query builder.
Vector CVSS 3.1

Desglose de métricas

Opción resaltada = valor del vector · izquierda = peor caso · CNA
Vector de ataqueAV:N
RedAdyacenteLocalFísica
ComplejidadAC:L
BajaAlta
PrivilegiosPR:N
NingunoBajosAltos
InteracciónUI:N
NingunaRequerida
AlcanceS:C
CambiadoSin cambio
ConfidencialidadC:L
AltoBajoNinguno
IntegridadI:L
AltoBajoNinguno
DisponibilidadA:N
AltoBajoNinguno
Score de explotaciónQué tan fácil y probable es que la exploten
10.0/ 10Muy alto
Vector 10.0 (muy fácil) · sin evidencia de explotación.
Versiones

Rangos afectados

Afectada Corregida
framework · laravel/framework≥ 6.0.0 < 6.20.11
illuminate/database≥ 6.0.0 < 6.20.12
framework · laravel/framework≥ 7.0.0 < 7.30.2
illuminate/database≥ 7.0.0 < 7.30.3
framework · laravel/framework · illuminate/database≥ 8.0.0 < 8.22.1
6.0.0
6.20.11
6.20.12
7.0.0
7.30.2
7.30.3
8.0.0
8.22.1
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
framework
Corregida 6.20.11, 7.30.2, 8.22.1 — —
Versiones corregidas6.20.117.30.28.22.1
Explotación

Arsenal público

Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.

Referencias
Fabricantehttps://github.com/laravel/framework/security/advisories/GHSA-3p32-j457-pg5x
Fabricantehttps://blog.laravel.com/security-laravel-62011-7302-8221-released
Otrahttps://github.com/laravel/framework/pull/35865
Otrahttps://packagist.org/packages/laravel/framework
Otrahttps://packagist.org/packages/illuminate/database

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