CVE-2022-31014
published medium CVSS 3.1 · 5.4SMTP Command Injection in iCalendar Attachments to emails via newlines in Nextcloud Server
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| nextcloud | — | security-advisories< 22.2.8 · >= 23.0.0, < 23.0.5 · >= 24.0.0, < 24.0.1 | Affected | Not stated | GitHub_M |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 5.4 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| nextcloud | security-advisories | < 22.2.8 (affected)>= 23.0.0, < 23.0.5 (affected)>= 24.0.0, < 24.0.1 (affected) | GitHub_M · cna |
Weaknesses
2- CWE-74 CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')
- CWE-93 CWE-93: Improper Neutralization of CRLF Sequences ('CRLF Injection')
References
3Provider assertions
3GitHub_M · cna
SMTP Command Injection in iCalendar Attachments to emails via newlines in Nextcloud Server
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 7387a9133cf65bb22c5e21de6a1a58a41e097658a5f60e09fcbd2c9c9284f57c
- Ingested
- 23 Sep 2026, 08:00:25 UTC
- Source record
- Official CVE record