CVE-2018-10549: Buffer Overflow

Published Apr 26, 2018
·
Updated

An issue was discovered in PHP before 5.6.36, 7.0.x before 7.0.30, 7.1.x before 7.1.17, and 7.2.x before 7.2.5. exifreaddata in ext/exif/exif.c has an out-of-bounds read for crafted JPEG data because exifiifaddvalue mishandles the case of a MakerNote that lacks a final '\0' character.

Other sources

An issue was discovered in PHP before from 5.6.25 to 5.6.36, 7.0.x before 7.0.30, 7.1.x before 7.1.17, and 7.2.x before 7.2.5. exifreaddata in ext/exif/exif.c has an out-of-bounds read for crafted JPEG data because exifiifaddvalue mishandles the case of a MakerNote that lacks a final '\0' character.

Upstream bug:

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

Upstream patch:

https://git.php.net/?p=php-src.git;a=commit;h=b4e4788c4461449b4587e19ef1f474ce938e4980

Red Hat

An out-of-bounds read has been found in PHP when function exifiifaddvalue handles the case of a MakerNote that lacks a final terminator character. A remote attacker could use this vulnerability to cause a crash.

Fixed bug (Heap Buffer Overflow (READ: 1786) in exifiifaddvalue). (CVE-2018-10549)

PHP

Affected Software

19 affected componentsFixes available
redhat/rh-php71-php<0:7.1.30-1.el7
0:7.1.30-1.el7
debian/php5
debian/php7.0
debian/php7.1
redhat/php<5.6.36
5.6.36
redhat/php<7.0.30
7.0.30
redhat/php<7.1.17
7.1.17
redhat/php<7.2.5
7.2.5
PHP PHP<7.0.30
7.0.30
PHP PHP<5.6.36
PHP PHP>=7.0.0<7.0.30
PHP PHP>=7.1.0<7.1.17
PHP PHP>=7.2.0<7.2.5
Canonical Ubuntu Linux=16.04
Canonical Ubuntu Linux=17.10
Canonical Ubuntu Linux=18.04
Debian Debian Linux=8.0
Debian Debian Linux=9.0
NetApp Storage Automation Store

Event History

Apr 26, 2018
CVE Published
12:00 AM
Apr 29, 2018
CVE Published
via MITRE·09:00 PM
Data Sourced
via MITRE·09:00 PM
Description
Jan 11, 2024
Data Sourced
via Launchpad·10:45 PM
Description
Sep 19, 2024
Data Sourced
via Ubuntu·10:41 PM
RemedyDescriptionSeverityAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the severity of CVE-2018-10549?

CVE-2018-10549 has been assigned a medium severity rating due to its potential to cause out-of-bounds reads.

2

How do I fix CVE-2018-10549?

To fix CVE-2018-10549, upgrade PHP to version 5.6.36, 7.0.30, 7.1.17, or 7.2.5, as applicable.

3

What software versions are affected by CVE-2018-10549?

CVE-2018-10549 affects PHP versions prior to 5.6.36, 7.0.x before 7.0.30, 7.1.x before 7.1.17, and 7.2.x before 7.2.5.

4

Is CVE-2018-10549 specific to certain operating systems?

Yes, CVE-2018-10549 affects multiple operating systems, including various versions of Red Hat, Debian, and Ubuntu.

5

What is the attack vector for CVE-2018-10549?

The attack vector for CVE-2018-10549 involves crafted JPEG data that exploits the handling of MakerNote in the exif_read_data function.

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