php: integer overflow in ftp_genlist() resulting in heap overflow (improved fix for CVE-2015-4022)
Published May 16, 2016
9.8
CRITICALCVSS 3.0
EPSS 16.32%
Description
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.
Affected products
No data.
Configuration 1
Configuration 2
- 7.0
- 8.0
Configuration 3
- 6.0
- 7.0
- 6.0
- 7.0
- 6.6
- 7.3
- 7.4
- 7.6
- 6.6
- 7.1
- 7.2
- 7.3
- 7.4
- 7.5
- 7.6
- 6.6
- 7.3
- 7.6
- 6.0
- 7.0
No data.
Red Hat Enterprise Linux 6
php-0:5.3.3-46.el6_6
Fixed · RHSA-2015:1218
Red Hat Enterprise Linux 7
php-0:5.4.16-36.ael7b_1
Fixed · RHSA-2015:1135
Red Hat Software Collections for Red Hat Enterprise Linux 6
php54-php-0:5.4.40-3.el6
Fixed · RHSA-2015:1219
Red Hat Software Collections for Red Hat Enterprise Linux 6
php55-php-0:5.5.21-4.el6
Fixed · RHSA-2015:1186
Red Hat Software Collections for Red Hat Enterprise Linux 6
rh-php56-php-0:5.6.5-7.el6
Fixed · RHSA-2015:1187
Red Hat Software Collections for Red Hat Enterprise Linux 6.5 EUS
php54-php-0:5.4.40-3.el6
Fixed · RHSA-2015:1219
Red Hat Software Collections for Red Hat Enterprise Linux 6.5 EUS
php55-php-0:5.5.21-4.el6
Fixed · RHSA-2015:1186
Red Hat Software Collections for Red Hat Enterprise Linux 6.5 EUS
rh-php56-php-0:5.6.5-7.el6
Fixed · RHSA-2015:1187
Red Hat Software Collections for Red Hat Enterprise Linux 6.6 EUS
php54-php-0:5.4.40-3.el6
Fixed · RHSA-2015:1219
Red Hat Software Collections for Red Hat Enterprise Linux 6.6 EUS
php55-php-0:5.5.21-4.el6
Fixed · RHSA-2015:1186
Red Hat Software Collections for Red Hat Enterprise Linux 6.6 EUS
rh-php56-php-0:5.6.5-7.el6
Fixed · RHSA-2015:1187
Red Hat Software Collections for Red Hat Enterprise Linux 7
php54-php-0:5.4.40-3.el7
Fixed · RHSA-2015:1219
Red Hat Software Collections for Red Hat Enterprise Linux 7
php55-php-0:5.5.21-4.el7
Fixed · RHSA-2015:1186
Red Hat Software Collections for Red Hat Enterprise Linux 7
rh-php56-php-0:5.6.5-7.el7
Fixed · RHSA-2015:1187
Red Hat Software Collections for Red Hat Enterprise Linux 7.1 EUS
php54-php-0:5.4.40-3.el7
Fixed · RHSA-2015:1219
Red Hat Software Collections for Red Hat Enterprise Linux 7.1 EUS
php55-php-0:5.5.21-4.el7
Fixed · RHSA-2015:1186
Red Hat Software Collections for Red Hat Enterprise Linux 7.1 EUS
rh-php56-php-0:5.6.5-7.el7
Fixed · RHSA-2015:1187
Red Hat Enterprise Linux 5
php
Will not fix
Red Hat Enterprise Linux 5
php53
Will not fix
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 6 | php-0:5.3.3-46.el6_6 | Fixed | RHSA-2015:1218 |
| Red Hat Enterprise Linux 7 | php-0:5.4.16-36.ael7b_1 | Fixed | RHSA-2015:1135 |
| Red Hat Software Collections for Red Hat Enterprise Linux 6 | php54-php-0:5.4.40-3.el6 | Fixed | RHSA-2015:1219 |
| Red Hat Software Collections for Red Hat Enterprise Linux 6 | php55-php-0:5.5.21-4.el6 | Fixed | RHSA-2015:1186 |
| Red Hat Software Collections for Red Hat Enterprise Linux 6 | rh-php56-php-0:5.6.5-7.el6 | Fixed | RHSA-2015:1187 |
| Red Hat Software Collections for Red Hat Enterprise Linux 6.5 EUS | php54-php-0:5.4.40-3.el6 | Fixed | RHSA-2015:1219 |
| Red Hat Software Collections for Red Hat Enterprise Linux 6.5 EUS | php55-php-0:5.5.21-4.el6 | Fixed | RHSA-2015:1186 |
| Red Hat Software Collections for Red Hat Enterprise Linux 6.5 EUS | rh-php56-php-0:5.6.5-7.el6 | Fixed | RHSA-2015:1187 |
| Red Hat Software Collections for Red Hat Enterprise Linux 6.6 EUS | php54-php-0:5.4.40-3.el6 | Fixed | RHSA-2015:1219 |
| Red Hat Software Collections for Red Hat Enterprise Linux 6.6 EUS | php55-php-0:5.5.21-4.el6 | Fixed | RHSA-2015:1186 |
| Red Hat Software Collections for Red Hat Enterprise Linux 6.6 EUS | rh-php56-php-0:5.6.5-7.el6 | Fixed | RHSA-2015:1187 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7 | php54-php-0:5.4.40-3.el7 | Fixed | RHSA-2015:1219 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7 | php55-php-0:5.5.21-4.el7 | Fixed | RHSA-2015:1186 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7 | rh-php56-php-0:5.6.5-7.el7 | Fixed | RHSA-2015:1187 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.1 EUS | php54-php-0:5.4.40-3.el7 | Fixed | RHSA-2015:1219 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.1 EUS | php55-php-0:5.5.21-4.el7 | Fixed | RHSA-2015:1186 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.1 EUS | rh-php56-php-0:5.6.5-7.el7 | Fixed | RHSA-2015:1187 |
| Red Hat Enterprise Linux 5 | php | Will not fix | n/a |
| Red Hat Enterprise Linux 5 | php53 | Will not fix | n/a |
No package ranges for this CVE.
Remediation
No remediation recorded yet.
Metrics
No CVSS v4.0 score for this CVE.
No CVSS v3.1 score for this CVE.
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
AV:N/AC:L/Au:N/C:P/I:P/A:P
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 1, 2026.
Score over time
2022–2026- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Percentile over time
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Table of values (42 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 16.32% (0.16316) | 96.87th | v5 (v2026.06.15) |
| Sep 22, 2026 | 16.32% (0.16316) | 96.81th | v5 (v2026.06.15) |
| Sep 21, 2026 | 14.47% (0.14470) | 96.52th | v5 (v2026.06.15) |
| Sep 20, 2026 | 16.32% (0.16316) | 96.81th | v5 (v2026.06.15) |
| Sep 6, 2026 | 16.95% (0.16948) | 96.85th | v5 (v2026.06.15) |
| Sep 5, 2026 | 15.03% (0.15034) | 96.55th | v5 (v2026.06.15) |
| Aug 30, 2026 | 16.95% (0.16948) | 96.84th | v5 (v2026.06.15) |
| Aug 28, 2026 | 15.03% (0.15034) | 96.53th | v5 (v2026.06.15) |
| Aug 24, 2026 | 16.95% (0.16948) | 96.82th | v5 (v2026.06.15) |
| Aug 23, 2026 | 15.03% (0.15034) | 96.52th | v5 (v2026.06.15) |
| Jun 15, 2026 | 16.51% (0.16512) | 96.58th | v5 (v2026.06.15) |
| Dec 28, 2025 | 8.66% (0.08663) | 92.16th | v4 (v2025.03.14) |
| Dec 27, 2025 | 4.61% (0.04609) | 88.95th | v4 (v2025.03.14) |
| Nov 1, 2025 | 7.86% (0.07859) | 91.64th | v4 (v2025.03.14) |
| Oct 28, 2025 | 10.69% (0.10690) | 92.96th | v4 (v2025.03.14) |
| Oct 27, 2025 | 6.68% (0.06684) | 90.84th | v4 (v2025.03.14) |
| Oct 4, 2025 | 10.69% (0.10690) | 93.02th | v4 (v2025.03.14) |
| Oct 1, 2025 | 7.73% (0.07726) | 91.62th | v4 (v2025.03.14) |
| Jul 30, 2025 | 6.50% (0.06501) | 90.71th | v4 (v2025.03.14) |
| Jul 4, 2025 | 11.95% (0.11953) | 93.43th | v4 (v2025.03.14) |
| May 22, 2025 | 10.19% (0.10189) | 92.72th | v4 (v2025.03.14) |
| May 9, 2025 | 12.51% (0.12513) | 93.53th | v4 (v2025.03.14) |
| May 1, 2025 | 9.80% (0.09801) | 92.56th | v4 (v2025.03.14) |
| Apr 20, 2025 | 12.51% (0.12513) | 93.52th | v4 (v2025.03.14) |
| Apr 19, 2025 | 9.80% (0.09801) | 92.50th | v4 (v2025.03.14) |
| Apr 18, 2025 | 12.51% (0.12513) | 93.52th | v4 (v2025.03.14) |
| Apr 17, 2025 | 9.80% (0.09801) | 92.49th | v4 (v2025.03.14) |
| Apr 6, 2025 | 12.51% (0.12513) | 93.34th | v4 (v2025.03.14) |
| Apr 5, 2025 | 9.80% (0.09801) | 92.25th | v4 (v2025.03.14) |
| Mar 30, 2025 | 12.51% (0.12513) | 93.32th | v4 (v2025.03.14) |
| Mar 29, 2025 | 28.86% (0.28856) | 94.55th | v4 (v2025.03.14) |
| Mar 19, 2025 | 12.51% (0.12513) | 93.07th | v4 (v2025.03.14) |
| Mar 18, 2025 | 9.80% (0.09801) | 92.43th | v4 (v2025.03.14) |
| Mar 17, 2025 | 12.51% (0.12513) | 93.38th | v4 (v2025.03.14) |
| Dec 12, 2024 | 0.95% (0.00947) | 83.83th | v3 (v2023.03.01) |
| Mar 8, 2024 | 0.95% (0.00947) | 82.74th | v3 (v2023.03.01) |
| Nov 8, 2023 | 0.73% (0.00733) | 78.57th | v3 (v2023.03.01) |
| May 29, 2023 | 0.26% (0.00257) | 62.05th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.19% (0.00195) | 55.50th | v3 (v2023.03.01) |
| Mar 6, 2023 | 3.91% (0.03910) | 85.66th | v2 (v2022.01.01) |
| Apr 1, 2022 | 3.91% (0.03910) | 84.19th | v2 (v2022.01.01) |
| Feb 4, 2022 | 3.91% (0.03910) | 67.45th | v2 (v2022.01.01) |
References (17)
- http://git.php.net/?p=php-src.git%3Ba=commit%3Bh=0765623d6991b62ffcd93ddb6be8a5203a2fa7e2 x_refsource_CONFIRM
- http://openwall.com/lists/oss-security/2015/06/18/6 mailing-listx_refsource_MLISTMailing ListPatchThird Party Advisory
- http://php.net/ChangeLog-5.php x_refsource_CONFIRMRelease NotesVendor Advisory
- http://rhn.redhat.com/errata/RHSA-2015-1135.html vendor-advisoryx_refsource_REDHATThird Party Advisory
- http://rhn.redhat.com/errata/RHSA-2015-1186.html vendor-advisoryx_refsource_REDHATThird Party Advisory
- http://rhn.redhat.com/errata/RHSA-2015-1187.html vendor-advisoryx_refsource_REDHATThird Party Advisory
- http://rhn.redhat.com/errata/RHSA-2015-1218.html vendor-advisoryx_refsource_REDHATThird Party Advisory
- http://www.debian.org/security/2015/dsa-3344 vendor-advisoryx_refsource_DEBIANThird Party Advisory
- http://www.oracle.com/technetwork/topics/security/linuxbulletinjan2016-2867209.html x_refsource_CONFIRMThird Party Advisory
- http://www.securityfocus.com/bid/75291 vdb-entryx_refsource_BIDThird Party AdvisoryVDB Entry
- http://www.securitytracker.com/id/1032709 vdb-entryx_refsource_SECTRACKThird Party AdvisoryVDB Entry
- https://access.redhat.com/security/cve/CVE-2015-4643 Vendor Advisory
- https://bugs.php.net/bug.php?id=69545 x_refsource_CONFIRMExploitIssue TrackingVendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1234938 Issue Tracking
- https://nvd.nist.gov/vuln/detail/CVE-2015-4643
- https://security.gentoo.org/glsa/201606-10 vendor-advisoryx_refsource_GENTOOThird Party Advisory
- https://www.cve.org/CVERecord?id=CVE-2015-4643
Change history (0)
No recorded changes yet.