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

- Severity: Medium 5.4 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.79%, higher than 57% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-07-06T17:55:14.000Z
- Modified: 2026-06-17T04:44:52.200Z
- Weaknesses: CWE-287, CWE-639
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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)

(As written by CVE List.)

## Affected

- nextcloud security-advisories: < 1.12.2
- nextcloud nextcloud_mail: before 1.12.2

## Every score

- GitHub_M: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N`
- NVD: CVSS:3.1 4.3 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N`
- NVD: CVSS:2.0 4.0 Medium `AV:N/AC:L/Au:S/C:N/I:P/A:N`

## References

- <https://github.com/nextcloud/security-advisories/security/advisories/GHSA-xhv7-5mhv-299j> (exploit, issue-tracking, third-party-advisory)
- <https://github.com/nextcloud/mail/pull/6600> (issue-tracking, patch, third-party-advisory)
- <https://github.com/nextcloud/mail/pull/6600/commits/6dd2527be8d4f6788b449c8a8f5577628b990605> (patch, third-party-advisory)

## Sources

- CVE List: [CVE-2022-31131](https://www.cve.org/CVERecord?id=CVE-2022-31131), CVE Terms of Use, modified 2025-04-22
- NVD: [CVE-2022-31131](https://nvd.nist.gov/vuln/detail/CVE-2022-31131), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-31131 · Whole record: https://cve.day/CVE-2022-31131.json · Rebuilt by cve.day 2026-11-25T22:58:12.742Z
