CVE-2015-4643 in the critical feed json
Integer overflow in the ftp_genlist function in ext/ftp/ftp.c in PHP before 5.4.42, 5.5.x before 5.5.26, and 5.6.x before 5.6.10 allows rem…
published 2016-05-16 10 y ago modified 2026-06-17 4 mo ago also EUVD-2015-4662
- cvss
- 9.8
- version 3.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 15.4%
- EPSS 15.4% chance of exploitation in 30 days, percentile 96%
- public exploits
- 0
- none known
Summary
Integer overflow in the ftp_genlist function in ext/ftp/ftp.c in PHP before 5.4.42, 5.5.x before 5.5.26, and 5.6.x before 5.6.10 allows remote FTP servers to execute arbitrary code via a long reply to a LIST command, leading to a heap-based buffer overflow. NOTE: this vulnerability exists because of an incomplete fix for CVE-2015-4022.
Patch / fix
- php php 5.4.42, 5.5.26, 5.6.10
- php5 Ubuntu 14.04 LTS 5.5.9+dfsg-1ubuntu4.11
ubuntu advisories UBUNTU-CVE-2015-4643
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- php RHEL 6 5.3.3-46.el6_6
- php-gd RHEL 6 5.3.3-46.el6_6
- php-cli RHEL 6 5.3.3-46.el6_6
- php-dba RHEL 6 5.3.3-46.el6_6
- php-fpm RHEL 6 5.3.3-46.el6_6
- php-pdo RHEL 6 5.3.3-46.el6_6
- php-xml RHEL 6 5.3.3-46.el6_6
- php-zts RHEL 6 5.3.3-46.el6_6
red hat advisories RHSA-2015:1218RHSA-2015:1186RHSA-2015:1135RHSA-2015:1187RHSA-2015:1219
- php5 SLE Software Development Kit 12, SLE Module for Web and Scripting 12 5.5.14-30.1
- php53 SLES 11 SP2-LTSS 5.3.17-47.1
suse advisories SUSE-SU-2016:1638-1SUSE-SU-2015:1253-2SUSE-SU-2015:1253-1
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2015-4643 updated cvss 5.1
php: integer overflow in ftp_genlist() resulting in heap overflow (improved fix for CVE-2015-4022)
-
Red Hat Enterprise Linux 5 php, php53affected: no fix planned “Will not fix”
-
Red Hat Enterprise Linux Client Optional (v. 7) php 5.4.16-36.el7_1, php-gd 5.4.16-36.el7_1, php-cli 5.4.16-36.el7_1, php-dba 5.4.16-36.el7_1, php-fpm 5.4.16-36.el7_1, php-pdo 5.4.16-36.el7_1, +18 more Red Hat Enterprise Linux ComputeNode Optional (v. 7) php 5.4.16-36.el7_1, php-gd 5.4.16-36.el7_1, php-cli 5.4.16-36.el7_1, php-dba 5.4.16-36.el7_1, php-fpm 5.4.16-36.el7_1, php-pdo 5.4.16-36.el7_1, +18 morefixed: vendor fix RHSA-2015:1135
-
Red Hat Enterprise Linux Desktop Optional (v. 6) php 5.3.3-46.el6_6, php-gd 5.3.3-46.el6_6, php-cli 5.3.3-46.el6_6, php-dba 5.3.3-46.el6_6, php-fpm 5.3.3-46.el6_6, php-pdo 5.3.3-46.el6_6, +20 more Red Hat Enterprise Linux HPC Node (v. 6) php 5.3.3-46.el6_6, php-cli 5.3.3-46.el6_6, php-common 5.3.3-46.el6_6 Red Hat Enterprise Linux HPC Node Optional (v. 6) php 5.3.3-46.el6_6, php-gd 5.3.3-46.el6_6, php-dba 5.3.3-46.el6_6, php-fpm 5.3.3-46.el6_6, php-pdo 5.3.3-46.el6_6, php-xml 5.3.3-46.el6_6, +18 more Red Hat Enterprise Linux Server (v. 6) php 5.3.3-46.el6_6, php-gd 5.3.3-46.el6_6, php-cli 5.3.3-46.el6_6, php-pdo 5.3.3-46.el6_6, php-xml 5.3.3-46.el6_6, php-ldap 5.3.3-46.el6_6, +6 morefixed: vendor fix RHSA-2015:1218
-
Red Hat Enterprise Linux Server (v. 7) php 5.4.16-36.el7_1, php 5.4.16-36.ael7b_1, php-gd 5.4.16-36.el7_1, php-cli 5.4.16-36.el7_1, php-pdo 5.4.16-36.el7_1, php-xml 5.4.16-36.el7_1, +22 morefixed: vendor fix RHSA-2015:1135
-
Red Hat Enterprise Linux Server Optional (v. 6) php-dba 5.3.3-46.el6_6, php-fpm 5.3.3-46.el6_6, php-zts 5.3.3-46.el6_6, php-imap 5.3.3-46.el6_6, php-intl 5.3.3-46.el6_6, php-snmp 5.3.3-46.el6_6, +8 morefixed: vendor fix RHSA-2015:1218
-
Red Hat Enterprise Linux Server Optional (v. 7) php-dba 5.4.16-36.el7_1, php-fpm 5.4.16-36.el7_1, php-intl 5.4.16-36.el7_1, php-snmp 5.4.16-36.el7_1, php-dba 5.4.16-36.ael7b_1, php-fpm 5.4.16-36.ael7b_1, +14 morefixed: vendor fix RHSA-2015:1135
-
Red Hat Enterprise Linux Workstation (v. 6) php 5.3.3-46.el6_6, php-gd 5.3.3-46.el6_6, php-cli 5.3.3-46.el6_6, php-pdo 5.3.3-46.el6_6, php-xml 5.3.3-46.el6_6, php-ldap 5.3.3-46.el6_6, +6 morefixed: vendor fix RHSA-2015:1218
-
Red Hat Enterprise Linux Workstation (v. 7) php 5.4.16-36.el7_1, php-gd 5.4.16-36.el7_1, php-cli 5.4.16-36.el7_1, php-pdo 5.4.16-36.el7_1, php-xml 5.4.16-36.el7_1, php-ldap 5.4.16-36.el7_1, +8 morefixed: vendor fix RHSA-2015:1135
show 3 moreshow fewer
-
Red Hat Enterprise Linux Workstation Optional (v. 6) php-dba 5.3.3-46.el6_6, php-fpm 5.3.3-46.el6_6, php-zts 5.3.3-46.el6_6, php-imap 5.3.3-46.el6_6, php-intl 5.3.3-46.el6_6, php-snmp 5.3.3-46.el6_6, +8 morefixed: vendor fix RHSA-2015:1218
-
Red Hat Enterprise Linux Workstation Optional (v. 7) php-dba 5.4.16-36.el7_1, php-fpm 5.4.16-36.el7_1, php-intl 5.4.16-36.el7_1, php-snmp 5.4.16-36.el7_1, php-bcmath 5.4.16-36.el7_1, php-pspell 5.4.16-36.el7_1, +4 morefixed: vendor fix RHSA-2015:1135
-
Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 6) php54-php 5.4.40-3.el6, php55-php 5.5.21-4.el6, rh-php56-php 5.6.5-7.el6, php54-php-gd 5.4.40-3.el6, php55-php-gd 5.5.21-4.el6, php54-php-cli 5.4.40-3.el6, +72 more Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7) php54-php 5.4.40-3.el7, php55-php 5.5.21-4.el7, rh-php56-php 5.6.5-7.el7, php54-php-gd 5.4.40-3.el7, php55-php-gd 5.5.21-4.el7, php54-php-cli 5.4.40-3.el7, +66 more Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 6.5) php54-php 5.4.40-3.el6, php55-php 5.5.21-4.el6, rh-php56-php 5.6.5-7.el6, php54-php-gd 5.4.40-3.el6, php55-php-gd 5.5.21-4.el6, php54-php-cli 5.4.40-3.el6, +72 more Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 6.6) php54-php 5.4.40-3.el6, php55-php 5.5.21-4.el6, rh-php56-php 5.6.5-7.el6, php54-php-gd 5.4.40-3.el6, php55-php-gd 5.5.21-4.el6, php54-php-cli 5.4.40-3.el6, +72 more Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.1) php54-php 5.4.40-3.el7, php55-php 5.5.21-4.el7, rh-php56-php 5.6.5-7.el7, php54-php-gd 5.4.40-3.el7, php55-php-gd 5.5.21-4.el7, php54-php-cli 5.4.40-3.el7, +66 more Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 6) php54-php 5.4.40-3.el6, php55-php 5.5.21-4.el6, rh-php56-php 5.6.5-7.el6, php54-php-gd 5.4.40-3.el6, php55-php-gd 5.5.21-4.el6, php54-php-cli 5.4.40-3.el6, +72 morefixed: vendor fix RHSA-2015:1219
+1 more productsfewer
Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7) php54-php 5.4.40-3.el7, php55-php 5.5.21-4.el7, rh-php56-php 5.6.5-7.el7, php54-php-gd 5.4.40-3.el7, php55-php-gd 5.5.21-4.el7, php54-php-cli 5.4.40-3.el7, +66 more
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
15.41% chance of exploitation in the next 30 days, higher than 96% of all scored CVEs (FIRST EPSS, 2026-11-09).
Exploits and checks
- bugs.php.net https://bugs.php.net/bug.php?id=69545 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.0 | 9.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Classification
- Weakness
-
- CWE-119 Improper Restriction of Operations within the Bounds of a Memory Buffer
- Technology feeds
References
-
openwall.com
/lists/oss-security/2015/06/18/6
mailing-list, patch, third-party-advisory
-
bugs.php.net
/bug.php?id=69545
exploit, issue-tracking, vendor-advisory
-
rhn.redhat.com
/errata/RHSA-2015-1187.html
vendor-advisory, third-party-advisory
-
rhn.redhat.com
/errata/RHSA-2015-1186.html
vendor-advisory, third-party-advisory
-
debian.org
/security/2015/dsa-3344
vendor-advisory, third-party-advisory
-
rhn.redhat.com
/errata/RHSA-2015-1135.html
vendor-advisory, third-party-advisory
-
security.gentoo.org
/glsa/201606-10
vendor-advisory, third-party-advisory
-
rhn.redhat.com
/errata/RHSA-2015-1218.html
vendor-advisory, third-party-advisory
-
php.net
/ChangeLog-5.php
release-notes, vendor-advisory
-
securitytracker.com
/id/1032709
vdb-entry, third-party-advisory
-
oracle.com
/technetwork/topics/security/linuxbulletinjan2016-2867209.html
third-party-advisory
-
securityfocus.com
/bid/75291
vdb-entry, third-party-advisory
- git.php.net /?p=php-src.git%3Ba=commit%3Bh=0765623d6991b62ffcd93ddb6be8a5203a2fa7e2
Sources
- CVE List CVE-2015-4643
- NVD CVE-2015-4643
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.