An unrestricted file type upload issue exists within the `save attachments()` function. The flaw occurs when CRM Email Connect processes inbound IMAP email attachments due to a lack of file extension validation and path normalization. Unauthenticated attackers can send a crafted email to the configured inbound mailbox using a forged References header and a filename like `../helper.php`. This allows the cron-based IMAP sync job to write attacker-controlled PHP files outside the protected `crm-attachments` directory and into `wp-content/uploads/`. If the server configuration allows PHP execution in the uploads directory, this can result in remote code execution. This issue requires the CRM module and IMAP Email Connect feature to be enabled and configured.