z-push/z-push-dev SQL Injection Vulnerability
Date: 2025-07
Affected: composer/z-push/z-push-dev
Attack vector: sql-injection
Category: vulnerability-disclosure
Severity: High
CVE: CVE-2025-8264
CWE: CWE-89
CVSS: 9 (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H)

Versions of the package z-push/z-push-dev before 2.7.6 are vulnerable to SQL Injection due to unparameterized queries in the IMAP backend. An attacker can inject malicious commands by manipulating the username field in basic authentication. This allows the attacker to access and potentially modify or delete sensitive data from a linked third-party database. **Note:** This vulnerability affects Z-Push installations that utilize the IMAP backend and have the IMAP_FROM_SQL_QUERY option configured. Mitigation Change configuration to use the default or LDAP in backend/imap/config.php php define('IMAP_DEFAULTFROM', ''); or php define('IMAP_DEFAULTFROM', 'ldap');


Mitigations:

Architectural layers (MAESTRO):