# CVE-2016-10158: PHP EXIF denial of service in exif_convert_any_to_int

Source: https://junglewise.ai/threats/cve-2016-10158-php-exif-denial-of-service-in-exif-convert-any-to-int  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2017-01-24. Updated: 2026-05-13  
License: CC BY 4.0 with a link back

CVE-2016-10158 · Severity: high · CVSS 7.5 · Published 2017-01-24

PHP is a widely used programming language for web development. A vulnerability in its image metadata processing component (EXIF) allows an attacker to crash a web server or application by providing a specially crafted image file. This results in a denial of service, potentially disrupting website availability and business operations.

Technologies: [PHP Group PHP](https://junglewise.ai/threats/technologies/php). Vendors: [PHP Group](https://junglewise.ai/threats/vendors/php-group).

## Quick answers

**Is CVE-2016-10158 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2016-10158 being exploited in the wild.

**How severe is CVE-2016-10158?** High severity, with a CVSS score of 7.5, published 24 January 2017.

**Which products and versions are affected?** PHP Group PHP before 5.6.30, 7.0.x before 7.0.15, 7.1.x before 7.1.1.

**Is there a fix for CVE-2016-10158?** A patch was published on 2017-01-19: Fixed in PHP 5.6.30 Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2016-10158 attacked?** It is attacked over the network, in a software library.

**Am I affected by CVE-2016-10158?** Check whether you run PHP Group PHP at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Technical details

A floating point exception (FPE) exists in the exif_convert_any_to_int function within ext/exif/exif.c. The vulnerability is triggered when processing crafted EXIF data that causes an integer overflow/division error, specifically an attempt to divide the minimum representable negative integer by -1. This is reachable by remote, unauthenticated attackers who can submit images to be processed by the affected PHP versions. Successful exploitation results in an immediate crash of the PHP process (Denial of Service). The issue was addressed in PHP versions 5.6.30, 7.0.15, and 7.1.1.

## Affected products

- PHP Group PHP before 5.6.30, 7.0.x before 7.0.15, 7.1.x before 7.1.1

## Timeline

- 2017-01-19: patched: Fixed in PHP 5.6.30
- 2017-01-24: disclosed: NVD publication date

## References

- [http://php.net/ChangeLog-5.php](http://php.net/ChangeLog-5.php)
- [http://php.net/ChangeLog-7.php](http://php.net/ChangeLog-7.php)
- [http://www.debian.org/security/2017/dsa-3783](http://www.debian.org/security/2017/dsa-3783)
- [http://www.securityfocus.com/bid/95764](http://www.securityfocus.com/bid/95764)
- [http://www.securitytracker.com/id/1037659](http://www.securitytracker.com/id/1037659)
- [https://access.redhat.com/errata/RHSA-2018:1296](https://access.redhat.com/errata/RHSA-2018:1296)
- [https://bugs.php.net/bug.php?id=73737](https://bugs.php.net/bug.php?id=73737)

## Related threats

- [PHP use-after-free in global state handling](https://junglewise.ai/threats/cve-2026-109619-php-has-various-global-state-that-temporarily-points-into)
- [PHP Memory Corruption Vulnerability](https://junglewise.ai/threats/cve-2026-109618-gcp-2026-070)
- [PHP Phar uncontrolled recursion in phar_get_link_source](https://junglewise.ai/threats/cve-2026-7260-php-phar-uncontrolled-recursion-in-phar-get-link-source)
- [PHP BCMath out-of-bounds write in bccomp](https://junglewise.ai/threats/cve-2026-17544-php-bcmath-out-of-bounds-write-in-bccomp)
- [PHP ext-pgsql SQL injection in pg_select and related functions](https://junglewise.ai/threats/cve-2026-17543-php-ext-pgsql-sql-injection-in-pg-select-and-related-functions)
