CVE-2015-4643
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.
What to do
Likely to be exploited: EPSS gives a 15% chance of exploitation in the next 30 days. Treat it as urgent if you run an affected version.
Fixed builds are available from Red Hat, Ubuntu: see the table below for the fixed version per release.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 14.04 | php5 | Fixed | 5.5.9+dfsg-1ubuntu4.11 | UBUNTU-CVE-2015-4643 |
| Red Hat Enterprise Linux 7 | php | Fixed | 0:5.4.16-36.el7_1 | RHSA-2015:1135 |
| Red Hat Enterprise Linux 7 | php-bcmath | Fixed | 0:5.4.16-36.el7_1 | RHSA-2015:1135 |
| Red Hat Enterprise Linux 7 | php-cli | Fixed | 0:5.4.16-36.el7_1 | RHSA-2015:1135 |
| Red Hat Enterprise Linux 7 | php-common | Fixed | 0:5.4.16-36.el7_1 | RHSA-2015:1135 |
| Red Hat Enterprise Linux 7 | php-dba | Fixed | 0:5.4.16-36.ael7b_1 | RHSA-2015:1135 |
| Red Hat Enterprise Linux 7 | php-devel | Fixed | 0:5.4.16-36.ael7b_1 | RHSA-2015:1135 |
| Red Hat Enterprise Linux 7 | php-embedded | Fixed | 0:5.4.16-36.el7_1 | RHSA-2015:1135 |
| Red Hat Enterprise Linux 7 | php-enchant | Fixed | 0:5.4.16-36.el7_1 | RHSA-2015:1135 |
| Red Hat Enterprise Linux 7 | php-fpm | Fixed | 0:5.4.16-36.el7_1 | RHSA-2015:1135 |
| Red Hat Enterprise Linux 7 | php-gd | Fixed | 0:5.4.16-36.el7_1 | RHSA-2015:1135 |
| Red Hat Enterprise Linux 7 | php-intl | Fixed | 0:5.4.16-36.el7_1 | RHSA-2015:1135 |
| Red Hat Enterprise Linux 7 | php-ldap | Fixed | 0:5.4.16-36.el7_1 | RHSA-2015:1135 |
| Red Hat Enterprise Linux 7 | php-mbstring | Fixed | 0:5.4.16-36.el7_1 | RHSA-2015:1135 |
| Red Hat Enterprise Linux 7 | php-mysql | Fixed | 0:5.4.16-36.el7_1 | RHSA-2015:1135 |
| Red Hat Enterprise Linux 7 | php-mysqlnd | Fixed | 0:5.4.16-36.el7_1 | RHSA-2015:1135 |
| Red Hat Enterprise Linux 7 | php-odbc | Fixed | 0:5.4.16-36.el7_1 | RHSA-2015:1135 |
| Red Hat Enterprise Linux 7 | php-pdo | Fixed | 0:5.4.16-36.ael7b_1 | RHSA-2015:1135 |
| Red Hat Enterprise Linux 7 | php-pgsql | Fixed | 0:5.4.16-36.el7_1 | RHSA-2015:1135 |
| Red Hat Enterprise Linux 7 | php-process | Fixed | 0:5.4.16-36.el7_1 | RHSA-2015:1135 |
| Red Hat Enterprise Linux 7 | php-pspell | Fixed | 0:5.4.16-36.el7_1 | RHSA-2015:1135 |
| Red Hat Enterprise Linux 7 | php-recode | Fixed | 0:5.4.16-36.ael7b_1 | RHSA-2015:1135 |
| Red Hat Enterprise Linux 7 | php-snmp | Fixed | 0:5.4.16-36.el7_1 | RHSA-2015:1135 |
| Red Hat Enterprise Linux 7 | php-soap | Fixed | 0:5.4.16-36.ael7b_1 | RHSA-2015:1135 |
| Red Hat Enterprise Linux 7 | php-xml | Fixed | 0:5.4.16-36.el7_1 | RHSA-2015:1135 |
| Red Hat Enterprise Linux 7 | php-xmlrpc | Fixed | 0:5.4.16-36.ael7b_1 | RHSA-2015:1135 |
| Red Hat Enterprise Linux 6 | php | Fixed | 0:5.3.3-46.el6_6 | RHSA-2015:1218 |
| Red Hat Enterprise Linux 6 | php-bcmath | Fixed | 0:5.3.3-46.el6_6 | RHSA-2015:1218 |
| Red Hat Enterprise Linux 6 | php-cli | Fixed | 0:5.3.3-46.el6_6 | RHSA-2015:1218 |
| Red Hat Enterprise Linux 6 | php-common | Fixed | 0:5.3.3-46.el6_6 | RHSA-2015:1218 |
| Red Hat Enterprise Linux 6 | php-dba | Fixed | 0:5.3.3-46.el6_6 | RHSA-2015:1218 |
| Red Hat Enterprise Linux 6 | php-devel | Fixed | 0:5.3.3-46.el6_6 | RHSA-2015:1218 |
| Red Hat Enterprise Linux 6 | php-embedded | Fixed | 0:5.3.3-46.el6_6 | RHSA-2015:1218 |
| Red Hat Enterprise Linux 6 | php-enchant | Fixed | 0:5.3.3-46.el6_6 | RHSA-2015:1218 |
| Red Hat Enterprise Linux 6 | php-fpm | Fixed | 0:5.3.3-46.el6_6 | RHSA-2015:1218 |
| Red Hat Enterprise Linux 6 | php-gd | Fixed | 0:5.3.3-46.el6_6 | RHSA-2015:1218 |
| Red Hat Enterprise Linux 6 | php-imap | Fixed | 0:5.3.3-46.el6_6 | RHSA-2015:1218 |
| Red Hat Enterprise Linux 6 | php-intl | Fixed | 0:5.3.3-46.el6_6 | RHSA-2015:1218 |
| Red Hat Enterprise Linux 6 | php-ldap | Fixed | 0:5.3.3-46.el6_6 | RHSA-2015:1218 |
| Red Hat Enterprise Linux 6 | php-mbstring | Fixed | 0:5.3.3-46.el6_6 | RHSA-2015:1218 |
| Red Hat Enterprise Linux 6 | php-mysql | Fixed | 0:5.3.3-46.el6_6 | RHSA-2015:1218 |
| Red Hat Enterprise Linux 6 | php-odbc | Fixed | 0:5.3.3-46.el6_6 | RHSA-2015:1218 |
| Red Hat Enterprise Linux 6 | php-pdo | Fixed | 0:5.3.3-46.el6_6 | RHSA-2015:1218 |
| Red Hat Enterprise Linux 6 | php-pgsql | Fixed | 0:5.3.3-46.el6_6 | RHSA-2015:1218 |
| Red Hat Enterprise Linux 6 | php-process | Fixed | 0:5.3.3-46.el6_6 | RHSA-2015:1218 |
| Red Hat Enterprise Linux 6 | php-pspell | Fixed | 0:5.3.3-46.el6_6 | RHSA-2015:1218 |
| Red Hat Enterprise Linux 6 | php-recode | Fixed | 0:5.3.3-46.el6_6 | RHSA-2015:1218 |
| Red Hat Enterprise Linux 6 | php-snmp | Fixed | 0:5.3.3-46.el6_6 | RHSA-2015:1218 |
| Red Hat Enterprise Linux 6 | php-soap | Fixed | 0:5.3.3-46.el6_6 | RHSA-2015:1218 |
| Red Hat Enterprise Linux 6 | php-tidy | Fixed | 0:5.3.3-46.el6_6 | RHSA-2015:1218 |
| Red Hat Enterprise Linux 6 | php-xml | Fixed | 0:5.3.3-46.el6_6 | RHSA-2015:1218 |
| Red Hat Enterprise Linux 6 | php-xmlrpc | Fixed | 0:5.3.3-46.el6_6 | RHSA-2015:1218 |
| Red Hat Enterprise Linux 6 | php-zts | Fixed | 0:5.3.3-46.el6_6 | RHSA-2015:1218 |
| Red Hat Enterprise Linux 5 | php | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 5 | php53 | Will not fix Will not fix |
What the vendor says
As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
Vendor advisories:
- http://rhn.redhat.com/errata/RHSA-2015-1187.html (vendor-advisory)
- http://rhn.redhat.com/errata/RHSA-2015-1186.html (vendor-advisory)
- http://www.debian.org/security/2015/dsa-3344 (vendor-advisory)
- http://rhn.redhat.com/errata/RHSA-2015-1135.html (vendor-advisory)
- https://security.gentoo.org/glsa/201606-10 (vendor-advisory)
- http://rhn.redhat.com/errata/RHSA-2015-1218.html (vendor-advisory)
References
- http://rhn.redhat.com/errata/RHSA-2015-1187.html
- https://bugs.php.net/bug.php?id=69545
- http://www.securitytracker.com/id/1032709
- http://rhn.redhat.com/errata/RHSA-2015-1186.html
- http://www.debian.org/security/2015/dsa-3344
- http://www.oracle.com/technetwork/topics/security/linuxbulletinjan2016-2867209.html
- http://openwall.com/lists/oss-security/2015/06/18/6
- http://php.net/ChangeLog-5.php
- http://www.securityfocus.com/bid/75291
- http://rhn.redhat.com/errata/RHSA-2015-1135.html
- https://security.gentoo.org/glsa/201606-10
- http://rhn.redhat.com/errata/RHSA-2015-1218.html
- http://git.php.net/?p=php-src.git%3Ba=commit%3Bh=0765623d6991b62ffcd93ddb6be8a5203a2fa7e2
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.