{"id":"CVE-2023-32321","published":"2023-05-26T22:57:00Z","modified":"2025-01-14T19:07:12Z","title":"CKAN remote code execution and private information access via crafted resource ids","vendor":"ckan","product":"ckan","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.8,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01684,"percentile":0.77563,"provenance":"source"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"}],"references":[{"url":"https://github.com/ckan/ckan/security/advisories/GHSA-446m-hmmm-hm8m","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/ckan/ckan/blob/2a6080e61d5601fa0e2a0317afd6a8e9b7abf6dd/CHANGELOG.rst","tags":["x_refsource_MISC"]}],"priority":{"score":22.4,"factors":[{"name":"EPSS percentile","points":15.51},{"name":"CVSS severity","points":6.86}]},"vendorSlug":"ckan","affectedVersions":[{"vendor":"ckan","product":"ckan","versions":["< 2.9.9","= 2.10.0"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"total","timestamp":"2025-01-14T19:07:01.411244Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"ckan","vulnerableRanges":["<2.9.9",">=2.10.0, <2.10.1"],"patched":["2.9.9","2.10.1"],"from":["GHSA-446m-hmmm-hm8m","PYSEC-2026-312"],"provenance":"source"}],"summary":{"text":"CKAN, an open-source data management system for data hubs and portals, contains multiple flaws in its resource handling, including an arbitrary file write through the resource create and package update actions and unsafe pickle loading in Beaker's file session store backend, which together can lead to remote code execution. An attacker with network access and no authentication can exploit the flaws when the file session store backend is configured, while exploiting the arbitrary file write path requires an account with permission to create or edit datasets.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:40:42Z"},"euvd":{"id":"EUVD-2023-1463","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2022-43685","published":"2022-11-22","fixed":"2.9.7","kev":false,"link":{"from":"CVE-2022-43685","to":"CVE-2023-32321","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:ckan","fromFixed":"2.9.7","toFixed":"2.9.9","daysApart":185}]}},{"cve":"CVE-2021-25967","published":"2021-12-01","fixed":"2.10.0","kev":false,"link":{"from":"CVE-2021-25967","to":"CVE-2023-32321","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:ckan","fromFixed":"2.10.0","toFixed":"2.10.1","daysApart":541}]}},{"cve":"CVE-2023-32321","published":"2023-05-26","fixed":"2.10.1","kev":false},{"cve":"CVE-2023-50248","published":"2023-12-13","fixed":"2.10.3","kev":false,"link":{"from":"CVE-2023-32321","to":"CVE-2023-50248","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:ckan","fromFixed":"2.9.9","toFixed":"2.9.10","daysApart":201}]}},{"cve":"CVE-2024-27097","published":"2024-03-13","fixed":"2.10.4","kev":false},{"cve":"CVE-2024-41674","published":"2024-08-21","fixed":"2.10.5","kev":false}],"package":"PyPI:ckan"}}