CVE-2023-32321 CKAN remote code execution and private information access via crafted resource ids
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: yes · technical impact: total
Description
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.
Upgrade path
3 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| okfn ckan | = 2.10.0; >= 2.9.0, < 2.9.9 | 2.9.9 | Fixed |
| pypi ckan(PyPI) | < 2.9.9; = 0.3; = 0.4; = 0.5 +102 more | 2.9.9, 2.10.1 | Fixed |
| ckan | = < 2.9.9; = = 2.10.0 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi ckan(PyPI) | < 2.9.9 | 2.9.9 |
| pypi ckan(PyPI) | = 0.11 | No fix listed |
| pypi ckan(PyPI) | = 0.3 | No fix listed |
| pypi ckan(PyPI) | = 0.4 | No fix listed |
| pypi ckan(PyPI) | = 0.5 | No fix listed |
| pypi ckan(PyPI) | = 0.6 | No fix listed |
| pypi ckan(PyPI) | = 0.7 | No fix listed |
| pypi ckan(PyPI) | = 0.8 | No fix listed |
| pypi ckan(PyPI) | = 1.0 | No fix listed |
| pypi ckan(PyPI) | = 1.1 | No fix listed |
| pypi ckan(PyPI) | = 1.2 | No fix listed |
| pypi ckan(PyPI) | = 1.3 | No fix listed |
| pypi ckan(PyPI) | = 1.3.2 | No fix listed |
| pypi ckan(PyPI) | = 1.3.3 | No fix listed |
| pypi ckan(PyPI) | = 1.4 | No fix listed |
| pypi ckan(PyPI) | = 1.4.1 | No fix listed |
| pypi ckan(PyPI) | = 1.4.2 | No fix listed |
| pypi ckan(PyPI) | = 1.4.3 | No fix listed |
| pypi ckan(PyPI) | = 1.4.3.1 | No fix listed |
| pypi ckan(PyPI) | = 1.5 | No fix listed |
| pypi ckan(PyPI) | = 1.5.1 | No fix listed |
| pypi ckan(PyPI) | = 1.6 | No fix listed |
| pypi ckan(PyPI) | = 1.7 | No fix listed |
| pypi ckan(PyPI) | = 1.7.1 | No fix listed |
| pypi ckan(PyPI) | = 1.8 | No fix listed |
Show 85 more
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi ckan(PyPI) | = 2.0 | No fix listed |
| pypi ckan(PyPI) | = 2.0.1 | No fix listed |
| pypi ckan(PyPI) | = 2.0.7 | No fix listed |
| pypi ckan(PyPI) | = 2.0.8 | No fix listed |
| pypi ckan(PyPI) | = 2.1 | No fix listed |
| pypi ckan(PyPI) | = 2.1.1 | No fix listed |
| pypi ckan(PyPI) | = 2.1.5 | No fix listed |
| pypi ckan(PyPI) | = 2.1.6 | No fix listed |
| pypi ckan(PyPI) | = 2.2 | No fix listed |
| pypi ckan(PyPI) | = 2.2.1 | No fix listed |
| pypi ckan(PyPI) | = 2.2.3 | No fix listed |
| pypi ckan(PyPI) | = 2.2.4 | No fix listed |
| pypi ckan(PyPI) | = 2.3 | No fix listed |
| pypi ckan(PyPI) | = 2.3.1 | No fix listed |
| pypi ckan(PyPI) | = 2.3.2 | No fix listed |
| pypi ckan(PyPI) | = 2.3.3 | No fix listed |
| pypi ckan(PyPI) | = 2.3.4 | No fix listed |
| pypi ckan(PyPI) | = 2.3.5 | No fix listed |
| pypi ckan(PyPI) | = 2.4.0 | No fix listed |
| pypi ckan(PyPI) | = 2.4.1 | No fix listed |
| pypi ckan(PyPI) | = 2.4.2 | No fix listed |
| pypi ckan(PyPI) | = 2.4.3 | No fix listed |
| pypi ckan(PyPI) | = 2.4.4 | No fix listed |
| pypi ckan(PyPI) | = 2.4.5 | No fix listed |
| pypi ckan(PyPI) | = 2.4.8 | No fix listed |
| pypi ckan(PyPI) | = 2.4.9 | No fix listed |
| pypi ckan(PyPI) | = 2.5.0 | No fix listed |
| pypi ckan(PyPI) | = 2.5.1 | No fix listed |
| pypi ckan(PyPI) | = 2.5.2 | No fix listed |
| pypi ckan(PyPI) | = 2.5.3 | No fix listed |
| pypi ckan(PyPI) | = 2.5.4 | No fix listed |
| pypi ckan(PyPI) | = 2.5.6 | No fix listed |
| pypi ckan(PyPI) | = 2.5.7 | No fix listed |
| pypi ckan(PyPI) | = 2.5.8 | No fix listed |
| pypi ckan(PyPI) | = 2.5.9 | No fix listed |
| pypi ckan(PyPI) | = 2.6.0 | No fix listed |
| pypi ckan(PyPI) | = 2.6.1 | No fix listed |
| pypi ckan(PyPI) | = 2.6.3 | No fix listed |
| pypi ckan(PyPI) | = 2.6.4 | No fix listed |
| pypi ckan(PyPI) | = 2.6.5 | No fix listed |
| pypi ckan(PyPI) | = 2.6.6 | No fix listed |
| pypi ckan(PyPI) | = 2.6.7 | No fix listed |
| pypi ckan(PyPI) | = 2.6.8 | No fix listed |
| pypi ckan(PyPI) | = 2.6.9 | No fix listed |
| pypi ckan(PyPI) | = 2.7.0 | No fix listed |
| pypi ckan(PyPI) | = 2.7.1 | No fix listed |
| pypi ckan(PyPI) | = 2.7.10 | No fix listed |
| pypi ckan(PyPI) | = 2.7.11 | No fix listed |
| pypi ckan(PyPI) | = 2.7.12 | No fix listed |
| pypi ckan(PyPI) | = 2.7.2 | No fix listed |
| pypi ckan(PyPI) | = 2.7.3 | No fix listed |
| pypi ckan(PyPI) | = 2.7.4 | No fix listed |
| pypi ckan(PyPI) | = 2.7.5 | No fix listed |
| pypi ckan(PyPI) | = 2.7.6 | No fix listed |
| pypi ckan(PyPI) | = 2.7.7 | No fix listed |
| pypi ckan(PyPI) | = 2.7.8 | No fix listed |
| pypi ckan(PyPI) | = 2.7.9 | No fix listed |
| pypi ckan(PyPI) | = 2.8.0 | No fix listed |
| pypi ckan(PyPI) | = 2.8.1 | No fix listed |
| pypi ckan(PyPI) | = 2.8.10 | No fix listed |
| pypi ckan(PyPI) | = 2.8.11 | No fix listed |
| pypi ckan(PyPI) | = 2.8.12 | No fix listed |
| pypi ckan(PyPI) | = 2.8.2 | No fix listed |
| pypi ckan(PyPI) | = 2.8.3 | No fix listed |
| pypi ckan(PyPI) | = 2.8.4 | No fix listed |
| pypi ckan(PyPI) | = 2.8.5 | No fix listed |
| pypi ckan(PyPI) | = 2.8.6 | No fix listed |
| pypi ckan(PyPI) | = 2.8.7 | No fix listed |
| pypi ckan(PyPI) | = 2.8.8 | No fix listed |
| pypi ckan(PyPI) | = 2.8.9 | No fix listed |
| pypi ckan(PyPI) | = 2.9.0 | No fix listed |
| pypi ckan(PyPI) | = 2.9.1 | No fix listed |
| pypi ckan(PyPI) | = 2.9.2 | No fix listed |
| pypi ckan(PyPI) | = 2.9.3 | No fix listed |
| pypi ckan(PyPI) | = 2.9.4 | No fix listed |
| pypi ckan(PyPI) | = 2.9.5 | No fix listed |
| pypi ckan(PyPI) | = 2.9.6 | No fix listed |
| pypi ckan(PyPI) | = 2.9.7 | No fix listed |
| pypi ckan(PyPI) | = 2.9.8 | No fix listed |
| pypi ckan(PyPI) | >= 2.10.0, < 2.10.1 | 2.10.1 |
| pypi ckan(PyPI) | = 2.10.0 | No fix listed |
| ckan | = < 2.9.9 | No fix listed |
| ckan | = = 2.10.0 | No fix listed |
| okfn ckan | >= 2.9.0, < 2.9.9 | 2.9.9 |
| okfn ckan | = 2.10.0 | No fix listed |
References
- https://github.com/ckan/ckan/security/advisories/GHSA-446m-hmmm-hm8m vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com product
- https://github.com/ckan/ckan/blob/2a6080e61d5601fa0e2a0317afd6a8e9b7abf6dd/CHANGELOG.rst release-notes
- github.com
- pypi.org product
- github.com vendor-advisory