A flaw was found in mbsync versions prior to 1.4.4. Due to inadequate handling of extremely large (>=2GiB) IMAP literals, malicious or compromised IMAP servers, and hypothetically even external email senders, could cause several different buffer overflows, which could conceivably be exploited for remote code execution.
https://www.openwall.com/lists/oss-security/2021/12/03/1
https://security.gentoo.org/glsa/202208-15
https://lists.debian.org/debian-lts-announce/2022/07/msg00001.html