llamaCVEVulnerability Intelligence
/
frigate

CVE-2023-45672

Frigate unsafe deserialization in load_config_with_no_duplicates of frigate/util/builtin.py

Solo en configuraciones específicasParche disponibleunsafe deserialization
Descargar PNG JSON
CVSS 3.1
7.5
Alta
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H Fuente: CNA
ExplotaciónSin evidenciaNo figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche1 versión0.13.0-beta3
Exposición1.117 dDesde la divulgación, 30 oct 2023, 5:49 p. m.
Detección1.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
Fuente: OSV +1
30 oct 23
2 ago 24
17 nov 26
18 nov 26
21 nov 26
30 oct 23
5 ago 24
11 may 25
14 feb 26
21 nov 26
FechaFaseEventoDetalle
Divulgación Publicada CVE-2023-45672 divulgada · CVSS 7.5 (CNA)
Divulgación Modificada Última actualización del registro
Monitoreo Detectada Ingresó al índice
Monitoreo Fuente: OSV Registro visto por primera vez en OSV
Monitoreo Verificada Última verificación contra las fuentes
Resumen

Frigate is an open source network video recorder. Prior to version 0.13.0 Beta 3, an unsafe deserialization vulnerability was identified in the endpoints used to save configurations for Frigate. This can lead to unauthenticated remote code execution. This can be performed through the UI at `/config` or through a direct call to `/api/config/save`. Exploiting this vulnerability requires the attacker to both know very specific information about a user's Frigate server and requires an authenticated user to be tricked into clicking a specially crafted link to their Frigate instance. This vulnerability could exploited by an attacker under the following circumstances: Frigate publicly exposed to the internet (even with authentication); attacker knows the address of a user's Frigate instance; attacker crafts a specialized page which links to the user's Frigate instance; attacker finds a way to get an authenticated user to visit their specialized page and click the button/link. Input is initially accepted through `http.py`. The user-provided input is then parsed and loaded by `load_config_with_no_duplicates`. However, `load_config_with_no_duplicates` does not sanitize this input by merit of using `yaml.loader.Loader` which can instantiate custom constructors. A provided payload will be executed directly at `frigate/util/builtin.py:110`. This issue may lead to pre-authenticated Remote Code Execution. Version 0.13.0 Beta 3 contains a patch.

Affects Frigate v0.12.1 and earlier, and versions before v0.13.0 Beta 3, when publicly exposed to the internet even with authentication. Fixed in 0.13.0-beta3.

¿Qué significa?The bug is unsafe deserialization in load_config_with_no_duplicates in frigate/util/builtin.py. It may allow pre-authenticated remote code execution on the Frigate server, reachable without logging in, and can also write to mounted filesystems if they are not read-only.
¿Quién está afectado?Frigate versions at or below v0.12.1, and versions before v0.13.0 Beta 3, are in the affected range, and the advisory's condition is a Frigate instance publicly exposed to the internet, even with authentication. Compare the installed Frigate version against these ranges to check.
¿Qué hacer?Upgrade Frigate to 0.13.0 Beta 3 or later, which is the listed fixed version.
Contexto

Condiciones y alcance

Condiciones necesarias para que el fallo sea explotable
01
Frigate versions at or below v0.12.1, and versions before v0.13.0 Beta 3“<= v0.12.1, < v0.13.0 Beta 3”
02
Frigate publicly exposed to the internet“Frigate publicly exposed to the internet (even with authentication)”
¿Quién debe revisar?Teams running Frigate NVR before v0.13.0 Beta 3, especially instances exposed to the internet or reachable at /config or /api/config/save.
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:H
BajaAlta
PrivilegiosPR:N
NingunoBajosAltos
InteracciónUI:R
NingunaRequerida
AlcanceS:U
CambiadoSin cambio
ConfidencialidadC:H
AltoBajoNinguno
IntegridadI:H
AltoBajoNinguno
DisponibilidadA:H
AltoBajoNinguno
Score de explotaciónQué tan fácil y probable es que la exploten
5.9/ 10Medio
Vector 5.9 (moderada) · sin evidencia de explotación.
Versiones

Rangos afectados

Afectada Corregida
frigate< 0.13.0-beta3
0.13.0-beta3
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
frigate
Corregida 0.13.0-beta3 — —
Versiones corregidas0.13.0-beta3
Explotación

Arsenal público

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

Referencias
Fabricantehttps://github.com/blakeblackshear/frigate/security/advisories/GHSA-qp3h-4q62-p428
Otrahttps://github.com/blakeblackshear/frigate/blob/5658e5a4cc7376504af9de5e1eff178939a13e7f/frigate/config.py#L1244-L1244
Otrahttps://github.com/blakeblackshear/frigate/blob/5658e5a4cc7376504af9de5e1eff178939a13e7f/frigate/http.py#L998-L998
Otrahttps://github.com/blakeblackshear/frigate/blob/5658e5a4cc7376504af9de5e1eff178939a13e7f/frigate/util/builtin.py#L110-L110
Otrahttps://securitylab.github.com/advisories/GHSL-2023-190_Frigate/

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