What’s Vulnerable › Vulnerabilities
CVE-2022-31131: Ownership check missing when updating or deleting mail attachments in Nextcloud mail
- Severity: medium (CVSS 4.3 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.8% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2022-07-06 · updated 2026-06-17
- Weakness: CWE-287
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)
Affected products
- Nextcloud Mail: before 1.12.2 — fixed in 1.12.2
How to fix
Upgrade to a fixed version: Nextcloud Mail 1.12.2. Check the vendor advisory for mitigations.
References
- https://github.com/nextcloud/mail/pull/6600
- https://github.com/nextcloud/mail/pull/6600/commits/6dd2527be8d4f6788b449c8a8f5577628b990605
- 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
- https://github.com/nextcloud/security-advisories/security/advisories/GHSA-xhv7-5mhv-299j
Get alerted when CVE-2022-31131 or the next vulnerability affects your stack