Overview
Z-Push is an open source ActiveSync server. When the IMAP backend is set to look up a sender's From address with IMAP_FROM_SQL_QUERY, it builds that SQL query from the username in the Basic Authentication header without parameterizing it.
An unauthenticated attacker puts SQL in the username and runs it against the linked database. That reads, changes or deletes data in whatever database the query points at. Z-Push 2.7.6 fixes the issue. Setting IMAP_DEFAULTFROM to the default or to ldap removes the vulnerable path.
Affected products
- Z-Push before 2.7.6 using the IMAP backend with IMAP_FROM_SQL_QUERY configured
Disclosure timeline
- 10 Jul 2025
- XBOW publishes the technical write-up
- 28 Jul 2025
- Z-Hub releases Z-Push 2.7.6 with the fix
- 29 Jul 2025
- CVE-2025-8264 published by Snyk