Skip to content
OpenAdvisories
Critical · 9.0 CVE-2025-8264 EUVD-2025-22977GHSA-w832-w3p8-cw29

z-push/z-push-dev SQL Injection Vulnerability

Published Jul 29, 2025 · Updated Aug 13, 2026 · Assigned by snyk

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');

Affected products

VendorProductAffectedFixed
— z-push/z-push-dev < 2.7.6 2.7.6

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Ubuntu 22.04 LTS z-push No fix yet —
Ubuntu 20.04 LTS z-push No fix yet —
Ubuntu 18.04 LTS z-push No fix yet —

Affected packages

EcosystemPackageAffectedFixedRecord
Packagist z-push/z-push-dev < 2.7.6 2.7.6 GHSA-w832-w3p8-cw29

References