php: integer overflow leading to heap overflow when reading FTP file listing
Published Jun 9, 2015
7.5
HIGHCVSS 2.0
EPSS 20.84%
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.
Affected products
No data.
Configuration 1
- 7.0
- 7.0
- 7.1
- 7.0
- 7.1
- 7.0
Configuration 2
- ≤ 5.4.40
- 5.4.39
- 5.5.0
- 5.5.0
- 5.5.0
- 5.5.0
- 5.5.0
- 5.5.0
- 5.5.0
- 5.5.0
- 5.5.0
- 5.5.0
- 5.5.0
- 5.5.0
- 5.5.0
- 5.5.1
- 5.5.2
- 5.5.3
- 5.5.4
- 5.5.5
- 5.5.6
- 5.5.7
- 5.5.8
- 5.5.9
- 5.5.10
- 5.5.11
- 5.5.12
- 5.5.13
- 5.5.14
- 5.5.18
- 5.5.19
- 5.5.20
- 5.5.21
- 5.5.22
- 5.5.23
- 5.5.24
- 5.6.0
- 5.6.0
- 5.6.0
- 5.6.0
- 5.6.0
- 5.6.0
- 5.6.0
- 5.6.0
- 5.6.0
- 5.6.2
- 5.6.3
- 5.6.4
- 5.6.5
- 5.6.6
- 5.6.7
- 5.6.8
Configuration 3
- 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.
No CVSS v3.0 score for this CVE.
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 (45 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 20.84% (0.20837) | 97.48th | v5 (v2026.06.15) |
| Jun 15, 2026 | 20.31% (0.20311) | 97.14th | v5 (v2026.06.15) |
| May 24, 2026 | 12.08% (0.12085) | 93.88th | v4 (v2025.03.14) |
| Mar 4, 2026 | 20.64% (0.20639) | 95.47th | v4 (v2025.03.14) |
| Mar 1, 2026 | 10.54% (0.10535) | 93.16th | v4 (v2025.03.14) |
| Feb 4, 2026 | 20.64% (0.20639) | 95.44th | v4 (v2025.03.14) |
| Feb 1, 2026 | 10.54% (0.10535) | 93.11th | v4 (v2025.03.14) |
| Jan 4, 2026 | 20.64% (0.20639) | 95.39th | v4 (v2025.03.14) |
| Jan 1, 2026 | 10.54% (0.10535) | 93.07th | v4 (v2025.03.14) |
| Dec 28, 2025 | 20.64% (0.20639) | 95.40th | v4 (v2025.03.14) |
| Dec 27, 2025 | 9.98% (0.09983) | 92.84th | v4 (v2025.03.14) |
| Dec 4, 2025 | 20.64% (0.20639) | 95.36th | v4 (v2025.03.14) |
| Dec 1, 2025 | 10.54% (0.10535) | 93.02th | v4 (v2025.03.14) |
| Nov 4, 2025 | 20.64% (0.20639) | 95.34th | v4 (v2025.03.14) |
| Nov 1, 2025 | 10.54% (0.10535) | 92.96th | v4 (v2025.03.14) |
| Oct 28, 2025 | 20.64% (0.20639) | 95.33th | v4 (v2025.03.14) |
| Oct 27, 2025 | 9.98% (0.09983) | 92.72th | v4 (v2025.03.14) |
| Oct 4, 2025 | 20.64% (0.20639) | 95.38th | v4 (v2025.03.14) |
| Sep 11, 2025 | 9.98% (0.09983) | 92.76th | v4 (v2025.03.14) |
| Sep 4, 2025 | 7.87% (0.07873) | 91.70th | v4 (v2025.03.14) |
| Sep 1, 2025 | 4.40% (0.04396) | 88.63th | v4 (v2025.03.14) |
| Aug 19, 2025 | 7.87% (0.07873) | 91.62th | v4 (v2025.03.14) |
| Aug 4, 2025 | 6.70% (0.06704) | 90.87th | v4 (v2025.03.14) |
| Aug 1, 2025 | 3.61% (0.03613) | 87.45th | v4 (v2025.03.14) |
| Jul 30, 2025 | 6.70% (0.06704) | 90.86th | v4 (v2025.03.14) |
| Jul 4, 2025 | 14.56% (0.14561) | 94.14th | v4 (v2025.03.14) |
| Jul 1, 2025 | 6.91% (0.06906) | 90.98th | v4 (v2025.03.14) |
| Jun 4, 2025 | 20.64% (0.20639) | 95.26th | v4 (v2025.03.14) |
| Jun 1, 2025 | 10.54% (0.10535) | 92.88th | v4 (v2025.03.14) |
| May 20, 2025 | 20.64% (0.20639) | 95.25th | v4 (v2025.03.14) |
| May 6, 2025 | 15.09% (0.15093) | 94.17th | v4 (v2025.03.14) |
| May 4, 2025 | 18.35% (0.18351) | 94.84th | v4 (v2025.03.14) |
| May 1, 2025 | 9.60% (0.09596) | 92.46th | v4 (v2025.03.14) |
| Mar 30, 2025 | 17.96% (0.17963) | 94.64th | v4 (v2025.03.14) |
| Mar 29, 2025 | 39.90% (0.39895) | 95.97th | v4 (v2025.03.14) |
| Mar 19, 2025 | 17.96% (0.17963) | 94.41th | v4 (v2025.03.14) |
| Mar 17, 2025 | 20.75% (0.20751) | 95.13th | v4 (v2025.03.14) |
| Dec 12, 2024 | 2.40% (0.02399) | 90.29th | v3 (v2023.03.01) |
| Mar 29, 2024 | 3.08% (0.03079) | 90.82th | v3 (v2023.03.01) |
| Feb 14, 2024 | 4.30% (0.04299) | 92.00th | v3 (v2023.03.01) |
| Sep 9, 2023 | 7.76% (0.07759) | 93.39th | v3 (v2023.03.01) |
| Mar 7, 2023 | 10.23% (0.10227) | 93.98th | v3 (v2023.03.01) |
| Mar 6, 2023 | 3.26% (0.03264) | 84.28th | v2 (v2022.01.01) |
| Apr 1, 2022 | 3.26% (0.03264) | 82.68th | v2 (v2022.01.01) |
| Feb 4, 2022 | 3.26% (0.03264) | 65.36th | v2 (v2022.01.01) |
References (22)
- http://lists.apple.com/archives/security-announce/2015/Aug/msg00001.html vendor-advisoryx_refsource_APPLE
- http://lists.fedoraproject.org/pipermail/package-announce/2015-May/158616.html vendor-advisoryx_refsource_FEDORA
- http://lists.fedoraproject.org/pipermail/package-announce/2015-May/158915.html vendor-advisoryx_refsource_FEDORA
- http://lists.fedoraproject.org/pipermail/package-announce/2015-May/159031.html vendor-advisoryx_refsource_FEDORA
- http://lists.opensuse.org/opensuse-updates/2015-06/msg00002.html vendor-advisoryx_refsource_SUSE
- http://php.net/ChangeLog-5.php x_refsource_CONFIRMPatch
- http://rhn.redhat.com/errata/RHSA-2015-1135.html vendor-advisoryx_refsource_REDHAT
- http://rhn.redhat.com/errata/RHSA-2015-1186.html vendor-advisoryx_refsource_REDHAT
- http://rhn.redhat.com/errata/RHSA-2015-1187.html vendor-advisoryx_refsource_REDHAT
- http://rhn.redhat.com/errata/RHSA-2015-1218.html vendor-advisoryx_refsource_REDHAT
- http://rhn.redhat.com/errata/RHSA-2015-1219.html vendor-advisoryx_refsource_REDHAT
- http://www.debian.org/security/2015/dsa-3280 vendor-advisoryx_refsource_DEBIAN
- http://www.oracle.com/technetwork/topics/security/linuxbulletinjan2016-2867209.html x_refsource_CONFIRM
- http://www.securityfocus.com/bid/74902 vdb-entryx_refsource_BID
- http://www.securitytracker.com/id/1032433 vdb-entryx_refsource_SECTRACK
- https://access.redhat.com/security/cve/CVE-2015-4022 Vendor Advisory
- https://bugs.php.net/bug.php?id=69545 x_refsource_CONFIRMExploitVendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1223412 Issue Tracking
- https://nvd.nist.gov/vuln/detail/CVE-2015-4022
- https://security.gentoo.org/glsa/201606-10 vendor-advisoryx_refsource_GENTOO
- https://support.apple.com/kb/HT205031 x_refsource_CONFIRM
- https://www.cve.org/CVERecord?id=CVE-2015-4022
Change history (0)
No recorded changes yet.