CVE-2022-31014

Summary

CVECVE-2022-31014
StatePUBLIC
Assigner[email protected]
Source PriorityCVE Program / NVD first with legacy fallback
Published2022-07-05 18:15:00 UTC
Updated2023-06-29 14:24:00 UTC
DescriptionNextcloud 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.

Risk And Classification

Problem Types: CWE-74

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Application Nextcloud Nextcloud Server All All All All
Application Nextcloud Nextcloud Server All All All All
Application Nextcloud Nextcloud Server 24.0.0 - All All
Application Nextcloud Nextcloud Server 24.0.0 beta1 All All
Application Nextcloud Nextcloud Server 24.0.0 beta2 All All
Application Nextcloud Nextcloud Server 24.0.0 beta3 All All
Application Nextcloud Nextcloud Server 24.0.0 rc1 All All
Application Nextcloud Nextcloud Server 24.0.0 rc2 All All
Application Nextcloud Nextcloud Server 24.0.0 rc3 All All

References

ReferenceSourceLinkTags
SMTP Command Injection in iCalendar Attachments to emails via newlines · Advisory · nextcloud/security-advisories · GitHub CONFIRM github.com
Add Email validation by miaulalala · Pull Request #32428 · nextcloud/server · GitHub MISC github.com
HackerOne MISC hackerone.com
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report