CVE-2015-4022

Exp

Integer overflow in the ftp_genlist function in ext/ftp/ftp.c in PHP before 5.4.41, 5.5.x before 5.5.25, and 5.6.x before 5.6.9 allows remote FTP servers to execute arbitrary code via a long reply to a LIST command, leading to a heap-based buffer overflow.

Published: 2015-06-09 Last update: 2026-06-16 Assigner: [email protected] Source: [email protected]

Conclusion & alert: CVE-2015-4022 is rated High Exploit Risk (79.6/100): CVSS High severity, with high exploitation likelihood (EPSS 20.84%, 97th percentile). Core evidence: 1 public exploit reference(s) are indexed (Exploit-DB). Mandatory action: Public exploits are available—assess exposure, apply mitigations, and prioritize patching.

Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.

Public exploit references (Exploit-DB) for CVE-2015-4022

EDB-ID Source Kind Published Link
nvd_ref exploit_tag Exploit-DB ↗

Exploit prediction scoring system (EPSS) score for CVE-2015-4022

EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).

# Date Old EPSS score New EPSS score Delta (New - Old)
1 2026-06-26 20.31% 20.84% +0.53%
2 2026-06-15 12.08% 20.31% +8.23%
3 2026-05-24 12.08%

Full EPSS history (46 records total)

Common vulnerability scoring system (CVSS) metrics for CVE-2015-4022

CVSS metrics for this CVE.

Base score Version Severity Vector Exploitability Impact Score source
7.5 2.0 HIGH
AV:N/AC:L/Au:N/C:P/I:P/A:P Click to expand
Access vector (AV:N)
Can be exploited remotely over network reachability.
Access complexity (AC:L)
Exploitation conditions are straightforward and predictable.
Authentication (AU:N)
No authentication is required.
Confidentiality impact (C:P)
Partial confidentiality impact.
Integrity impact (I:P)
Partial integrity impact.
Availability impact (A:P)
Partial availability impact.
10.0 6.4 [email protected]

Weakness enumeration for CVE-2015-4022

OS Trackers for CVE-2015-4022

vendor priority summary link
gentoo normal CVE-2015-4022: 1 GLSA(s) (201606-10), 1 atom(s) (dev-lang/php); latest impact normal. https://bugs.gentoo.org/buglist.cgi?quicksearch=CVE-2015-4022
redhat medium https://access.redhat.com/security/cve/CVE-2015-4022
ubuntu medium CVE-2015-4022 medium priority: Ubuntu including 1 source packages (php5), 5 status rows across 5 suites (precise, trusty, upstream, utopic, vivid): released 5. https://ubuntu.com/security/CVE-2015-4022

Affected software / configurations for CVE-2015-4022

Vendor Product Version Raw CPE
redhat enterprise_linux_desktop 7.0 cpe:2.3:o:redhat:enterprise_linux_desktop:7.0:*:*:*:*:*:*:*
redhat enterprise_linux_hpc_node 7.0 cpe:2.3:o:redhat:enterprise_linux_hpc_node:7.0:*:*:*:*:*:*:*
redhat enterprise_linux_hpc_node_eus 7.1 cpe:2.3:o:redhat:enterprise_linux_hpc_node_eus:7.1:*:*:*:*:*:*:*
redhat enterprise_linux_server 7.0 cpe:2.3:o:redhat:enterprise_linux_server:7.0:*:*:*:*:*:*:*
redhat enterprise_linux_server_eus 7.1 cpe:2.3:o:redhat:enterprise_linux_server_eus:7.1:*:*:*:*:*:*:*
redhat enterprise_linux_workstation 7.0 cpe:2.3:o:redhat:enterprise_linux_workstation:7.0:*:*:*:*:*:*:*
php php <= 5.4.40 cpe:2.3:a:php:php:*:*:*:*:*:*:*:*
php php 5.4.39 cpe:2.3:a:php:php:5.4.39:*:*:*:*:*:*:*
php php 5.5.0 cpe:2.3:a:php:php:5.5.0:*:*:*:*:*:*:*
php php 5.5.0 cpe:2.3:a:php:php:5.5.0:alpha1:*:*:*:*:*:*
php php 5.5.0 cpe:2.3:a:php:php:5.5.0:alpha2:*:*:*:*:*:*
php php 5.5.0 cpe:2.3:a:php:php:5.5.0:alpha3:*:*:*:*:*:*
php php 5.5.0 cpe:2.3:a:php:php:5.5.0:alpha4:*:*:*:*:*:*
php php 5.5.0 cpe:2.3:a:php:php:5.5.0:alpha5:*:*:*:*:*:*
php php 5.5.0 cpe:2.3:a:php:php:5.5.0:alpha6:*:*:*:*:*:*
php php 5.5.0 cpe:2.3:a:php:php:5.5.0:beta1:*:*:*:*:*:*
php php 5.5.0 cpe:2.3:a:php:php:5.5.0:beta2:*:*:*:*:*:*
php php 5.5.0 cpe:2.3:a:php:php:5.5.0:beta3:*:*:*:*:*:*
php php 5.5.0 cpe:2.3:a:php:php:5.5.0:beta4:*:*:*:*:*:*
php php 5.5.0 cpe:2.3:a:php:php:5.5.0:rc1:*:*:*:*:*:*
php php 5.5.0 cpe:2.3:a:php:php:5.5.0:rc2:*:*:*:*:*:*
php php 5.5.1 cpe:2.3:a:php:php:5.5.1:*:*:*:*:*:*:*
php php 5.5.2 cpe:2.3:a:php:php:5.5.2:*:*:*:*:*:*:*
php php 5.5.3 cpe:2.3:a:php:php:5.5.3:*:*:*:*:*:*:*
php php 5.5.4 cpe:2.3:a:php:php:5.5.4:*:*:*:*:*:*:*
php php 5.5.5 cpe:2.3:a:php:php:5.5.5:*:*:*:*:*:*:*
php php 5.5.6 cpe:2.3:a:php:php:5.5.6:*:*:*:*:*:*:*
php php 5.5.7 cpe:2.3:a:php:php:5.5.7:*:*:*:*:*:*:*
php php 5.5.8 cpe:2.3:a:php:php:5.5.8:*:*:*:*:*:*:*
php php 5.5.9 cpe:2.3:a:php:php:5.5.9:*:*:*:*:*:*:*
php php 5.5.10 cpe:2.3:a:php:php:5.5.10:*:*:*:*:*:*:*
php php 5.5.11 cpe:2.3:a:php:php:5.5.11:*:*:*:*:*:*:*
php php 5.5.12 cpe:2.3:a:php:php:5.5.12:*:*:*:*:*:*:*
php php 5.5.13 cpe:2.3:a:php:php:5.5.13:*:*:*:*:*:*:*
php php 5.5.14 cpe:2.3:a:php:php:5.5.14:*:*:*:*:*:*:*
php php 5.5.18 cpe:2.3:a:php:php:5.5.18:*:*:*:*:*:*:*
php php 5.5.19 cpe:2.3:a:php:php:5.5.19:*:*:*:*:*:*:*
php php 5.5.20 cpe:2.3:a:php:php:5.5.20:*:*:*:*:*:*:*
php php 5.5.21 cpe:2.3:a:php:php:5.5.21:*:*:*:*:*:*:*
php php 5.5.22 cpe:2.3:a:php:php:5.5.22:*:*:*:*:*:*:*
php php 5.5.23 cpe:2.3:a:php:php:5.5.23:*:*:*:*:*:*:*
php php 5.5.24 cpe:2.3:a:php:php:5.5.24:*:*:*:*:*:*:*
php php 5.6.0 cpe:2.3:a:php:php:5.6.0:alpha1:*:*:*:*:*:*
php php 5.6.0 cpe:2.3:a:php:php:5.6.0:alpha2:*:*:*:*:*:*
php php 5.6.0 cpe:2.3:a:php:php:5.6.0:alpha3:*:*:*:*:*:*
php php 5.6.0 cpe:2.3:a:php:php:5.6.0:alpha4:*:*:*:*:*:*
php php 5.6.0 cpe:2.3:a:php:php:5.6.0:alpha5:*:*:*:*:*:*
php php 5.6.0 cpe:2.3:a:php:php:5.6.0:beta1:*:*:*:*:*:*
php php 5.6.0 cpe:2.3:a:php:php:5.6.0:beta2:*:*:*:*:*:*
php php 5.6.0 cpe:2.3:a:php:php:5.6.0:beta3:*:*:*:*:*:*
php php 5.6.0 cpe:2.3:a:php:php:5.6.0:beta4:*:*:*:*:*:*
php php 5.6.2 cpe:2.3:a:php:php:5.6.2:*:*:*:*:*:*:*
php php 5.6.3 cpe:2.3:a:php:php:5.6.3:*:*:*:*:*:*:*
php php 5.6.4 cpe:2.3:a:php:php:5.6.4:*:*:*:*:*:*:*
php php 5.6.5 cpe:2.3:a:php:php:5.6.5:*:*:*:*:*:*:*
php php 5.6.6 cpe:2.3:a:php:php:5.6.6:*:*:*:*:*:*:*
php php 5.6.7 cpe:2.3:a:php:php:5.6.7:*:*:*:*:*:*:*
php php 5.6.8 cpe:2.3:a:php:php:5.6.8:*:*:*:*:*:*:*
redhat enterprise_linux 6.0 cpe:2.3:o:redhat:enterprise_linux:6.0:*:*:*:*:*:*:*
redhat enterprise_linux 7.0 cpe:2.3:o:redhat:enterprise_linux:7.0:*:*:*:*:*:*:*
apple mac_os_x <= 10.10.4 cpe:2.3:o:apple:mac_os_x:*:*:*:*:*:*:*:*

References for CVE-2015-4022

URL Tags
http://lists.apple.com/archives/security-announce/2015/Aug/msg00001.html
http://lists.fedoraproject.org/pipermail/package-announce/2015-May/158616.html
http://lists.fedoraproject.org/pipermail/package-announce/2015-May/158915.html
http://lists.fedoraproject.org/pipermail/package-announce/2015-May/159031.html
http://lists.opensuse.org/opensuse-updates/2015-06/msg00002.html
http://php.net/ChangeLog-5.php Patch
http://rhn.redhat.com/errata/RHSA-2015-1135.html
http://rhn.redhat.com/errata/RHSA-2015-1186.html
http://rhn.redhat.com/errata/RHSA-2015-1187.html
http://rhn.redhat.com/errata/RHSA-2015-1218.html
http://rhn.redhat.com/errata/RHSA-2015-1219.html
http://www.debian.org/security/2015/dsa-3280
http://www.oracle.com/technetwork/topics/security/linuxbulletinjan2016-2867209.html
http://www.securityfocus.com/bid/74902
http://www.securitytracker.com/id/1032433
https://bugs.php.net/bug.php?id=69545 Exploit Vendor Advisory
https://security.gentoo.org/glsa/201606-10
https://support.apple.com/kb/HT205031
cvelogic Threat Intelligence