# CVE-2022-31131: Ownership check missing when updating or deleting mail attachments in Nextcloud mail

- Priority: **Routine**
- Reason: Not severe (CVSS 5.4, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2022-07-06 · Modified: 2025-04-22
- Record: https://cvemate.com/vulnerability/CVE-2022-31131 · JSON: https://cvemate.com/vulnerability/CVE-2022-31131/json

## Description

```text
Nextcloud mail is a Mail app for the Nextcloud home server product. Versions of Nextcloud mail prior to 1.12.2 were found to be missing user account ownership checks when performing tasks related to mail attachments. Attachments may have been exposed to incorrect system users. It is recommended that the Nextcloud Mail app is upgraded to 1.12.2. There are no known workarounds for this issue. ### Workarounds No workaround available ### References * [Pull request](https://github.com/nextcloud/mail/pull/6600) * [HackerOne](https://hackerone.com/reports/1579820) ### For more information If you have any questions or comments about this advisory: * Create a post in [nextcloud/security-advisories](https://github.com/nextcloud/security-advisories/discussions) * Customers: Open a support ticket at [support.nextcloud.com](https://support.nextcloud.com)
```

## Signals

- CVSS: 5.4 medium (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
- EPSS: 0.791%, percentile 57.638%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected

- nextcloud nextcloud\_mail: \< 1.12.2
- nextcloud security-advisories: \< 1.12.2

## References

- <https://github.com/nextcloud/security-advisories/security/advisories/GHSA-xhv7-5mhv-299j>
- <https://github.com/nextcloud/mail/pull/6600>
- <https://github.com/nextcloud/mail/pull/6600/commits/6dd2527be8d4f6788b449c8a8f5577628b990605>

---

Data as of 2026-12-05T05:00:19.728Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
