CVE-2025-8264 z-push/z-push-dev SQL Injection Vulnerability
Attackers can inject SQL commands via the username field in basic authentication to access or modify database data in Z-Push IMAP backend installations.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2025-8264?
CVE-2025-8264 is a critical SQL injection vulnerability in z-push/z-push-dev, published on 29 Jul 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
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');
Weakness: CWE-89
Which versions are affected by CVE-2025-8264?
2 open source packages ship an affected version, including z-push/z-push-dev.
| Package | Affected | Fixed in |
|---|---|---|
z-push/z-push-dev Packagist | All versions | 2.7.6 |
z-push/z-push-dev Packagist | All versions | 2.7.6 |
How do I fix CVE-2025-8264?
Upgrade z-push/z-push-dev to 2.7.6 or later.
Use parameterised queries everywhere and never build SQL by joining strings. Upgrade affected software first; a web application firewall only buys time. More about SQL injection.
Is CVE-2025-8264 being exploited?
There is no known exploitation of CVE-2025-8264 in the wild and no public exploit code.
Sources
Also known as GHSA-w832-w3p8-cw29, UBUNTU-CVE-2025-8264.