CVE-2022-31014
CVE-2022-31014 — SMTP Command Injection in iCalendar Attachments to emails via newlines in Nextcloud Server
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.
Published Updated Sources: cvelistV5, GitHub_M
Triage
Is it exploited, how likely is exploitation, what does it touch, and how severe do the scoring sources call it.
Exploitation
Unreported
no source claims exploitation
EPSS
2%
chance of exploitation in 30 days
CVSS base
5.4
MEDIUM
CISA SSVC assessment
Three decision points CISA publishes for the CVEs it assesses · SSVC 2.0.3. A stakeholder decision, not a severity score.
Exploitation
PoC
none · proof-of-concept · active
Automatable
No
can an attacker script all four kill-chain steps
Technical impact
Partial
partial · total control of the vulnerable component
Affected scope
The catalog records vendors and products as separate lists, not pairs, so which product belongs to which vendor is not something this page can say.
Vendors (1)
Products (1)
Every base score collected
Sources score independently and disagree; each row says who scored it and under which version.
| Score | Version | Severity | Expl. | Impact | Source |
|---|---|---|---|---|---|
| 5.4 | CVSS 3.1 | MEDIUM | n/a | n/a | cvelistV5 |
Weakness & attack patterns
- CWE-74
- CWE-93
Attack patterns reported against this CVE. The ATT&CK techniques below are inferred from its weakness class.
- T1562.003Impair Defenses: Impair Command History Logging
- T1574.006Hijack Execution Flow: Dynamic Linker Hijacking
- T1574.007Hijack Execution Flow: Path Interception by PATH Environment Variable
References
3 on the record
- github.com/nextcloud/security-advisories/security/advisories/GHSA-264h-3v4w-6xh2
x_refsource_CONFIRM
- github.com/nextcloud/server/pull/32428
x_refsource_MISC
- hackerone.com/reports/1516377
x_refsource_MISC
Related CVEs
Same product first, then the same weakness or threat actor.
- CVE-2025-20337 Cisco ISE API Unauthenticated Remote Code Execution VulnerabilityCVSS 10.0 · CISA KEV
- CVE-2025-20281 Cisco ISE API Unauthenticated Remote Code Execution VulnerabilityCVSS 10.0 · CISA KEV
- CVE-2023-22527 Atlassian Confluence Data Center and Server Template Injection VulnerabilityCVSS 9.8 · CISA KEV
- CVE-2022-46169 Unauthenticated Command InjectionCVSS 9.8 · CISA KEV
- CVE-2022-35914 Teclib GLPI Remote Code Execution VulnerabilityCVSS 9.8 · CISA KEV
- CVE-2022-26134 Atlassian Confluence Server and Data Center Remote Code Execution VulnerabilityCVSS 9.8 · CISA KEV
Elsewhere on this site
Not in any source we poll
Listed rather than left blank: an empty field and an unmeasured one look identical on screen, and only one is a reason to look elsewhere.
- No confirmed IOCs, IP addresses, domains, file hashes, or malware artifacts supplied.
- No organization-specific asset inventory, compensating-control status, or patch deployment evidence supplied.
- No exploit packet captures, log samples, or incident case IDs supplied.