{"schemaVersion":3,"id":"CVE-2022-31014","aliases":[],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2022-07-05T17:15:12.000Z","modified":"2025-04-22T17:52:24.302Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":5.4,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":5.4,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":3.5,"severity":"low","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:N","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":3.5,"severity":"low","vector":"AV:N/AC:M/Au:S/C:N/I:P/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.02515,"percentile":0.84665,"severity":"low","asOf":"2026-10-21T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-21T00:00:00.000Z","baselineScore":0.02515},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.02443,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.02443,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.02443,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.02443,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.02443,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.02443,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.02443,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.02515,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.02515,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.02515,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.02515,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.02515,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.02515,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.02515,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.02515,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.02515,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.02515,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.02515,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.02515,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.02515,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.02515,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.02515,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.02515,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.02515,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.02515,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.02515,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.02515,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.02515,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.02515,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.02515,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.02515,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.02515,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.02515,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.02515,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.02515,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.02515,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.02515,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.02515,"percentile":0.84665}],"last30":[{"date":"2026-09-21T00:00:00.000Z","score":0.02515,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.02515,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.02515,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.02515,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.02515,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.02515,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.02515,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.02515,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.02515,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.02515,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.02515,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.02515,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.02515,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.02515,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.02515,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.02515,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.02515,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.02515,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.02515,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.02515,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.02515,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.02515,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.02515,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.02515,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.02515,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.02515,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.02515,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.02515,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.02515,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.02515,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.02515,"percentile":0.84665}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"GITHUB_NEXTCLOUD_SECURITY-ADVISORIES","name":"Security Advisories","source":"github","url":"https://github.com/nextcloud/security-advisories/security/advisories/GHSA-f5fr-5gcv-6cc5","maturity":"poc","reliabilityScore":0.3,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null},{"id":"REF_77FAB3A90807E6B6","name":"Exploit Reference (hackerone.com)","source":"reference","url":"https://hackerone.com/reports/1516377","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":2,"weaknesses":[{"id":"CWE-74","name":"Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')","description":"The product constructs all or part of a command, data structure, or record using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify how it is parsed or interpreted when it is sent to a downstream component.","type":"weakness","status":"Incomplete","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/74.html"},{"id":"CWE-93","name":"Improper Neutralization of CRLF Sequences ('CRLF Injection')","description":"The product uses CRLF (carriage return line feeds) as a special element, e.g. to separate lines or records, but it does not neutralize or incorrectly neutralizes CRLF sequences from inputs.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/93.html"}],"affected":[{"vendor":"nextcloud","product":"nextcloud_server","name":"nextcloud server","label":"nextcloud_server","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 19.0.13.7","noFixRecorded":false,"fixedIn":null},{"text":"< 22.2.8","noFixRecorded":false,"fixedIn":null},{"text":"≥ 20.0.0, < 20.0.14.6","noFixRecorded":false,"fixedIn":null},{"text":"≥ 21.0.0, < 21.0.9.5","noFixRecorded":false,"fixedIn":null},{"text":"≥ 23.0.0, < 23.0.5","noFixRecorded":false,"fixedIn":null},{"text":"24.0.0","noFixRecorded":false,"fixedIn":null},{"text":"24.0.0:beta1","noFixRecorded":false,"fixedIn":null},{"text":"24.0.0:beta2","noFixRecorded":false,"fixedIn":null},{"text":"24.0.0:beta3","noFixRecorded":false,"fixedIn":null},{"text":"24.0.0:rc1","noFixRecorded":false,"fixedIn":null},{"text":"24.0.0:rc2","noFixRecorded":false,"fixedIn":null},{"text":"24.0.0:rc3","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 19.0.13.7 | < 22.2.8 | ≥ 20.0.0, < 20.0.14.6 | ≥ 21.0.0, < 21.0.9.5 | ≥ 23.0.0, < 23.0.5 | 24.0.0 | 24.0.0:beta1 | 24.0.0:beta2 | 24.0.0:beta3 | 24.0.0:rc1 | 24.0.0:rc2 | 24.0.0:rc3","eol":{"isEol":true,"eolDate":"2023-04-30T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"24","label":"24","eolFrom":"2023-04-30T00:00:00.000Z","isLts":false,"isMaintained":false,"latestVersion":"24.0.12"},"product":{"name":"nextcloud","label":"Nextcloud","category":"server-app"}},"hubHref":"/vendor/nextcloud/nextcloud_server"},{"vendor":"nextcloud","product":"security-advisories","name":"security-advisories","label":"security-advisories","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 22.2.8","noFixRecorded":false,"fixedIn":null},{"text":"≥ 23.0.0, < 23.0.5","noFixRecorded":false,"fixedIn":null},{"text":"≥ 24.0.0, < 24.0.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 22.2.8 | ≥ 23.0.0, < 23.0.5 | ≥ 24.0.0, < 24.0.1","eol":null,"hubHref":"/vendor/nextcloud/security-advisories"}],"affectedCount":2,"eol":{"hasEol":true,"count":1},"references":[{"url":"https://github.com/nextcloud/security-advisories/security/advisories/GHSA-264h-3v4w-6xh2","label":"github.com/nextcloud/security-advisories/security/advisories/GHSA-264h-3v4w-6xh2","hostname":"github.com","tags":["X Refsource CONFIRM","Exploit","Third Party Advisory"]},{"url":"https://github.com/nextcloud/server/pull/32428","label":"github.com/nextcloud/server/pull/32428","hostname":"github.com","tags":["X Refsource MISC","Issue Tracking","Patch","Third Party Advisory"]},{"url":"https://hackerone.com/reports/1516377","label":"hackerone.com/reports/1516377","hostname":"hackerone.com","tags":["X Refsource MISC","Exploit","Issue Tracking","Patch","Third Party Advisory"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2022-07-05T17:15:12.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-04-22T17:52:24.302Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":32,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-21T14:56:17.565Z","stale":false,"partial":false}}