llamaCVEVulnerability Intelligence
/
ckan

CVE-2023-22746

CKAN is vulnerable to session secret shared across instances using Docker images

Afecta la configuración por defectoParche disponibleweak randomness
Descargar PNG JSON
CVSS 3.1
8.6
Alta
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L Fuente: CNA
ExplotaciónSin evidenciaSSVC: ninguna · no figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche2 versionesPrimer parche a -100 d de la divulgación
Exposición1.386 dDesde la divulgación, 3 feb 2023, 4:07 p. m.
Detección1.382 dDesde la divulgación hasta su ingreso al índice
Decisión SSVCSeguir
Remediar en la ventana regular de mantenimiento
Sin explotación conocida, automatizable e impacto técnico parcial. Hay versiones corregidas disponibles.
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
Evaluación SSVC +1
Explotación
Remediación
Parche 2.9.7
Monitoreo
Detectada
Fuente: OSV +1
26 oct 22
3 feb 23
10 mar 25
17 nov 26
18 nov 26
21 nov 26
26 oct 22
2 nov 23
8 nov 24
14 nov 25
21 nov 26
FechaFaseEventoDetalle
Remediación Parche 2.9.7 ckan · -100 d desde divulgación
Divulgación Publicada CVE-2023-22746 divulgada · CVSS 8.6 (CNA)
Divulgación Evaluación SSVC CISA-ADP · explotación ninguna
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

CKAN is an open-source DMS (data management system) for powering data hubs and data portals. When creating a new container based on one of the Docker images listed below, the same secret key was being used by default. If the users didn't set a custom value via environment variables in the `.env` file, that key was shared across different CKAN instances, making it easy to forge authentication requests. Users overriding the default secret key in their own `.env` file are not affected by this issue. Note that the legacy images (ckan/ckan) located in the main CKAN repo are not affected by this issue. The affected images are ckan/ckan-docker, (ckan/ckan-base images), okfn/docker-ckan (openknowledge/ckan-base and openknowledge/ckan-dev images) keitaroinc/docker-ckan (keitaro/ckan images).

Affects CKAN 2.9.0 before 2.9.7 and below 2.8.12 run from affected Docker images without a custom session secret in .env. Fixed in 2.9.7 and 2.8.12.

¿Qué significa?The affected Docker images used the same default session secret key for every new container. Because separate CKAN instances shared that key, an attacker could forge authentication requests.
¿Quién está afectado?Affected are CKAN 2.9.0 before 2.9.7 and CKAN versions before 2.8.12, when run from the ckan/ckan-docker, okfn/docker-ckan, or keitaroinc/docker-ckan images without a custom session secret set via environment variables in the .env file. To check, look at the installed CKAN version and at whether the .env file sets a custom session secret key.
¿Qué hacer?Upgrade to CKAN 2.9.7 or 2.8.12, which are the fixed versions. Until then, set your own session secret key in the .env file instead of using the default.
Contexto

Condiciones y alcance

Condiciones necesarias para que el fallo sea explotable
01
Uses one of the affected Docker images (ckan/ckan-docker, okfn/docker-ckan, keitaroinc/docker-ckan).“When creating a new container based on one of the Docker images listed below, the same secret key was being used by default.”
02
The session secret key is not set to a custom value via environment variables in the .env file.“If the users didn't set a custom value via environment variables in the .env file”
¿Quién debe revisar?Teams running CKAN from the ckan/ckan-docker, okfn/docker-ckan or keitaroinc/docker-ckan Docker images that did not set their own secret key in .env.
MitigaciónSet your own session secret key in your .env file instead of using the default.
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:L
AltoBajoNinguno
DisponibilidadA:L
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.8.12
ckan< 2.9.7
ckan≥ 2.9.0 < 2.9.7
2.8.12
2.9.0
2.9.7
2.12.1
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
pypickan
Corregida 2.9.7 -100 d 2.12.1 no afectada
Versiones corregidas2.8.122.9.7
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-pr8j-v4c8-h62x
Otrahttps://github.com/ckan/ckan/commit/44af0f0a148fcc0e0fbcf02fe69b7db13459a84b
Otrahttps://github.com/ckan/ckan/commit/4c22c135fa486afa13855d1cdb9765eaf418d2aa

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