CVE-2022-31014 json
SMTP Command Injection in iCalendar Attachments to emails via newlines in Nextcloud Server
published 2022-07-05 4 y ago modified 2026-06-17 4 mo ago also EUVD-2022-52717
- cvss
- 5.4
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 2.5%
- EPSS 2.5% chance of exploitation in 30 days, percentile 84%
- public exploits
- 0
- none known
Summary
Nextcloud server is an open source personal cloud server. Affected versions were found to be vulnerable to SMTP command injection. The impact varies based on which commands are supported by the backend SMTP server. However, the main risk here is that the attacker can then hijack an already-authenticated SMTP session and run arbitrary SMTP commands as the email user, such as sending emails to other users, changing the FROM user, and so on. As before, this depends on the configuration of the server itself, but newlines should be sanitized to mitigate such arbitrary SMTP command injection. It is recommended that the Nextcloud Server is upgraded to 22.2.8 , 23.0.5 or 24.0.1. There are no known workarounds for this issue.
Patch / fix
- nextcloud nextcloud_server 19.0.13.7, 20.0.14.6, 21.0.9.5, 22.2.8, 23.0.5
- github.com/nextcloud/server#32428 pull request
- hackerone.com/reports/1516377 advisory
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- partial
- Assessed
- 18 mo ago
Exploit prediction
2.51% chance of exploitation in the next 30 days, higher than 84% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- hackerone.com https://hackerone.com/reports/1516377 referenced PoC, tagged "exploit" by a source, unverified
- github.com https://github.com/nextcloud/security-advisories/security/advisories/GHSA-264h-3v4w-6xh2 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
| NVD | 3.1 | 3.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:N |
| NVD | 2.0 | 3.5 | AV:N/AC:M/Au:S/C:N/I:P/A:N |
Affected products
- nextcloud security-advisories
Classification
References
-
github.com
/nextcloud/server/pull/32428
issue-tracking, patch, third-party-advisory
-
hackerone.com
/reports/1516377
exploit, issue-tracking, patch, third-party-advisory
-
github.com
/nextcloud/security-advisories/security/advisories/GHSA-264h-3v4w-6xh2
exploit, third-party-advisory
Sources
- CVE List CVE-2022-31014
- NVD CVE-2022-31014
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.