CkanApplication · Okfn

CVE-2023-32321

CRITICAL · 9.8 CVSS v3.1 Published 2023-05-26
Fix available
A fix is available. Upgrade to 2.9.9 or later.
See remediation →
100/100
Remediation priority · Urgent
Remotely reachable No privileges Zero-click

Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.

NVD · unedited
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.

Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.

dbcve analysis · high confidence

CKAN versions prior to 2.9.9 and 2.10.1 contain multiple critical vulnerabilities: an arbitrary file write via the ResourceUploader in resource_create/package_update actions (also reachable through package_create, package_revise, package_patch), allowing users with dataset edit permissions to write files to arbitrary locations by crafting resource IDs. This combines with Beaker's unsafe pickle loading in file session store backend to achieve remote code execution. Additional flaws include information disclosure and resource overwrite allowing unauthorized access to any resource via known ID, plus potential DoS from missing resource ID length validation.

MitigationUpgrade CKAN to version 2.9.9 or 2.10.1 immediately. This is the only remediation; there are no workarounds. After upgrade, verify Beaker session configuration does not use the insecure file backend with pickle serialization.

Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.

Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.

NVD · CPE data
CkanApplication
Affected:>= 2.9.0, < 2.9.9= 2.10.0

CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.

From the vector
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.

dbcve checks

Work through these to decide whether this CVE applies to you.

  1. Identify installed CKAN version
    Run command: ckan --version or check the installed package version via pip show ckan or rpm -q ckan
    Affected if Version is >= 2.9.0 and < 2.9.9, or equals 2.10.0
  2. Verify Beaker session backend configuration
    Inspect the CKAN configuration file (usually development.ini, production.ini, or /etc/ckan/default/production.ini) for session.type and session.filter settings. Look for session.type = file with no serializer specified (defaults to pickle)
    Affected if Session backend uses file-based sessions without explicit secure serializer configuration
  3. Check if resource creation/update is enabled
    Inspect the CKAN configuration for ckan.plugins or ckanext settings. Verify that resource_create and package_update actions are accessible via the API endpoint /api/3/action/resource_create
    Affected if The API returns 200 OK for resource_create when authenticated with a user having dataset edit permissions
  4. Confirm resource ID validation is enforced
    Test by attempting to create a resource with an overly long ID via API: POST to /api/3/action/resource_create with an id parameter exceeding typical UUID length (e.g., 500+ characters)
    Affected if Request succeeds or causes a denial of service rather than being rejected with length validation error

A CKAN instance is affected if it runs version 2.9.0 through 2.9.8 or 2.10.0 AND has Beaker file-based sessions configured with pickle serialization OR allows authenticated users with dataset edit permissions to access resource_create/package_update API endpoints.

Generated from the published advisory. Verify against your own configuration.

Check your environment

Paste your version and any relevant configuration and it will be compared against the affected criteria above. Do not include secrets or credentials.

AI-assisted, checked against the advisory. Informational, not a guarantee.

Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.

dbcve · scoped
Upgrade available Upgrade to 2.9.9 or later
Fixed in 2.9.9
Interim mitigation

Upgrade CKAN to version 2.9.9 or 2.10.1 immediately. This is the only remediation; there are no workarounds. After upgrade, verify Beaker session configuration does not use the insecure file backend with pickle serialization.

Recommended fix High confidence

CKAN 2.9.9 (for 2.9.x branches) or CKAN 2.10.1 (for 2.10.x branch)

  1. Back up your current CKAN installation and database before proceeding with the upgrade
  2. If running CKAN 2.9.x (versions 2.9.0 through 2.9.8), upgrade to CKAN version 2.9.9
  3. If running CKAN 2.10.0, upgrade to CKAN version 2.10.1
  4. Follow the standard CKAN upgrade documentation for your deployment method to apply the version upgrade
  5. After upgrade, verify the CKAN instance starts successfully
  6. Confirm the vulnerabilities are remediated by testing resource_create, package_update, package_create, package_revise, and package_patch actions no longer allow arbitrary file writes

Generated from the published advisory — verify against the referenced sources before acting.

Fix this in Ckan Scoped from the published advisory
  • Consultation6.0 h
  • Implementation12.0 h
  • Testing10.0 h
  • Review / QA4.0 h
32.0 hours of engineering $5,580
Get the upgrade done

An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $8,928.

Scan for this in your stack

Free · runs locally
dbcve dependency scanner

Check whether your project pulls in CVE-2023-32321 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.

References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.

Primary sources

Practitioner notes

Contributed

Peer-ranked notes from engineers who’ve handled CVE-2023-32321 in production — separate from our analysis above.

No notes yet

Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.

What this is

A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.

What belongs here
  • Verified mitigations, workarounds, and config changes
  • Version or environment caveats, and links to real fixes
  • No weaponised exploit code, or anything meant to cause harm
  • No spam, self-promotion, credentials, or personal data