z-push/z-push-dev SQL Injection Vulnerability
Summary
The imported advisory is rated critical severity. It identifies 1 affected package; whether you are affected depends on your installed version. It is not listed in the imported CISA KEV data; that does not establish that exploitation has not occurred.
Summary by cve.new · CC BY 4.0Original source 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 packages
Start with the recorded fix for your release branch. Check your installed version and test compatibility before upgrading. Fixing this advisory does not rule out other vulnerabilities in the release.
Earlier releases before 2.7.6
Fixed in 2.7.6
100 explicitly affected versions
2.2.10, 2.2.11, 2.2.11beta1, 2.2.11beta2, 2.2.12, 2.2.12beta1, 2.2.13, 2.2.13beta1, 2.2.14, 2.2.14beta1, 2.2.4, 2.2.5, 2.2.6, 2.2.6beta2+ZP-756, 2.2.7, 2.2.8, 2.2.9, 2.3.0, 2.3.0alpha1, 2.3.0alpha2, 2.3.0beta1, 2.3.0beta2, 2.3.0beta3, 2.3.1, 2.3.1beta0, 2.3.1beta1, 2.3.1beta2, 2.3.2, 2.3.2beta0, 2.3.2beta1, 2.3.3, 2.3.3beta0, 2.3.3beta1, 2.3.4, 2.3.4beta0, 2.3.4beta1, 2.3.5, 2.3.5beta0, 2.3.5beta1, 2.3.6, 2.3.6beta0, 2.3.6beta1, 2.3.7, 2.3.7beta0, 2.3.7beta1, 2.3.8, 2.3.8beta0, 2.3.8beta1, 2.3.8beta2, 2.3.9, 2.3.9beta0, 2.4.0, 2.4.0.alpha1, 2.4.0.beta1, 2.4.0.beta2, 2.4.1, 2.4.1.beta0, 2.4.1.beta1, 2.4.2, 2.4.2.beta0, 2.4.2.beta1, 2.4.3, 2.4.3.beta0, 2.4.3.beta1, 2.4.4, 2.4.4.beta1, 2.4.5, 2.4.5.beta0, 2.4.5.beta1, 2.4.6.beta0, 2.5.0, 2.5.0.alpha0, 2.5.0.beta1, 2.5.1, 2.5.1.beta0, 2.5.1.beta1, 2.5.2, 2.5.2.beta0, 2.5.2.beta1, 2.6.0, 2.6.0.alpha0, 2.6.0.alpha1, 2.6.0.beta0, 2.6.0.beta1, 2.6.1, 2.6.1.beta1, 2.6.2, 2.6.2.alpha1, 2.6.2.beta1, 2.6.3, 2.6.3.alpha1, 2.6.3.beta1, 2.6.4, 2.6.4.beta1, 2.7.0, 2.7.1, 2.7.2, 2.7.3, 2.7.4, 2.7.5
View affected-version evidence
{
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "2.7.6"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"2.2.10",
"2.2.11",
"2.2.11beta1",
"2.2.11beta2",
"2.2.12",
"2.2.12beta1",
"2.2.13",
"2.2.13beta1",
"2.2.14",
"2.2.14beta1",
"2.2.4",
"2.2.5",
"2.2.6",
"2.2.6beta2+ZP-756",
"2.2.7",
"2.2.8",
"2.2.9",
"2.3.0",
"2.3.0alpha1",
"2.3.0alpha2",
"2.3.0beta1",
"2.3.0beta2",
"2.3.0beta3",
"2.3.1",
"2.3.1beta0",
"2.3.1beta1",
"2.3.1beta2",
"2.3.2",
"2.3.2beta0",
"2.3.2beta1",
"2.3.3",
"2.3.3beta0",
"2.3.3beta1",
"2.3.4",
"2.3.4beta0",
"2.3.4beta1",
"2.3.5",
"2.3.5beta0",
"2.3.5beta1",
"2.3.6",
"2.3.6beta0",
"2.3.6beta1",
"2.3.7",
"2.3.7beta0",
"2.3.7beta1",
"2.3.8",
"2.3.8beta0",
"2.3.8beta1",
"2.3.8beta2",
"2.3.9",
"2.3.9beta0",
"2.4.0",
"2.4.0.alpha1",
"2.4.0.beta1",
"2.4.0.beta2",
"2.4.1",
"2.4.1.beta0",
"2.4.1.beta1",
"2.4.2",
"2.4.2.beta0",
"2.4.2.beta1",
"2.4.3",
"2.4.3.beta0",
"2.4.3.beta1",
"2.4.4",
"2.4.4.beta1",
"2.4.5",
"2.4.5.beta0",
"2.4.5.beta1",
"2.4.6.beta0",
"2.5.0",
"2.5.0.alpha0",
"2.5.0.beta1",
"2.5.1",
"2.5.1.beta0",
"2.5.1.beta1",
"2.5.2",
"2.5.2.beta0",
"2.5.2.beta1",
"2.6.0",
"2.6.0.alpha0",
"2.6.0.alpha1",
"2.6.0.beta0",
"2.6.0.beta1",
"2.6.1",
"2.6.1.beta1",
"2.6.2",
"2.6.2.alpha1",
"2.6.2.beta1",
"2.6.3",
"2.6.3.alpha1",
"2.6.3.beta1",
"2.6.4",
"2.6.4.beta1",
"2.7.0",
"2.7.1",
"2.7.2",
"2.7.3",
"2.7.4",
"2.7.5"
]
}References
- https://nvd.nist.gov/vuln/detail/CVE-2025-8264
- https://github.com/Z-Hub/Z-Push/pull/161
- https://github.com/Z-Hub/Z-Push/pull/161/commits/f981d515a35ac4c303959af21dce880a5db02786
- https://github.com/Z-Hub/Z-Push/commit/deb044a40e97dab1814da9aa8330c0a590957fc5
- https://github.com/Z-Hub/Z-Push
- https://github.com/Z-Hub/Z-Push/blob/af25a2169a50d6e05a5916d1e8b2b6cd17011c98/src/backend/imap/user_identity.php%23L211C9-L214C25
- https://security.snyk.io/vuln/SNYK-PHP-ZPUSHZPUSHDEV-10908180
- https://xbow.com/blog/xbow-zpush-sqli