CVE-2022-24838 Command Injection in Appointment Emails for Nextcloud Calendar
Attackers can inject arbitrary SMTP commands via unsanitized email fields in appointment requests, potentially compromising email delivery or server integrity.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2022-24838?
CVE-2022-24838 is a medium-severity command injection vulnerability in nextcloud security-advisories, published on 11 Apr 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
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.
Weakness: CWE-74
Which versions are affected by CVE-2022-24838?
It affects 1 product.
Products include Nextcloud Calendar.
How do I fix CVE-2022-24838?
No fix has been published for CVE-2022-24838 yet. Limit exposure of the affected software until one is available.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is CVE-2022-24838 being exploited?
There is no known exploitation of CVE-2022-24838 in the wild and no public exploit code.
Other vulnerabilities in nextcloud security-advisories
- CVE-2025-66550 Nextcloud Calendar attachments of local files are offered to downloaded
- CVE-2025-66511 Nextcloud Calendar app used predictable proposal participant tokens
- CVE-2018-3763 Cross-site scripting in Nextcloud Calendar application
- CVE-2024-37316 Nextcloud Calendar's event create can create attachments that link to other websites
- CVE-2026-45286 Nextcloud: Calendar app leaked user identifiers via attendee suggestion endpoint
Sources
Also known as GHSA-8xv5-4855-24qf.