Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. z-push/z-push-dev
  4. ›
  5. CVE-2025-8264

CVE-2025-8264: z-push/z-push-dev SQL Injection Vulnerability

July 29, 2025

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

References

  • github.com/Z-Hub/Z-Push
  • github.com/Z-Hub/Z-Push/blob/af25a2169a50d6e05a5916d1e8b2b6cd17011c98/src/backend/imap/user_identity.php%23L211C9-L214C25
  • github.com/Z-Hub/Z-Push/commit/deb044a40e97dab1814da9aa8330c0a590957fc5
  • github.com/Z-Hub/Z-Push/pull/161
  • github.com/Z-Hub/Z-Push/pull/161/commits/f981d515a35ac4c303959af21dce880a5db02786
  • github.com/advisories/GHSA-w832-w3p8-cw29
  • nvd.nist.gov/vuln/detail/CVE-2025-8264
  • security.snyk.io/vuln/SNYK-PHP-ZPUSHZPUSHDEV-10908180
  • xbow.com/blog/xbow-zpush-sqli

Code Behaviors & Features

Detect and mitigate CVE-2025-8264 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.7.6

Fixed versions

  • 2.7.6

Solution

Upgrade to version 2.7.6 or above.

Impact 9 CRITICAL

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

Source file

packagist/z-push/z-push-dev/CVE-2025-8264.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 19 Aug 2025 12:19:00 +0000.