{"id":"CVE-2015-4022","aliases":[],"kind":"cve","tier":"cold","status":"published","title":"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 befo…","description":"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.","ai_summary":null,"severity":"high","cvss":{"score":7.5,"version":"2.0","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","source":"NVD"},"scores":[{"score":7.5,"version":"2.0","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","source":"nvd"}],"cwe":["CWE-189"],"remote":true,"remote_unauth":true,"epss":{"score":0.20075,"percentile":0.97511,"date":"2026-12-02"},"kev":{"listed":false,"added":null,"due":null,"ransomware":null},"exploit":{"public":true,"exploitdb_ids":[]},"affected":[],"affected_products":[{"vendor":"n/a","product":"n/a","versions":"","source":"nvd"}],"ai_versions":null,"mitigation":"No fix listed yet: follow the vendor advisory.","technologies":[],"references":[{"url":"http://rhn.redhat.com/errata/RHSA-2015-1187.html","kind":"vendor"},{"url":"http://rhn.redhat.com/errata/RHSA-2015-1186.html","kind":"vendor"},{"url":"http://rhn.redhat.com/errata/RHSA-2015-1219.html","kind":"vendor"},{"url":"http://lists.opensuse.org/opensuse-updates/2015-06/msg00002.html","kind":"vendor"},{"url":"http://www.debian.org/security/2015/dsa-3280","kind":"vendor"},{"url":"http://lists.apple.com/archives/security-announce/2015/Aug/msg00001.html","kind":"vendor"},{"url":"http://rhn.redhat.com/errata/RHSA-2015-1135.html","kind":"vendor"},{"url":"http://lists.fedoraproject.org/pipermail/package-announce/2015-May/158915.html","kind":"vendor"},{"url":"http://lists.fedoraproject.org/pipermail/package-announce/2015-May/158616.html","kind":"vendor"},{"url":"http://lists.fedoraproject.org/pipermail/package-announce/2015-May/159031.html","kind":"vendor"},{"url":"https://security.gentoo.org/glsa/201606-10","kind":"vendor"},{"url":"http://rhn.redhat.com/errata/RHSA-2015-1218.html","kind":"vendor"},{"url":"http://php.net/ChangeLog-5.php","kind":"patch"},{"url":"https://bugs.php.net/bug.php?id=69545","kind":"exploit"},{"url":"http://www.oracle.com/technetwork/topics/security/linuxbulletinjan2016-2867209.html","kind":"other"},{"url":"http://www.securitytracker.com/id/1032433","kind":"other"},{"url":"http://www.securityfocus.com/bid/74902","kind":"other"},{"url":"https://support.apple.com/kb/HT205031","kind":"other"}],"workarounds":null,"vendors":["apple","php","redhat"],"products":["enterprise_linux","enterprise_linux_desktop","enterprise_linux_hpc_node","enterprise_linux_hpc_node_eus","enterprise_linux_server","enterprise_linux_server_eus","enterprise_linux_workstation","mac_os_x","php"],"cpes":["cpe:2.3:a:php:php:*:*:*:*:*:*:*:*","cpe:2.3:a:php:php:5.4.39:*:*:*:*:*:*:*","cpe:2.3:a:php:php:5.5.0:*:*:*:*:*:*:*","cpe:2.3:a:php:php:5.5.0:alpha1:*:*:*:*:*:*","cpe:2.3:a:php:php:5.5.0:alpha2:*:*:*:*:*:*","cpe:2.3:a:php:php:5.5.0:alpha3:*:*:*:*:*:*","cpe:2.3:a:php:php:5.5.0:alpha4:*:*:*:*:*:*","cpe:2.3:a:php:php:5.5.0:alpha5:*:*:*:*:*:*","cpe:2.3:a:php:php:5.5.0:alpha6:*:*:*:*:*:*","cpe:2.3:a:php:php:5.5.0:beta1:*:*:*:*:*:*","cpe:2.3:a:php:php:5.5.0:beta2:*:*:*:*:*:*","cpe:2.3:a:php:php:5.5.0:beta3:*:*:*:*:*:*","cpe:2.3:a:php:php:5.5.0:beta4:*:*:*:*:*:*","cpe:2.3:a:php:php:5.5.0:rc1:*:*:*:*:*:*","cpe:2.3:a:php:php:5.5.0:rc2:*:*:*:*:*:*","cpe:2.3:a:php:php:5.5.10:*:*:*:*:*:*:*","cpe:2.3:a:php:php:5.5.11:*:*:*:*:*:*:*","cpe:2.3:a:php:php:5.5.12:*:*:*:*:*:*:*","cpe:2.3:a:php:php:5.5.13:*:*:*:*:*:*:*","cpe:2.3:a:php:php:5.5.14:*:*:*:*:*:*:*","cpe:2.3:a:php:php:5.5.18:*:*:*:*:*:*:*","cpe:2.3:a:php:php:5.5.19:*:*:*:*:*:*:*","cpe:2.3:a:php:php:5.5.1:*:*:*:*:*:*:*","cpe:2.3:a:php:php:5.5.20:*:*:*:*:*:*:*","cpe:2.3:a:php:php:5.5.21:*:*:*:*:*:*:*","cpe:2.3:a:php:php:5.5.22:*:*:*:*:*:*:*","cpe:2.3:a:php:php:5.5.23:*:*:*:*:*:*:*","cpe:2.3:a:php:php:5.5.24:*:*:*:*:*:*:*","cpe:2.3:a:php:php:5.5.2:*:*:*:*:*:*:*","cpe:2.3:a:php:php:5.5.3:*:*:*:*:*:*:*","cpe:2.3:a:php:php:5.5.4:*:*:*:*:*:*:*","cpe:2.3:a:php:php:5.5.5:*:*:*:*:*:*:*","cpe:2.3:a:php:php:5.5.6:*:*:*:*:*:*:*","cpe:2.3:a:php:php:5.5.7:*:*:*:*:*:*:*","cpe:2.3:a:php:php:5.5.8:*:*:*:*:*:*:*","cpe:2.3:a:php:php:5.5.9:*:*:*:*:*:*:*","cpe:2.3:a:php:php:5.6.0:alpha1:*:*:*:*:*:*","cpe:2.3:a:php:php:5.6.0:alpha2:*:*:*:*:*:*","cpe:2.3:a:php:php:5.6.0:alpha3:*:*:*:*:*:*","cpe:2.3:a:php:php:5.6.0:alpha4:*:*:*:*:*:*","cpe:2.3:a:php:php:5.6.0:alpha5:*:*:*:*:*:*","cpe:2.3:a:php:php:5.6.0:beta1:*:*:*:*:*:*","cpe:2.3:a:php:php:5.6.0:beta2:*:*:*:*:*:*","cpe:2.3:a:php:php:5.6.0:beta3:*:*:*:*:*:*","cpe:2.3:a:php:php:5.6.0:beta4:*:*:*:*:*:*","cpe:2.3:a:php:php:5.6.2:*:*:*:*:*:*:*","cpe:2.3:a:php:php:5.6.3:*:*:*:*:*:*:*","cpe:2.3:a:php:php:5.6.4:*:*:*:*:*:*:*","cpe:2.3:a:php:php:5.6.5:*:*:*:*:*:*:*","cpe:2.3:a:php:php:5.6.6:*:*:*:*:*:*:*","cpe:2.3:a:php:php:5.6.7:*:*:*:*:*:*:*","cpe:2.3:a:php:php:5.6.8:*:*:*:*:*:*:*","cpe:2.3:o:apple:mac_os_x:*:*:*:*:*:*:*:*","cpe:2.3:o:redhat:enterprise_linux:6.0:*:*:*:*:*:*:*","cpe:2.3:o:redhat:enterprise_linux:7.0:*:*:*:*:*:*:*","cpe:2.3:o:redhat:enterprise_linux_desktop:7.0:*:*:*:*:*:*:*","cpe:2.3:o:redhat:enterprise_linux_hpc_node:7.0:*:*:*:*:*:*:*","cpe:2.3:o:redhat:enterprise_linux_hpc_node_eus:7.1:*:*:*:*:*:*:*","cpe:2.3:o:redhat:enterprise_linux_server:7.0:*:*:*:*:*:*:*","cpe:2.3:o:redhat:enterprise_linux_server_eus:7.1:*:*:*:*:*:*:*","cpe:2.3:o:redhat:enterprise_linux_workstation:7.0:*:*:*:*:*:*:*"],"published_at":"2015-06-09T18:00:00.000Z","modified_at":"2026-06-17T00:26:38.680Z","promoted_at":null,"attribution":[{"source":"CVE Program","text":"CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation.","url":"https://www.cve.org/Legal/TermsOfUse"},{"source":"NVD","text":"This product uses data from the NVD API but is not endorsed or certified by the NVD.","url":"https://nvd.nist.gov/vuln/detail/CVE-2015-4022"}],"links":{"html":"https://flawdb.com/CVE-2015-4022","markdown":"https://flawdb.com/CVE-2015-4022.md","json":"https://flawdb.com/api/v1/entries/CVE-2015-4022"}}