Integer overflow in the ftp_genlist function in ext/ftp/ftp.c in PHP before 5.4.42, 5.5.x…
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Partial Red Hat: 20 fixed, 1 without a fix
Attack profile from CVSS 3.0 · NVD. Fix status from CNA and Red Hat. Impact type from CWE-119 and the CVSS impact.
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | — | all versions | — | No fix listed | CNA |
- — Vendor— Affected all versions Fixed in — No fix listed CNA
CPE configurations NVD · 25
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:php:php:*:*:*:*:*:*:*:* | before 5.4.42; 5.5.0 to before 5.5.26; 5.6.0 to before 5.6.10 | Vulnerable | PHP |
| cpe:2.3:o:debian:debian_linux:7.0:*:*:*:*:*:*:* | 7.0 | Vulnerable | Debian |
| cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:* | 8.0 | Vulnerable | Debian |
| cpe:2.3:o:redhat:enterprise_linux_desktop:6.0:*:*:*:*:*:*:* | 6.0 | Vulnerable | Red Hat |
| cpe:2.3:o:redhat:enterprise_linux_desktop:7.0:*:*:*:*:*:*:* | 7.0 | Vulnerable | Red Hat |
| cpe:2.3:o:redhat:enterprise_linux_server:6.0:*:*:*:*:*:*:* | 6.0 | Vulnerable | Red Hat |
| cpe:2.3:o:redhat:enterprise_linux_server:7.0:*:*:*:*:*:*:* | 7.0 | Vulnerable | Red Hat |
| cpe:2.3:o:redhat:enterprise_linux_server_aus:6.6:*:*:*:*:*:*:* | 6.6 | Vulnerable | Red Hat |
| cpe:2.3:o:redhat:enterprise_linux_server_aus:7.3:*:*:*:*:*:*:* | 7.3 | Vulnerable | Red Hat |
| cpe:2.3:o:redhat:enterprise_linux_server_aus:7.4:*:*:*:*:*:*:* | 7.4 | Vulnerable | Red Hat |
- cpe:2.3:a:php:php:*:*:*:*:*:*:*:* Versions before 5.4.42; 5.5.0 to before 5.5.26; 5.6.0 to before 5.6.10 Vulnerable ·PHP
- cpe:2.3:o:debian:debian_linux:7.0:*:*:*:*:*:*:* Versions 7.0 Vulnerable ·Debian
- cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:* Versions 8.0 Vulnerable ·Debian
- cpe:2.3:o:redhat:enterprise_linux_desktop:6.0:*:*:*:*:*:*:* Versions 6.0 Vulnerable ·Red Hat
- cpe:2.3:o:redhat:enterprise_linux_desktop:7.0:*:*:*:*:*:*:* Versions 7.0 Vulnerable ·Red Hat
- cpe:2.3:o:redhat:enterprise_linux_server:6.0:*:*:*:*:*:*:* Versions 6.0 Vulnerable ·Red Hat
- cpe:2.3:o:redhat:enterprise_linux_server:7.0:*:*:*:*:*:*:* Versions 7.0 Vulnerable ·Red Hat
- cpe:2.3:o:redhat:enterprise_linux_server_aus:6.6:*:*:*:*:*:*:* Versions 6.6 Vulnerable ·Red Hat
- cpe:2.3:o:redhat:enterprise_linux_server_aus:7.3:*:*:*:*:*:*:* Versions 7.3 Vulnerable ·Red Hat
- cpe:2.3:o:redhat:enterprise_linux_server_aus:7.4:*:*:*:*:*:*:* Versions 7.4 Vulnerable ·Red Hat
Show 15 more CPE
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:o:redhat:enterprise_linux_server_aus:7.6:*:*:*:*:*:*:* | 7.6 | Vulnerable | Red Hat |
| cpe:2.3:o:redhat:enterprise_linux_server_eus:6.6:*:*:*:*:*:*:* | 6.6 | Vulnerable | Red Hat |
| cpe:2.3:o:redhat:enterprise_linux_server_eus:7.1:*:*:*:*:*:*:* | 7.1 | Vulnerable | Red Hat |
| cpe:2.3:o:redhat:enterprise_linux_server_eus:7.2:*:*:*:*:*:*:* | 7.2 | Vulnerable | Red Hat |
| cpe:2.3:o:redhat:enterprise_linux_server_eus:7.3:*:*:*:*:*:*:* | 7.3 | Vulnerable | Red Hat |
| cpe:2.3:o:redhat:enterprise_linux_server_eus:7.4:*:*:*:*:*:*:* | 7.4 | Vulnerable | Red Hat |
| cpe:2.3:o:redhat:enterprise_linux_server_eus:7.5:*:*:*:*:*:*:* | 7.5 | Vulnerable | Red Hat |
| cpe:2.3:o:redhat:enterprise_linux_server_eus:7.6:*:*:*:*:*:*:* | 7.6 | Vulnerable | Red Hat |
| cpe:2.3:o:redhat:enterprise_linux_server_tus:6.6:*:*:*:*:*:*:* | 6.6 | Vulnerable | Red Hat |
| cpe:2.3:o:redhat:enterprise_linux_server_tus:7.3:*:*:*:*:*:*:* | 7.3 | Vulnerable | Red Hat |
| cpe:2.3:o:redhat:enterprise_linux_server_tus:7.6:*:*:*:*:*:*:* | 7.6 | Vulnerable | Red Hat |
| cpe:2.3:o:redhat:enterprise_linux_workstation:6.0:*:*:*:*:*:*:* | 6.0 | Vulnerable | Red Hat |
| cpe:2.3:o:redhat:enterprise_linux_workstation:7.0:*:*:*:*:*:*:* | 7.0 | Vulnerable | Red Hat |
| cpe:2.3:o:oracle:linux:6:*:*:*:*:*:*:* | 6 | Vulnerable | Oracle |
| cpe:2.3:o:oracle:linux:7:0:*:*:*:*:*:* | 7 0 | Vulnerable | Oracle |
- cpe:2.3:o:redhat:enterprise_linux_server_aus:7.6:*:*:*:*:*:*:* Versions 7.6 Vulnerable ·Red Hat
- cpe:2.3:o:redhat:enterprise_linux_server_eus:6.6:*:*:*:*:*:*:* Versions 6.6 Vulnerable ·Red Hat
- cpe:2.3:o:redhat:enterprise_linux_server_eus:7.1:*:*:*:*:*:*:* Versions 7.1 Vulnerable ·Red Hat
- cpe:2.3:o:redhat:enterprise_linux_server_eus:7.2:*:*:*:*:*:*:* Versions 7.2 Vulnerable ·Red Hat
- cpe:2.3:o:redhat:enterprise_linux_server_eus:7.3:*:*:*:*:*:*:* Versions 7.3 Vulnerable ·Red Hat
- cpe:2.3:o:redhat:enterprise_linux_server_eus:7.4:*:*:*:*:*:*:* Versions 7.4 Vulnerable ·Red Hat
- cpe:2.3:o:redhat:enterprise_linux_server_eus:7.5:*:*:*:*:*:*:* Versions 7.5 Vulnerable ·Red Hat
- cpe:2.3:o:redhat:enterprise_linux_server_eus:7.6:*:*:*:*:*:*:* Versions 7.6 Vulnerable ·Red Hat
- cpe:2.3:o:redhat:enterprise_linux_server_tus:6.6:*:*:*:*:*:*:* Versions 6.6 Vulnerable ·Red Hat
- cpe:2.3:o:redhat:enterprise_linux_server_tus:7.3:*:*:*:*:*:*:* Versions 7.3 Vulnerable ·Red Hat
- cpe:2.3:o:redhat:enterprise_linux_server_tus:7.6:*:*:*:*:*:*:* Versions 7.6 Vulnerable ·Red Hat
- cpe:2.3:o:redhat:enterprise_linux_workstation:6.0:*:*:*:*:*:*:* Versions 6.0 Vulnerable ·Red Hat
- cpe:2.3:o:redhat:enterprise_linux_workstation:7.0:*:*:*:*:*:*:* Versions 7.0 Vulnerable ·Red Hat
- cpe:2.3:o:oracle:linux:6:*:*:*:*:*:*:* Versions 6 Vulnerable ·Oracle
- cpe:2.3:o:oracle:linux:7:0:*:*:*:*:*:* Versions 7 0 Vulnerable ·Oracle
Remediation
Red Hat 5 advisories
- RHSA-2015:1219 Released 2015-07-09 · Red Hat rating Moderatephp54-php security update
- Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 6) php54-php-5.4.40-3.el6, php54-php-bcmath-5.4.40-3.el6, php54-php-cli-5.4.40-3.el6 +22
- Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7) php54-php-5.4.40-3.el7, php54-php-bcmath-5.4.40-3.el7, php54-php-cli-5.4.40-3.el7 +20
- Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 6.5) php54-php-5.4.40-3.el6, php54-php-bcmath-5.4.40-3.el6, php54-php-cli-5.4.40-3.el6 +22
- Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 6.6) php54-php-5.4.40-3.el6, php54-php-bcmath-5.4.40-3.el6, php54-php-cli-5.4.40-3.el6 +22
- Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.1) php54-php-5.4.40-3.el7, php54-php-bcmath-5.4.40-3.el7, php54-php-cli-5.4.40-3.el7 +20
- Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 6) php54-php-5.4.40-3.el6, php54-php-bcmath-5.4.40-3.el6, php54-php-cli-5.4.40-3.el6 +22
- Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7) php54-php-5.4.40-3.el7, php54-php-bcmath-5.4.40-3.el7, php54-php-cli-5.4.40-3.el7 +20
- RHSA-2015:1218 Released 2015-07-09 · Red Hat rating Moderatephp security update
- Red Hat Enterprise Linux Desktop Optional (v. 6) php-5.3.3-46.el6_6, php-bcmath-5.3.3-46.el6_6, php-cli-5.3.3-46.el6_6 +24
- 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-bcmath-5.3.3-46.el6_6, php-dba-5.3.3-46.el6_6 +22
- Red Hat Enterprise Linux Server (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 +9
- Red Hat Enterprise Linux Server Optional (v. 6) php-bcmath-5.3.3-46.el6_6, php-dba-5.3.3-46.el6_6, php-devel-5.3.3-46.el6_6 +12
- Red Hat Enterprise Linux Workstation (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 +9
- Red Hat Enterprise Linux Workstation Optional (v. 6) php-bcmath-5.3.3-46.el6_6, php-dba-5.3.3-46.el6_6, php-devel-5.3.3-46.el6_6 +12
- RHSA-2015:1187 Released 2015-06-25 · Red Hat rating Importantrh-php56-php security update
- Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 6) rh-php56-php-5.6.5-7.el6, rh-php56-php-bcmath-5.6.5-7.el6, rh-php56-php-cli-5.6.5-7.el6 +26
- Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7) rh-php56-php-5.6.5-7.el7, rh-php56-php-bcmath-5.6.5-7.el7, rh-php56-php-cli-5.6.5-7.el7 +24
- Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 6.5) rh-php56-php-5.6.5-7.el6, rh-php56-php-bcmath-5.6.5-7.el6, rh-php56-php-cli-5.6.5-7.el6 +26
- Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 6.6) rh-php56-php-5.6.5-7.el6, rh-php56-php-bcmath-5.6.5-7.el6, rh-php56-php-cli-5.6.5-7.el6 +26
- Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.1) rh-php56-php-5.6.5-7.el7, rh-php56-php-bcmath-5.6.5-7.el7, rh-php56-php-cli-5.6.5-7.el7 +24
- Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 6) rh-php56-php-5.6.5-7.el6, rh-php56-php-bcmath-5.6.5-7.el6, rh-php56-php-cli-5.6.5-7.el6 +26
- Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7) rh-php56-php-5.6.5-7.el7, rh-php56-php-bcmath-5.6.5-7.el7, rh-php56-php-cli-5.6.5-7.el7 +24
Show 2 more Red Hat advisories
- RHSA-2015:1186 Released 2015-06-25 · Red Hat rating Importantphp55-php security update
- Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 6) php55-php-5.5.21-4.el6, php55-php-bcmath-5.5.21-4.el6, php55-php-cli-5.5.21-4.el6 +24
- Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7) php55-php-5.5.21-4.el7, php55-php-bcmath-5.5.21-4.el7, php55-php-cli-5.5.21-4.el7 +22
- Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 6.5) php55-php-5.5.21-4.el6, php55-php-bcmath-5.5.21-4.el6, php55-php-cli-5.5.21-4.el6 +24
- Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 6.6) php55-php-5.5.21-4.el6, php55-php-bcmath-5.5.21-4.el6, php55-php-cli-5.5.21-4.el6 +24
- Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.1) php55-php-5.5.21-4.el7, php55-php-bcmath-5.5.21-4.el7, php55-php-cli-5.5.21-4.el7 +22
- Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 6) php55-php-5.5.21-4.el6, php55-php-bcmath-5.5.21-4.el6, php55-php-cli-5.5.21-4.el6 +24
- Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7) php55-php-5.5.21-4.el7, php55-php-bcmath-5.5.21-4.el7, php55-php-cli-5.5.21-4.el7 +22
- RHSA-2015:1135 Released 2015-06-23 · Red Hat rating Importantphp security and bug fix update
- Red Hat Enterprise Linux Client Optional (v. 7) php-5.4.16-36.el7_1, php-bcmath-5.4.16-36.el7_1, php-cli-5.4.16-36.el7_1 +22
- Red Hat Enterprise Linux ComputeNode Optional (v. 7) php-5.4.16-36.el7_1, php-bcmath-5.4.16-36.el7_1, php-cli-5.4.16-36.el7_1 +22
- Red Hat Enterprise Linux Server (v. 7) php-5.4.16-36.ael7b_1, php-5.4.16-36.el7_1, php-cli-5.4.16-36.ael7b_1 +25
- Red Hat Enterprise Linux Server Optional (v. 7) php-bcmath-5.4.16-36.ael7b_1, php-bcmath-5.4.16-36.el7_1, php-dba-5.4.16-36.ael7b_1 +19
- Red Hat Enterprise Linux Workstation (v. 7) php-5.4.16-36.el7_1, php-cli-5.4.16-36.el7_1, php-common-5.4.16-36.el7_1 +11
- Red Hat Enterprise Linux Workstation Optional (v. 7) php-bcmath-5.4.16-36.el7_1, php-dba-5.4.16-36.el7_1, php-devel-5.4.16-36.el7_1 +8
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux 5 | Affected | No fix planned: Will not fix |
| Red Hat Enterprise Linux Client Optional (v. 7) | Fixed | RHSA-2015:1135 |
| Red Hat Enterprise Linux ComputeNode Optional (v. 7) | Fixed | RHSA-2015:1135 |
| Red Hat Enterprise Linux Desktop Optional (v. 6) | Fixed | RHSA-2015:1218 |
| Red Hat Enterprise Linux HPC Node (v. 6) | Fixed | RHSA-2015:1218 |
| Red Hat Enterprise Linux HPC Node Optional (v. 6) | Fixed | RHSA-2015:1218 |
| Red Hat Enterprise Linux Server (v. 6) | Fixed | RHSA-2015:1218 |
| Red Hat Enterprise Linux Server (v. 7) | Fixed | RHSA-2015:1135 |
| Red Hat Enterprise Linux Server Optional (v. 6) | Fixed | RHSA-2015:1218 |
| Red Hat Enterprise Linux Server Optional (v. 7) | Fixed | RHSA-2015:1135 |
| Red Hat Enterprise Linux Workstation (v. 6) | Fixed | RHSA-2015:1218 |
| Red Hat Enterprise Linux Workstation (v. 7) | Fixed | RHSA-2015:1135 |
| Red Hat Enterprise Linux Workstation Optional (v. 6) | Fixed | RHSA-2015:1218 |
| Red Hat Enterprise Linux Workstation Optional (v. 7) | Fixed | RHSA-2015:1135 |
| Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 6) | Fixed | RHSA-2015:1186, RHSA-2015:1187, RHSA-2015:1219 |
| Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7) | Fixed | RHSA-2015:1186, RHSA-2015:1187, RHSA-2015:1219 |
| Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 6.5) | Fixed | RHSA-2015:1186, RHSA-2015:1187, RHSA-2015:1219 |
| Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 6.6) | Fixed | RHSA-2015:1186, RHSA-2015:1187, RHSA-2015:1219 |
| Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.1) | Fixed | RHSA-2015:1186, RHSA-2015:1187, RHSA-2015:1219 |
| Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 6) | Fixed | RHSA-2015:1186, RHSA-2015:1187, RHSA-2015:1219 |
| Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7) | Fixed | RHSA-2015:1186, RHSA-2015:1187, RHSA-2015:1219 |
Timeline
- 2026-10-02 Threatist record created from CVE-2015-4643
- 2026-10-03 Alias added: GHSA-phcc-83hq-g329
References
Advisory 8
Sources
- CVE-2015-4643 · CVE Program
- CVE-2015-4643 · NVD
- FIRST EPSS
- GHSA-phcc-83hq-g329 · GitHub Advisory Database · CC BY 4.0
- CVE-2015-4643 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences