patchminder
Proof of concept · CISA assessment CVE-2022-31014

Injectionin Nextcloud security-advisories.

Published 5 Jul 2022 · Updated 22 Apr 2025 · Every fact sourced

JSONCite
Is it exploited?
Not confirmed

Proof of concept public (CISAThe US cyber defence agency. Its list names every hole it has seen used in real attacks. assessment).

Severity
Medium 5.4
CVSSA severity score from 0 to 10. 9 and higher is critical. 3.1
Attack likelihood
Moderate
EPSSA daily score from FIRST: the chance a hole is attacked in the next 30 days. 2.4% chance in 30 days · 4 Dec 2026
Fix
Available
Fixed in 22.2.8, 23.0.5, 24.0.1
In plain words

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.

What to do now
  • Upgrade security-advisories to 22.2.8, 23.0.5, 24.0.1 or later, whichever matches your release line.
Versions

Affected and fixed versions

Product or package
Affected
Fixed in
Source
security-advisories
before 22.2.8
22.2.8
CVE record
security-advisories
23.0.0 to before 23.0.5
23.0.5
CVE record
security-advisories
24.0.0 to before 24.0.1
24.0.1
CVE record

From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.

Timeline

From first report to first attacks

  1. 18 May 2022
    CVE ID reserved by GitHub_M.
  2. 5 Jul 2022
    Published in the CVE List.
  3. 22 Apr 2025
    CVE record last updated.
Exploit code

Attack code anyone can find

Exploit maturity: Proof of concept (CISA assessment). CISA assessment (SSVC): exploitation poc.

Metasploit module
None known
Nuclei scan template
None known
Exploit-DB
None known
GitHub proof of concepts
None known

Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.

Related

Other security-advisories vulnerabilities

Same weakness: Injection

All CWE-74 vulnerabilities

References
Cite this page

Patchminder. CVE-2022-31014: Injection in Nextcloud security-advisories. https://patchminder.com/cve/cve-2022-31014/ (accessed 5 December 2026).