REDHAT-BUG-680972: Input Validation

Published Feb 28, 2011
·
Updated

An insufficient input validation flaws was discovered in the PHP's Exif extension that allows extracting Exif data from image files: http://thread.gmane.org/gmane.comp.security.oss.general/4198

An integer overflow causes PHP to not validate offsets read from the file properly, causing it to read behind the end of the buffer. This leads to PHP interpreter crash when reading specially crafted Exif data.

Before the code over-reading the buffer is reached, PHP needs to allocate a large amount of memory (based on the components / length value read from the file). This attempt triggers the integer overflow check in safeemalloc on 32bit platforms and requires the memorylimit for the script to be set to -1 (i.e. no limit is enforced by PHP) on 64bit platforms.

Upstream commits, which include reproducers: http://svn.php.net/viewvc?view=revision&revision=308316 http://svn.php.net/viewvc?view=revision&revision=308317

The follow-up commit replaces the use of hard-coded numeric constant with INT32MAX: http://svn.php.net/viewvc?view=revision&revision=308362

This fix should first appear in upstream version 5.3.6.

Affected Software

1 affected component
PHP PHP<5.3.6

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade PHP to a version that resolves this vulnerability.

    Fixed in 5.3.6

Event History

Feb 28, 2011
Data Sourced
04:51 PM
DescriptionSeverityAffected Software
Feb 24, 2021
Data Sourced
via Red Hat·04:24 PM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of REDHAT-BUG-680972?

The severity of REDHAT-BUG-680972 is considered critical due to the potential for exploitation through integer overflow vulnerabilities.

2

How do I fix REDHAT-BUG-680972?

To fix REDHAT-BUG-680972, update the PHP Exif extension to a version newer than 5.3.6.

3

What causes REDHAT-BUG-680972?

REDHAT-BUG-680972 is caused by insufficient input validation flaws in the PHP Exif extension.

4

What applications are affected by REDHAT-BUG-680972?

Applications utilizing the PHP Exif extension version 5.3.6 or earlier are affected by REDHAT-BUG-680972.

5

What types of attacks are possible with REDHAT-BUG-680972?

Exploitation of REDHAT-BUG-680972 could allow attackers to execute arbitrary code or potentially crash the application.

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