{"answers":{"affected":"15 open source packages ship an affected version, including invenio-drafts-resources, invenio-app-rdm and invenio-rdm-records. It affects 1 product.","exploited":"There is no known exploitation of CVE-2021-43781 in the wild and no public exploit code.","fix":"Upgrade invenio-drafts-resources to a fixed version for your release line: 0.13.7 or 0.14.6.","what":"CVE-2021-43781 is a medium-severity missing authorization vulnerability in inveniosoftware invenio-drafts-resources, published on 6 Dec 2021. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2021-43781 and fix it if it is affected.\n\nWhat it is: CVE-2021-43781 is a medium-severity missing authorization vulnerability in inveniosoftware invenio-drafts-resources, published on 6 Dec 2021. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2021-43781 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- invenio-drafts-resources (PyPI): affected all versions; fixed in 0.13.7, 0.14.6\n- invenio-drafts-resources (PyPI): affected all versions; fixed in 0.13.7\n- invenio-drafts-resources (PyPI): affected all versions; fixed in 0.13.7\n- invenio-drafts-resources (PyPI): affected from 0.14.0; fixed in 0.14.6\n- invenio-drafts-resources (PyPI): affected from 0.14.0; fixed in 0.14.6\n- invenio-app-rdm (PyPI): affected all versions; fixed in 6.0.5, 7.0.0.dev5\n- invenio-app-rdm (PyPI): affected all versions; fixed in 6.0.5\n- invenio-app-rdm (PyPI): affected all versions; fixed in 6.0.5\n- invenio-app-rdm (PyPI): affected from 7.0.0.dev0; fixed in 7.0.0.dev5\n- invenio-app-rdm (PyPI): affected from 7.0.0.dev0; fixed in 7.0.0.dev5\n- invenio-rdm-records (PyPI): affected all versions; fixed in 0.32.6, 0.33.10\n- invenio-rdm-records (PyPI): affected all versions; fixed in 0.32.6\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-2021-43781/ (Markdown: https://insights.sbomify.com/CVE-2021-43781/index.md)","id":"CVE-2021-43781","markdown":"https://insights.sbomify.com/CVE-2021-43781/index.md","name":"CVE-2021-43781","record":{"aliases":["GHSA-xr38-w74q-r8jv","PYSEC-2021-836","PYSEC-2021-837","PYSEC-2021-838"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"InvenioRDM research data","requires_auth":"low_privilege","summary":"Authenticated users can publish other users' draft records via REST API due to missing permission checks, allowing unauthorized state changes.","user_interaction":"not_required","vuln_class":"missing_authorization"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"invenio-drafts-resources","vendor":"inveniosoftware"}],"cvss":{"score":6.4,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-863","name":"Incorrect Authorization"},{"id":"CWE-862","name":"Missing Authorization"}],"description":"Invenio-Drafts-Resources is a submission/deposit module for Invenio, a software framework for research data management. Invenio-Drafts-Resources prior to versions 0.13.7 and 0.14.6 does not properly check permissions when a record is published. The vulnerability is exploitable in a default installation of InvenioRDM. An authenticated a user is able via REST API calls to publish draft records of other users if they know the record identifier and the draft validates (e.g. all require fields filled out). An attacker is not able to modify the data in the record, and thus e.g. *cannot* change a record from restricted to public. The problem is patched in Invenio-Drafts-Resources v0.13.7 and 0.14.6, which is part of InvenioRDM v6.0.1 and InvenioRDM v7.0 respectively.","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":"Permissions not properly checked in Invenio-Drafts-Resources","id":"CVE-2021-43781","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"missing_authorization","year":"2021"},"n_packages":15,"n_references":2,"next":{"headline":"Indirect LDAP injection in Tuleap","id":"CVE-2021-43782"},"packages":[{"ecosystem":"PyPI","fixed":["6.0.5","7.0.0.dev5"],"introduced":["0","7.0.0.dev0"],"last_affected":[],"package":"invenio-app-rdm","purl":"pkg:pypi/invenio-app-rdm","source":"PYSEC-2021-837"},{"ecosystem":"PyPI","fixed":["6.0.5"],"introduced":["0"],"last_affected":[],"package":"invenio-app-rdm","purl":null,"source":"GHSA-xr38-w74q-r8jv"},{"ecosystem":"PyPI","fixed":["6.0.5"],"introduced":["0"],"last_affected":[],"package":"invenio-app-rdm","purl":"pkg:pypi/invenio-app-rdm","source":"GHSA-xr38-w74q-r8jv"},{"ecosystem":"PyPI","fixed":["7.0.0.dev5"],"introduced":["7.0.0.dev0"],"last_affected":[],"package":"invenio-app-rdm","purl":null,"source":"GHSA-xr38-w74q-r8jv"},{"ecosystem":"PyPI","fixed":["7.0.0.dev5"],"introduced":["7.0.0.dev0"],"last_affected":[],"package":"invenio-app-rdm","purl":"pkg:pypi/invenio-app-rdm","source":"GHSA-xr38-w74q-r8jv"},{"ecosystem":"PyPI","fixed":["0.13.7","0.14.6"],"introduced":["0","0.14.0"],"last_affected":[],"package":"invenio-drafts-resources","purl":"pkg:pypi/invenio-drafts-resources","source":"PYSEC-2021-836"},{"ecosystem":"PyPI","fixed":["0.13.7"],"introduced":["0"],"last_affected":[],"package":"invenio-drafts-resources","purl":null,"source":"GHSA-xr38-w74q-r8jv"},{"ecosystem":"PyPI","fixed":["0.13.7"],"introduced":["0"],"last_affected":[],"package":"invenio-drafts-resources","purl":"pkg:pypi/invenio-drafts-resources","source":"GHSA-xr38-w74q-r8jv"},{"ecosystem":"PyPI","fixed":["0.14.6"],"introduced":["0.14.0"],"last_affected":[],"package":"invenio-drafts-resources","purl":null,"source":"GHSA-xr38-w74q-r8jv"},{"ecosystem":"PyPI","fixed":["0.14.6"],"introduced":["0.14.0"],"last_affected":[],"package":"invenio-drafts-resources","purl":"pkg:pypi/invenio-drafts-resources","source":"GHSA-xr38-w74q-r8jv"},{"ecosystem":"PyPI","fixed":["0.32.6","0.33.10"],"introduced":["0","0.33.0"],"last_affected":[],"package":"invenio-rdm-records","purl":"pkg:pypi/invenio-rdm-records","source":"PYSEC-2021-838"},{"ecosystem":"PyPI","fixed":["0.32.6"],"introduced":["0"],"last_affected":[],"package":"invenio-rdm-records","purl":null,"source":"GHSA-xr38-w74q-r8jv"},{"ecosystem":"PyPI","fixed":["0.32.6"],"introduced":["0"],"last_affected":[],"package":"invenio-rdm-records","purl":"pkg:pypi/invenio-rdm-records","source":"GHSA-xr38-w74q-r8jv"},{"ecosystem":"PyPI","fixed":["0.33.10"],"introduced":["0.33.0"],"last_affected":[],"package":"invenio-rdm-records","purl":null,"source":"GHSA-xr38-w74q-r8jv"},{"ecosystem":"PyPI","fixed":["0.33.10"],"introduced":["0.33.0"],"last_affected":[],"package":"invenio-rdm-records","purl":"pkg:pypi/invenio-rdm-records","source":"GHSA-xr38-w74q-r8jv"}],"prev":{"headline":"Server-Side Request Forgery (SSRF) in Redash","id":"CVE-2021-43780"},"products":["invenio-drafts-resources"],"published":"2021-12-06","related":[],"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":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-04","vendors":["inveniosoftware"]},"summary":"Authenticated users can publish other users' draft records via REST API due to missing permission checks, allowing unauthorized state changes.","url":"https://insights.sbomify.com/CVE-2021-43781/"}