{"id":"CVE-2022-24838","published":"2022-04-11T20:25:13Z","modified":"2025-04-23T18:40:43Z","title":"Command Injection in Appointment Emails for Nextcloud Calendar","vendor":"nextcloud","product":"security-advisories","tier":"tail","description":{"text":"Nextcloud Calendar is a calendar application for the nextcloud framework. SMTP Command Injection in Appointment Emails via Newlines: as newlines and special characters are not sanitized in the email value in the JSON request, a malicious attacker can inject newlines to break out of the `RCPT TO:<BOOKING USER'S EMAIL> ` SMTP command and begin injecting arbitrary SMTP commands. It is recommended that Calendar is upgraded to 3.2.2. There are no workaround available.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.3302,"percentile":0.98399,"provenance":"source"},"cwes":[{"id":"CWE-74","name":"Improper Neutralization of Special Elements in Output Used by a Downstream Component"}],"references":[{"url":"https://github.com/nextcloud/security-advisories/security/advisories/GHSA-8xv5-4855-24qf","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/nextcloud/calendar/pull/4073","tags":["x_refsource_MISC"]},{"url":"https://github.com/nextcloud/calendar/commit/7b70edfb8a0fcf0926f613ababcbd56c6ecd9f35","tags":["x_refsource_MISC"]}],"priority":{"score":23.4,"factors":[{"name":"EPSS percentile","points":19.68},{"name":"CVSS severity","points":3.71}]},"vendorSlug":"nextcloud","affectedVersions":[{"vendor":"nextcloud","product":"security-advisories","versions":["< 3.2.2"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2025-04-23T15:55:47.473559Z","from":"CISA ADP","provenance":"source"},"summary":{"text":"The flaw is an SMTP command injection in the Appointment Emails feature of the Calendar app for Nextcloud, where newlines and special characters in the email value of a JSON booking request are not sanitised, allowing them to break out of the RCPT TO command. An unauthenticated remote attacker with network access can inject arbitrary SMTP commands by submitting a crafted email value, with no user interaction or special configuration required; the advisory recommends upgrading Calendar to 3.2.2, and no workaround is available.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:41:02Z"},"euvd":{"id":"EUVD-2022-29623","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-nextcloud-security-advisories-cve-2022-24838","children":[{"from":"CVE-2022-24838","to":"CVE-2025-66546","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["lib/Controller/BookingController.php"],"commits":["https://github.com/nextcloud/calendar/commit/7b70edfb8a0fcf0926f613ababcbd56c6ecd9f35","https://github.com/nextcloud/calendar/commit/f41650c3681fc4a4130eb883f5c0899c011326b3"],"basis":"shared function","functions":["__construct","getBookableSlots"]}]}]}}