{"schema":"threatline.record/2","record":{"id":"CVE-2023-32321","aliases":["GHSA-446m-hmmm-hm8m","PYSEC-2026-312"],"summary":"Ckan remote code execution and private information access via crafted resource ids","details":"Specific vulnerabilities:\n\n* 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`.\n* Remote code execution via unsafe pickle loading, via Beaker's session store when configured to use the file session store backend.\n* Potential DOS due to lack of a length check on the resource id.\n* 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.\n* 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.  \n\n### Impact\n\nA 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. \n\n### Patches\n\nAll the above listed vulnerabilities have been fixed in CKAN 2.9.9 and CKAN 2.10.1\nThe patches for CKAN 2.9 should apply easily to previous CKAN versions.","categories":["Libraries & packages"],"product":"ckan","vendor":"ckan","ecosystem":"pip","affected_ranges":[{"source":"GitHub Advisory Database","source_url":"https://github.com/advisories/GHSA-446m-hmmm-hm8m","source_modified_at":"2026-10-27T16:25:45Z","fetched_at":"2026-10-27T16:27:21.584480Z","package":{"ecosystem":"pip","name":"ckan"},"range":"< 2.9.9"},{"source":"GitHub Advisory Database","source_url":"https://github.com/advisories/GHSA-446m-hmmm-hm8m","source_modified_at":"2026-10-27T16:25:45Z","fetched_at":"2026-10-27T16:27:21.584480Z","package":{"ecosystem":"pip","name":"ckan"},"range":"= 2.10.0"},{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2023-32321","source_modified_at":"2025-01-14T19:07:12.229Z","fetched_at":"2026-10-27T16:27:21.584480Z","product":"ckan","vendor":"ckan","versions":[{"version":"< 2.9.9","status":"affected"},{"version":"= 2.10.0","status":"affected"}],"defaultStatus":null},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-446m-hmmm-hm8m","source_modified_at":"2026-09-10T03:49:53.851814759Z","fetched_at":"2026-10-27T16:27:21.584480Z","package":{"name":"ckan","ecosystem":"PyPI","purl":"pkg:pypi/ckan"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.9.9"}]}],"versions":["0.11","0.3","0.4","0.5","0.6","0.7","0.8","1.0","1.1","1.2","1.3","1.3.2","1.3.3","1.4","1.4.1","1.4.2","1.4.3","1.4.3.1","1.5","1.5.1","1.6","1.7","1.7.1","1.8","2.0","2.0.1","2.0.7","2.0.8","2.1","2.1.1","2.1.5","2.1.6","2.2","2.2.1","2.2.3","2.2.4","2.3","2.3.1","2.3.2","2.3.3","2.3.4","2.3.5","2.4.0","2.4.1","2.4.2","2.4.3","2.4.4","2.4.5","2.4.8","2.4.9"]},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-446m-hmmm-hm8m","source_modified_at":"2026-09-10T03:49:53.851814759Z","fetched_at":"2026-10-27T16:27:21.584480Z","package":{"name":"ckan","ecosystem":"PyPI","purl":"pkg:pypi/ckan"},"ranges":[],"versions":["2.10.0"]}],"fixed_versions":[{"source":"GitHub Advisory Database","source_url":"https://github.com/advisories/GHSA-446m-hmmm-hm8m","source_modified_at":"2026-10-27T16:25:45Z","fetched_at":"2026-10-27T16:27:21.584480Z","package":{"ecosystem":"pip","name":"ckan"},"version":"2.9.9"},{"source":"GitHub Advisory Database","source_url":"https://github.com/advisories/GHSA-446m-hmmm-hm8m","source_modified_at":"2026-10-27T16:25:45Z","fetched_at":"2026-10-27T16:27:21.584480Z","package":{"ecosystem":"pip","name":"ckan"},"version":"2.10.1"},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-446m-hmmm-hm8m","source_modified_at":"2026-09-10T03:49:53.851814759Z","fetched_at":"2026-10-27T16:27:21.584480Z","package":{"name":"ckan","ecosystem":"PyPI","purl":"pkg:pypi/ckan"},"version":"2.9.9"}],"cvss":9.8,"severity":"Critical","kev":{"listed":false},"epss":{"probability":0.01684,"percentile":0.76872,"score_date":"2026-10-27"},"published_at":"2023-05-26T22:57:00.076Z","modified_at":"2026-10-27T16:25:45Z","provenance":[{"source":"GitHub Advisory Database","url":"https://github.com/advisories/GHSA-446m-hmmm-hm8m","fetched_at":"2026-10-27T16:27:21.584480Z","source_modified_at":"2026-10-27T16:25:45Z"},{"source":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2023-32321","fetched_at":"2026-10-27T16:27:21.584480Z","source_modified_at":"2025-01-14T19:07:12.229Z"},{"source":"OSV","url":"https://osv.dev/vulnerability/GHSA-446m-hmmm-hm8m","fetched_at":"2026-10-27T16:27:21.584480Z","source_modified_at":"2026-09-10T03:49:53.851814759Z"},{"source":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2023-32321","fetched_at":"2026-10-27T16:27:21.584480Z","source_modified_at":"2026-10-27"}],"sources":["GitHub Advisory Database","CVE List","OSV","EPSS"],"references":[{"source":"CVE List","url":"https://github.com/ckan/ckan/security/advisories/GHSA-446m-hmmm-hm8m","tags":["x_refsource_CONFIRM","x_transferred"]},{"source":"CVE List","url":"https://github.com/ckan/ckan/blob/2a6080e61d5601fa0e2a0317afd6a8e9b7abf6dd/CHANGELOG.rst","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-32321","source":"GitHub Advisory Database"},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/ckan/PYSEC-2026-312.yaml","source":"GitHub Advisory Database"},{"url":"https://github.com/advisories/GHSA-446m-hmmm-hm8m","source":"GitHub Advisory Database"}],"locations":[],"motoko_assessment":{"status":"requires_architecture_review","automatic_remediation":false},"cve_state":"PUBLISHED","ssvc":{"exploitation":"none","automatable":"yes","technical_impact":"total","assessed_at":"2025-01-14T19:07:01.411244Z"},"classification":{"method":"product-first software-layer rules","rules_version":"2.1","matched_on":"ecosystem","confidence":"heuristic","reviewed":false},"change_timestamp":"2026-10-27T16:25:45Z","content_hash":"53647b1d707a085a7a0927533807d5f245ff5ab336a1bff93366da75dc635885"}}
