An issue was discovered in Cyrus IMAP before 2.5.15, 3.0.x before 3.0.13, and 3.1.x through 3.1.8. If sieve script uploading is allowed (3.x) or certain non-default sieve options are enabled (2.x), a user with a mail account on the service can use a sieve script containing a fileinto directive to create any mailbox with administrator privileges, because of folder mishandling in autosieve_createfolder() in imap/lmtp_sieve.c.
https://www.debian.org/security/2019/dsa-4590
https://www.cyrusimap.org/imap/download/release-notes/3.0/x/3.0.13.html
https://www.cyrusimap.org/imap/download/release-notes/2.5/x/2.5.15.html
https://usn.ubuntu.com/4566-1/
https://security.gentoo.org/glsa/202006-23