cve.bz

CVE-2022-31014 nextcloud nextcloud server: Injection

3.5 lowExploit referenceEPSS 2.5%Fix available

Low (3.5) in nextcloud nextcloud server. EPSS 2.5% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

3.5 low
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:N
EPSS
2.5% (unchanged from 2.5% a week ago; 2.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 85th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: partial, assessed 2025-04-22. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component (Injection)
CWE-93 Improper Neutralization of CRLF Sequences (CRLF Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2022-31014 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-31014?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-31014?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2022-31014 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
nextcloud:nextcloud_serverbefore 19.0.13.7
nextcloud:nextcloud_serverbefore 22.2.8
nextcloud:nextcloud_serverfrom 20.0.0 before 20.0.14.6
nextcloud:nextcloud_serverfrom 21.0.0 before 21.0.9.5
nextcloud:nextcloud_serverfrom 23.0.0 before 23.0.5
nextcloud:nextcloud_server24.0.0
nextcloud:nextcloud_server24.0.0:beta1
nextcloud:nextcloud_server24.0.0:beta2
nextcloud:nextcloud_server24.0.0:beta3
nextcloud:nextcloud_server24.0.0:rc1
nextcloud:nextcloud_server24.0.0:rc2
nextcloud:nextcloud_server24.0.0:rc3

Attack patterns (CAPEC)

  • CAPEC-15 Command Delimiters Likelihood: High · Severity: High
  • CAPEC-81 Web Server Logs Tampering Likelihood: Medium · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-74 (37).

References

Check your stackJSON