# CVE-2022-24838: Command Injection in Appointment Emails for Nextcloud Calendar

- Severity: Medium 5.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 33.0%, higher than 98% of CVEs (2026-12-01)
- Published: 2022-04-11T20:25:13.000Z
- Modified: 2026-06-17T04:32:37.870Z
- Weaknesses: CWE-74
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- nextcloud security-advisories: < 3.2.2
- nextcloud calendar: before 3.2.2

## Every score

- GitHub_M: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 7.5 High `AV:N/AC:L/Au:N/C:P/I:P/A:P`

## References

- <https://github.com/nextcloud/security-advisories/security/advisories/GHSA-8xv5-4855-24qf> (third-party-advisory)
- <https://github.com/nextcloud/calendar/pull/4073> (patch, third-party-advisory)
- <https://github.com/nextcloud/calendar/commit/7b70edfb8a0fcf0926f613ababcbd56c6ecd9f35> (patch, third-party-advisory)

## Sources

- CVE List: [CVE-2022-24838](https://www.cve.org/CVERecord?id=CVE-2022-24838), CVE Terms of Use, modified 2025-04-23
- NVD: [CVE-2022-24838](https://nvd.nist.gov/vuln/detail/CVE-2022-24838), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-24838 · Whole record: https://cve.day/CVE-2022-24838.json · Rebuilt by cve.day 2026-11-25T22:58:10.545Z
