{"answers":{"affected":"5 open source packages ship an affected version, including ckan. It affects 1 product.","exploited":"There is no known exploitation of CVE-2023-32321 in the wild and no public exploit code.","fix":"Upgrade ckan to a fixed version for your release line: 2.9.9 or 2.10.1.","what":"CVE-2023-32321 is a critical code injection vulnerability in ckan, published on 26 May 2023. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2023-32321 and fix it if it is affected.\n\nWhat it is: CVE-2023-32321 is a critical code injection vulnerability in ckan, published on 26 May 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2023-32321 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- ckan (PyPI): affected all versions; fixed in 2.9.9, 2.10.1\n- ckan (PyPI): affected all versions; fixed in 2.9.9\n- ckan (PyPI): affected all versions; fixed in 2.9.9\n- ckan (PyPI): affected from 2.10.0; fixed in 2.10.1\n- ckan (PyPI): affected from 2.10.0; fixed in 2.10.1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2023-32321/ (Markdown: https://insights.sbomify.com/CVE-2023-32321/index.md)","id":"CVE-2023-32321","markdown":"https://insights.sbomify.com/CVE-2023-32321/index.md","name":"CVE-2023-32321","record":{"aliases":["GHSA-446m-hmmm-hm8m","PYSEC-2026-312"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["code_execution","data_read","data_modify"],"network_reachable":"yes","non_default_config":true,"product_category":"CKAN data portal","requires_auth":"none","summary":"Attackers can achieve remote code execution and access private data via crafted resource IDs and unsafe pickle loading in CKAN data portals.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"ckan","vendor":"okfn"}],"cvss":{"score":9.8,"severity":"critical","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"}],"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.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"CKAN remote code execution and private information access via crafted resource ids","id":"CVE-2023-32321","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"code_injection","year":"2023"},"n_packages":5,"n_references":2,"next":{"headline":"Arbitrary file read in Ombi","id":"CVE-2023-32322"},"packages":[{"ecosystem":"PyPI","fixed":["2.9.9","2.10.1"],"introduced":["0","2.10.0"],"last_affected":[],"package":"ckan","purl":"pkg:pypi/ckan","source":"PYSEC-2026-312"},{"ecosystem":"PyPI","fixed":["2.9.9"],"introduced":["0"],"last_affected":[],"package":"ckan","purl":null,"source":"GHSA-446m-hmmm-hm8m"},{"ecosystem":"PyPI","fixed":["2.9.9"],"introduced":["0"],"last_affected":[],"package":"ckan","purl":"pkg:pypi/ckan","source":"GHSA-446m-hmmm-hm8m"},{"ecosystem":"PyPI","fixed":["2.10.1"],"introduced":["2.10.0"],"last_affected":[],"package":"ckan","purl":null,"source":"GHSA-446m-hmmm-hm8m"},{"ecosystem":"PyPI","fixed":["2.10.1"],"introduced":["2.10.0"],"last_affected":[],"package":"ckan","purl":"pkg:pypi/ckan","source":"GHSA-446m-hmmm-hm8m"}],"prev":{"headline":"Nextcloud Server's brute force protection allows someone to send more requests than intended","id":"CVE-2023-32320"},"products":["ckan"],"published":"2023-05-26","related":[{"cvss_score":8.8,"headline":"Excessive permissions for ckan user","id":"CVE-2023-32696","kev_date_added":null,"published":"2023-05-30"},{"cvss_score":8.8,"headline":"CKAN contains Improper Authentication leading to account takeover","id":"CVE-2022-43685","kev_date_added":null,"published":"2022-11-22"},{"cvss_score":8.6,"headline":"CKAN is vulnerable to session secret shared across instances using Docker images","id":"CVE-2023-22746","kev_date_added":null,"published":"2023-02-03"},{"cvss_score":8.3,"headline":"CKAN: Unauthenticated SQL Injection and Authorization Bypass in `datastore_search_sql`","id":"CVE-2026-42031","kev_date_added":null,"published":"2026-05-13"},{"cvss_score":6.8,"headline":"CKAN has a Cross-site Scripting vector in the Datatables view plugin","id":"CVE-2024-41675","kev_date_added":null,"published":"2024-08-21"},{"cvss_score":6.7,"headline":"CKAN: Unauthenticated Authorization Bypass in `datastore_search_sql`","id":"CVE-2026-42032","kev_date_added":null,"published":"2026-05-13"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-01-14","vendors":["ckan"]},"summary":"Attackers can achieve remote code execution and access private data via crafted resource IDs and unsafe pickle loading in CKAN data portals.","url":"https://insights.sbomify.com/CVE-2023-32321/"}