Arbitrary File Upload Affecting ckan package, versions [,2.9.9) [2.10.0,2.10.1)
Threat Intelligence
Do your applications use this vulnerable package?
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applications- Snyk ID SNYK-PYTHON-CKAN-5600988
- published 25 May 2023
- disclosed 24 May 2023
- credit YoloClin
Introduced: 24 May 2023
CVE-2023-32321 Open this link in a new tabHow to fix?
Upgrade ckan
to version 2.9.9, 2.10.1 or higher.
Overview
ckan is a world’s leading Open Source data portal platform.
It powers dozens of Open Data portals around the world, including data.gov, open.canada.ca and europeandataportal.eu but also regional, research and community organizations.
It makes easy to publish, share and find data online and is fully customizable via extensions and plugins.
Affected versions of this package are vulnerable to Arbitrary File Upload. A user with permissions to create or edit a dataset can upload a resource with a specially crafted resource ID to write the uploaded file in an arbitrary location using path traversal. The arbitrary file write is in the resource_create
and package_update
actions, using the ResourceUploader
object. It is also reachable via package_create
, package_revise
, and package_patch
via calls to package_update
. Arbitrary files can also be read this way, if the user knows the ID of the desired file.
This may enable remote code execution via Beaker's insecure pickle loading when configured to use the file session store backend.
Denial of service may be possible by passing a resource ID of excessive length.