CVE-2022-31014

SMTP Command Injection in iCalendar Attachments to emails via newlines in Nextcloud Server

LOW
3.5
CVSS Score
Published: July 5, 2022 at 05:15 PM UTC
Updated: June 17, 2026 at 04:44 AM UTC
1 product affected across 1 vendorNextcloud/server

Using security-advisories by nextcloud?

Get instant alerts when new vulnerabilities affect security-advisories - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
LOW3.5
Exploit prediction
EPSS 3%
SSVC
PoC

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 19.0.13.7v < 22.2.820.0.0 ≤ v < 20.0.14.621.0.0 ≤ v < 21.0.9.523.0.0 ≤ v < 23.0.524.0.024.0.0 beta124.0.0 beta224.0.0 beta324.0.0 rc124.0.0 rc224.0.0 rc3
Affected range stops below 19.0.13.7, so it looks safe — our inference, not a vendor statement
Affected range stops below 20.0.14.6, so it looks safe — our inference, not a vendor statement
Affected range stops below 21.0.9.5, so it looks safe — our inference, not a vendor statement
Affected range stops below 22.2.8, so it looks safe — our inference, not a vendor statement
Affected range stops below 23.0.5, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

References (3)

x_refsource_MISCIssue TrackingPatchThird Party Advisory
https://github.com/nextcloud/server/pull/32428
x_refsource_MISCExploitIssue TrackingPatchThird Party Advisory
https://hackerone.com/reports/1516377

SSVC — Action Prioritization

SSVCPoCNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
NETWORK
Complexity
LOW
Privileges
LOW
User Interaction
REQUIRED
Scope
UNCHANGED
Confidentiality
NONE
Integrity
LOW
Availability
NONE
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-74CWE-93

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card