# CVE-2021-43781: Permissions not properly checked in Invenio-Drafts-Resources

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 6.4
- **CVSS:** 6.4 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Changed (impact reaches other components); Confidentiality impact: Low; Integrity impact: Low; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 0.68% (percentile 48, 2026-11-28)
- **CWE:** CWE-862
- **Aliases:** GHSA-xr38-w74q-r8jv, PYSEC-2021-836, PYSEC-2021-837, PYSEC-2021-838
- **Published:** 2021-12-06T17:45:10.000Z
- **Modified:** 2026-07-08T06:28:15.987Z

## Who should check

- Projects that depend on PyPI package invenio-drafts-resources (\< 0.13.7)
- Projects that depend on PyPI package invenio-app-rdm (\< 6.0.5)
- Projects that depend on PyPI package invenio-rdm-records (\< 0.32.6)
- Anyone running inveniosoftware invenio-drafts-resources \< 0.13.7; \>= 0.14.0, \< 0.14.6

## 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.

## Affected and fixed versions

- PyPI `invenio-drafts-resources`: affected \< 0.13.7; fixed 0.13.7, 0.14.6 (osv)
- PyPI `invenio-app-rdm`: affected \< 6.0.5; fixed 6.0.5, 7.0.0.dev5 (osv)
- PyPI `invenio-rdm-records`: affected \< 0.32.6; fixed 0.32.6, 0.33.10 (osv)
- inveniosoftware invenio-drafts-resources: \< 0.13.7; \>= 0.14.0, \< 0.14.6 (cvelist)

## Mitigation

- Upgrade invenio-drafts-resources to one of 0.13.7, 0.14.6 (or later in the same release line).
- Upgrade invenio-app-rdm to one of 6.0.5, 7.0.0.dev5 (or later in the same release line).
- Upgrade invenio-rdm-records to one of 0.32.6, 0.33.10 (or later in the same release line).

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2021-43781. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2021-43781.md
Affected: invenio-drafts-resources < 0.13.7; invenio-app-rdm < 6.0.5; invenio-rdm-records < 0.32.6
Fixed in: 0.13.7, 0.14.6, 6.0.5, 7.0.0.dev5, 0.32.6, 0.33.10

Steps:
1. Search this machine and project for invenio-drafts-resources (PyPI), invenio-app-rdm (PyPI), invenio-rdm-records (PyPI), inveniosoftware invenio-drafts-resources: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2021-43781 being exploited?

There is no confirmed exploitation: CVE-2021-43781 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.68% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2021-43781?

Medium: CVSS 6.4 (v3.1, scored by CNA). Remote, login needed.

### Which versions are affected by CVE-2021-43781?

invenio-drafts-resources \< 0.13.7; invenio-app-rdm \< 6.0.5; invenio-rdm-records \< 0.32.6.

### Is there a fix for CVE-2021-43781?

Yes. Fixed in 0.13.7, 0.14.6, 6.0.5, 7.0.0.dev5, 0.32.6, 0.33.10. Upgrade invenio-drafts-resources to one of 0.13.7, 0.14.6 (or later in the same release line). Upgrade invenio-app-rdm to one of 6.0.5, 7.0.0.dev5 (or later in the same release line). Upgrade invenio-rdm-records to one of 0.32.6, 0.33.10 (or later in the same release line).

### How do I check if I'm affected by CVE-2021-43781?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/inveniosoftware/invenio-drafts-resources/security/advisories/GHSA-xr38-w74q-r8jv>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2021-43781>
- patch: <https://github.com/inveniosoftware/invenio-drafts-resources/commit/039b0cff1ad4b952000f4d8c3a93f347108b6626>
- other: <https://github.com/pypa/advisory-database/tree/main/vulns/invenio-app-rdm/PYSEC-2021-837.yaml>
- other: <https://github.com/pypa/advisory-database/tree/main/vulns/invenio-drafts-resources/PYSEC-2021-836.yaml>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2021-43781>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-xr38-w74q-r8jv> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/PYSEC-2021-836> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/PYSEC-2021-837> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/PYSEC-2021-838> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2021-43781> · JSON: <https://flawdb.com/api/v1/entries/CVE-2021-43781>
