GHSA-w832-w3p8-cw29

Suggest an improvement
Source
https://github.com/advisories/GHSA-w832-w3p8-cw29
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/07/GHSA-w832-w3p8-cw29/GHSA-w832-w3p8-cw29.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-w832-w3p8-cw29
Aliases
Published
2025-07-29T06:30:21Z
Modified
2025-07-29T20:57:16.664119Z
Severity
  • 9.0 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H CVSS Calculator
  • 7.9 (High) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:N/SC:H/SI:H/SA:H/E:P/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X CVSS Calculator
Summary
z-push/z-push-dev SQL Injection Vulnerability
Details

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

Database specific
{
    "cwe_ids": [
        "CWE-89"
    ],
    "github_reviewed_at": "2025-07-29T20:12:47Z",
    "github_reviewed": true,
    "severity": "HIGH",
    "nvd_published_at": "2025-07-29T05:15:32Z"
}
References

Affected packages

Packagist / z-push/z-push-dev

Package

Name
z-push/z-push-dev
Purl
pkg:composer/z-push/z-push-dev

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.7.6

Affected versions

2.*

2.2.4
2.2.5
2.2.6beta2+ZP-756
2.2.6
2.2.7
2.2.8
2.2.9
2.2.10
2.2.11beta1
2.2.11beta2
2.2.11
2.2.12beta1
2.2.12
2.2.13beta1
2.2.13
2.2.14beta1
2.2.14
2.3.0alpha1
2.3.0alpha2
2.3.0beta1
2.3.0beta2
2.3.0beta3
2.3.0
2.3.1beta0
2.3.1beta1
2.3.1beta2
2.3.1
2.3.2beta0
2.3.2beta1
2.3.2
2.3.3beta0
2.3.3beta1
2.3.3
2.3.4beta0
2.3.4beta1
2.3.4
2.3.5beta0
2.3.5beta1
2.3.5
2.3.6beta0
2.3.6beta1
2.3.6
2.3.7beta0
2.3.7beta1
2.3.7
2.3.8beta0
2.3.8beta1
2.3.8beta2
2.3.8
2.3.9beta0
2.3.9
2.4.0.alpha1
2.4.0.beta1
2.4.0.beta2
2.4.0
2.4.1.beta0
2.4.1.beta1
2.4.1
2.4.2.beta0
2.4.2.beta1
2.4.2
2.4.3.beta0
2.4.3.beta1
2.4.3
2.4.4.beta1
2.4.4
2.4.5.beta0
2.4.5.beta1
2.4.5
2.4.6.beta0
2.5.0.alpha0
2.5.0.beta1
2.5.0
2.5.1.beta0
2.5.1.beta1
2.5.1
2.5.2.beta0
2.5.2.beta1
2.5.2
2.6.0.alpha0
2.6.0.alpha1
2.6.0.beta0
2.6.0.beta1
2.6.0
2.6.1.beta1
2.6.1
2.6.2.alpha1
2.6.2.beta1
2.6.2
2.6.3.alpha1
2.6.3.beta1
2.6.3
2.6.4.beta1
2.6.4
2.7.0
2.7.1
2.7.2
2.7.3
2.7.4
2.7.5