llamaCVEVulnerability Intelligence
/
ckan

CVE-2023-32321

CKAN remote code execution and private information access via crafted resource ids

Solo en configuraciones específicasParche disponible
Descargar PNG JSON
CVSS 3.1
9.8
Crítica
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H Fuente: CNA
ExplotaciónSin evidenciaNo figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche2 versionesPrimer parche a -2 d de la divulgación
Exposición1.274 dDesde la divulgación, 26 may 2023, 5:57 p. m.
Detección1.244 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
Parche 2.9.9 +1
Monitoreo
Detectada
Verificada
24 may 23
26 may 23
14 ene 25
22 oct 26
18 nov 26
21 nov 26
24 may 23
8 abr 24
21 feb 25
6 ene 26
21 nov 26
FechaFaseEventoDetalle
Remediación Parche 2.9.9 ckan · -2 d desde divulgación
Remediación Parche 2.10.1 ckan · -2 d desde divulgación
Divulgación Publicada CVE-2023-32321 divulgada · CVSS 9.8 (CNA)
Divulgación Modificada Última actualización del registro
Monitoreo Detectada Ingresó al índice
Monitoreo Verificada Última verificación contra las fuentes
Resumen

CKAN is an open-source data management system for powering data hubs and data portals. Multiple vulnerabilities have been discovered in Ckan which may lead to remote code execution. An arbitrary file write in `resource_create` and `package_update` actions, using the `ResourceUploader` object. Also reachable via `package_create`, `package_revise`, and `package_patch` via calls to `package_update`. Remote code execution via unsafe pickle loading, via Beaker's session store when configured to use the file session store backend. Potential DOS due to lack of a length check on the resource id. Information disclosure: A user with permission to create a resource can access any other resource on the system if they know the id, even if they don't have access to it. Resource overwrite: A user with permission to create a resource can overwrite any resource if they know the id, even if they don't have access to it. A user with permissions to create or edit a dataset can upload a resource with a specially crafted id to write the uploaded file in an arbitrary location. This can be leveraged to Remote Code Execution via Beaker's insecure pickle loading. All the above listed vulnerabilities have been fixed in CKAN 2.9.9 and CKAN 2.10.1. Users are advised to upgrade. There are no known workarounds for these issues.

¿Qué significa?A user with permission to create or edit a dataset can upload a resource with a specially crafted id, which writes the uploaded file to an arbitrary location. This can lead to remote code execution through Beaker's insecure pickle loading. Such a user can also read or overwrite resources they do not have access to if they know the resource id.
Contexto

Condiciones y alcance

Condiciones necesarias para que el fallo sea explotable
01
CKAN versions before 2.9.9 or before 2.10.1 (affected versions <2.9.9, <2.10.1).“Affected versions <2.9.9, <2.10.1”
02
For the Beaker pickle issue, Beaker is configured to use the file session store backend.“when configured to use the file session store backend”
03
The attacker must have permission to create or edit a dataset (resource creation/upload).“A user with permissions to create or edit a dataset can upload a resource with a specially crafted id”
¿Quién debe revisar?Teams running CKAN before 2.9.9 or 2.10.1 that let users create or edit datasets and use the Beaker file session store, such as CKAN data hubs and portals.
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: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
10.0/ 10Muy alto
Vector 10.0 (muy fácil) · sin evidencia de explotación.
Versiones

Rangos afectados

Afectada Corregida Última
ckan< 2.9.9
ckan≥ 2.10.0 < 2.10.1
2.9.9
2.10.0
2.10.1
2.12.1
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
pypickan
Corregida 2.9.9, 2.10.1 -2 d · -2 d 2.12.1 no afectada
Versiones corregidas2.9.92.10.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/ckan/ckan/security/advisories/GHSA-446m-hmmm-hm8m
Otrahttps://github.com/ckan/ckan/blob/2a6080e61d5601fa0e2a0317afd6a8e9b7abf6dd/CHANGELOG.rst

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