#VU110260 Buffer overflow in PHP - CVE-2016-4542


| Updated: 2025-06-08

Vulnerability identifier: #VU110260

Vulnerability risk: High

CVSSv4.0: 8.1 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Amber]

CVE-ID: CVE-2016-4542

CWE-ID: CWE-119

Exploitation vector: Network

Exploit availability: No

Vulnerable software:
PHP
Universal components / Libraries / Scripting languages

Vendor: PHP Group

Description

The vulnerability allows a remote non-authenticated attacker to execute arbitrary code.

The exif_process_IFD_TAG function in ext/exif/exif.c in PHP before 5.5.35, 5.6.x before 5.6.21, and 7.x before 7.0.6 does not properly construct spprintf arguments, which allows remote attackers to cause a denial of service (out-of-bounds read) or possibly have unspecified other impact via crafted header data.

Mitigation
Install update from vendor's website.

Vulnerable software versions

PHP: 5.6.0, 5.6.1, 5.6.2, 5.6.3, 5.6.4, 5.6.5, 5.6.6, 5.6.7, 5.6.8, 5.6.9, 5.6.10, 5.6.11, 5.6.12, 5.6.13, 5.6.14, 5.6.15, 5.6.16, 5.6.17, 5.6.18, 5.6.19, 5.6.20, 7.0, 7.0.1, 7.0.2, 7.0.3, 7.0.4, 7.0.5


External links
https://lists.fedoraproject.org/pipermail/package-announce/2016-May/183736.html
https://lists.opensuse.org/opensuse-updates/2016-05/msg00086.html
https://lists.opensuse.org/opensuse-updates/2016-06/msg00027.html
https://php.net/ChangeLog-5.php
https://php.net/ChangeLog-7.php
https://rhn.redhat.com/errata/RHSA-2016-2750.html
https://www.debian.org/security/2016/dsa-3602
https://www.openwall.com/lists/oss-security/2016/05/05/21
https://www.securityfocus.com/bid/89844
https://bugs.php.net/bug.php?id=72094
https://git.php.net/?p=php-src.git;a=commit;h=082aecfc3a753ad03be82cf14f03ac065723ec92
https://h20566.www2.hpe.com/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c05240731
https://h20566.www2.hpe.com/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c05320149
https://h20566.www2.hpe.com/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c05390722
https://security.gentoo.org/glsa/201611-22


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.


Latest bulletins with this vulnerability