CVE-2023-22746

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

State
Published
Severity
8.6 High
Published
Feb 3, 2023
Updated
Mar 10, 2025
Reserved
Jan 6, 2023

Read the record on cve.org

Description

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).

Scores

CVSSScoreVectorSource
3.18.6 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:LGitHub_M

Weaknesses

  • CWE-344 Use of Invariant Value in Dynamically Changing Context
  • CWE-330 Use of Insufficiently Random Values

Affected Products

ProductVersions
ckanckan
  • >= 2.9.0, < 2.9.7Affected
  • < 2.8.12Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.