CVE-2018-14851: Buffer Overflow

Published Jun 7, 2018
·
Updated

exifprocessIFDinMAKERNOTE in ext/exif/exif.c in PHP before 5.6.37, 7.0.x before 7.0.31, 7.1.x before 7.1.20, and 7.2.x before 7.2.8 allows remote attackers to cause a denial of service (out-of-bounds read and application crash) via a crafted JPEG file.

Other sources

Fixed bug (heap-buffer-overflow (READ of size 48) while reading exif data). (CVE-2018-14851)

PHP

PHP before versions 5.6.37, 7.0.31, 7.1.20 and 7.2.8 is vulnerable to a heap-based buffer overflow in the exif.c:exifprocessIFDinMAKERNOTE() function. An attacker could exploit this to cause a denial of service via crafted file.

Upstream Bug:

https://bugs.php.net/bug.php?id=76557

Upstream Patch:

http://git.php.net/?p=php-src.git;a=commit;h=3462efa386f26d343062094514af604c29e3edce

Red Hat

Affected Software

20 affected componentsFixes available
redhat/rh-php71-php<0:7.1.30-1.el7
0:7.1.30-1.el7
redhat/php<5.6.37
5.6.37
redhat/php<7.0.31
7.0.31
redhat/php<7.1.20
7.1.20
redhat/php<7.2.8
7.2.8
debian/php5
debian/php7.0
debian/php7.1
PHP PHP<7.0.31
7.0.31
PHP PHP<=5.6.36
PHP PHP>=7.0.0<7.0.31
PHP PHP>=7.1.0<7.1.20
PHP PHP>=7.2.0<7.2.8
Canonical Ubuntu Linux=12.04
Canonical Ubuntu Linux=14.04
Canonical Ubuntu Linux=16.04
Canonical Ubuntu Linux=18.04
Debian Debian Linux=8.0
Debian Debian Linux=9.0
NetApp Storage Automation Store

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

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

    Fixed in 0:7.1.30-1.el7
  2. Upgrade

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

    Fixed in 5.6.37
  3. Upgrade

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

    Fixed in 7.0.31
  4. Upgrade

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

    Fixed in 7.1.20
  5. Upgrade

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

    Fixed in 7.2.8
  6. Upgrade

    Upgrade PHP to a version that resolves this vulnerability.

    Fixed in 7.0.31
  7. Upgrade

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

    Fixed in 5.6.37
  8. Upgrade

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

    Fixed in 7.0.31
  9. Upgrade

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

    Fixed in 7.1.20
  10. Upgrade

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

    Fixed in 7.2.8
  11. Compensating control

    Mitigate denial-of-service risk by restricting or filtering uploads/processing of crafted JPEG files that reach the PHP exif processing code (ext/exif/exif.c, exif_process_IFD_in_MAKERNOTE), until the affected PHP versions are patched.

Event History

Jun 7, 2018
CVE Published
12:00 AM
Aug 2, 2018
CVE Published
via MITRE·07:00 PM
Data Sourced
via MITRE·07:00 PM
Description
Data Sourced
via NVD·07:29 PM
RemedyDescriptionSeverityWeaknessAffected Software
Jan 11, 2024
Data Sourced
via Launchpad·10:52 PM
Description
Feb 19, 2026
Data Sourced
via Ubuntu·12:22 AM
RemedyDescriptionSeverityAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the vulnerability ID for this bug?

The vulnerability ID for this bug is CVE-2018-14851.

2

What is the severity of CVE-2018-14851?

The severity of CVE-2018-14851 is medium with a severity value of 5.9.

3

Which software versions are affected by CVE-2018-14851?

PHP versions before 5.6.37, 7.0.x before 7.0.31, 7.1.x before 7.1.20, and 7.2.x before 7.2.8 are affected by CVE-2018-14851.

4

How can a remote attacker exploit CVE-2018-14851?

A remote attacker can exploit CVE-2018-14851 by sending a crafted JPEG file, which can cause a denial of service by triggering an out-of-bounds read and application crash.

5

Where can I find more information about CVE-2018-14851?

You can find more information about CVE-2018-14851 at the following references: [1] [2] [3]

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