CVE-2015-4643: Buffer Overflow

Published Jun 23, 2015
·
Updated

Integer overflow in the ftpgenlist 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.

Other sources

PHP versions 5.4.42, 5.5.26, and 5.6.10 provide improved fix for CVE-2015-4022:

Improved fix for bug #69545 (Integer overflow in ftpgenlist() resulting in heap overflow).

Upstream bug: https://bugs.php.net/bug.php?id=69545#1431550655

Upstream fix:

http://git.php.net/?p=php-src.git;a=commitdiff;h=0765623d6991b62ffcd93ddb6be8a5203a2fa7e2

The #69545 bug was originally fixed in 5.4.41 / 5.5.25 / 5.6.9 and got CVE-2015-4022 (see bug 1223412), but the fix was found to be incomplete, as explained in the upstream bug.

— Red Hat

Affected Software

30 affected componentsFixes available
PHP PHP<5.4.42
PHP PHP>=5.5.0<5.5.26
PHP PHP>=5.6.0<5.6.10
Debian Debian Linux=7.0
Debian Debian Linux=8.0
redhat Enterprise Linux Desktop=6.0
redhat Enterprise Linux Desktop=7.0
redhat Enterprise Linux Server=6.0
redhat Enterprise Linux Server=7.0
redhat Enterprise Linux Server Aus=6.6
redhat Enterprise Linux Server Aus=7.3
redhat Enterprise Linux Server Aus=7.4
redhat Enterprise Linux Server Aus=7.6
redhat Enterprise Linux Server Eus=6.6
redhat Enterprise Linux Server Eus=7.1
redhat Enterprise Linux Server Eus=7.2
redhat Enterprise Linux Server Eus=7.3
redhat Enterprise Linux Server Eus=7.4
redhat Enterprise Linux Server Eus=7.5
redhat Enterprise Linux Server Eus=7.6
redhat Enterprise Linux Server Tus=6.6
redhat Enterprise Linux Server Tus=7.3
redhat Enterprise Linux Server Tus=7.6
redhat Enterprise Linux Workstation=6.0
redhat Enterprise Linux Workstation=7.0
Oracle Linux=6
Oracle Linux=7-0
redhat/php<5.4.42
5.4.42
redhat/php<5.5.26
5.5.26
redhat/php<5.6.10
5.6.10

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade redhat/php to a version that resolves this vulnerability.

    Fixed in 5.4.42
  2. Upgrade

    Upgrade redhat/php to a version that resolves this vulnerability.

    Fixed in 5.5.26
  3. Upgrade

    Upgrade redhat/php to a version that resolves this vulnerability.

    Fixed in 5.6.10
  4. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 5.4.42
  5. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 5.5.26
  6. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 5.6.10

Event History

Jun 23, 2015
Data Sourced
via Red Hat·02:26 PM
DescriptionSeverityAffected Software
May 16, 2016
CVE Published
via MITRE·10:00 AM
Data Sourced
via MITRE·10:00 AM
Description
Data Sourced
10:59 AM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2015-4643?

CVE-2015-4643 has been classified as a critical vulnerability due to the potential for remote code execution.

2

How do I fix CVE-2015-4643?

To fix CVE-2015-4643, update PHP to version 5.4.42 or later, 5.5.26 or later, or 5.6.10 or later.

3

Which PHP versions are affected by CVE-2015-4643?

CVE-2015-4643 affects PHP versions prior to 5.4.42, 5.5.x before 5.5.26, and 5.6.x before 5.6.10.

4

What are the potential impacts of CVE-2015-4643?

The vulnerability can lead to a heap-based buffer overflow, allowing remote FTP servers to execute arbitrary code.

5

Are any Linux distributions affected by CVE-2015-4643?

Yes, Debian and Red Hat enterprise Linux distributions are among those affected by CVE-2015-4643, depending on the versions used.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203