CVE-2016-3074: Buffer Overflow

Published Mar 29, 2016
·
Updated

A signedness vulnerability was found in libgd 2.1.1 which may result into heap overflow when processing maliciously crafted .gd2 files.

Other sources

Fixed bug (libgd: signedness vulnerability). (CVE-2016-3074)

— PHP

Integer signedness error in GD Graphics Library 2.1.1 (aka libgd or libgd2) allows remote attackers to cause a denial of service (crash) or potentially execute arbitrary code via crafted compressed gd2 data, which triggers a heap-based buffer overflow.

— MITRE

Affected Software

16 affected componentsFixes available
PHP PHP<7.0.6
7.0.6
Libgd Libgd=2.1.1
Debian Debian Linux=7.0
Debian Debian Linux=8.0
Fedoraproject Fedora=23
Fedoraproject Fedora=24
Canonical Ubuntu Linux=12.04
Canonical Ubuntu Linux=14.04
Canonical Ubuntu Linux=15.10
Canonical Ubuntu Linux=16.04
openSUSE openSUSE=13.2
PHP PHP>=5.5.0<5.5.35
PHP PHP>=5.6.0<5.6.21
PHP PHP>=7.0.0<7.0.6
redhat/php<5.5.35
5.5.35
redhat/php<5.6.21
5.6.21

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade PHP to a version that resolves this vulnerability.

    Fixed in 7.0.6
  2. Upgrade

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

    Fixed in 5.5.35
  3. Upgrade

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

    Fixed in 5.6.21

Event History

Mar 29, 2016
Data Sourced
via Red Hat·10:42 AM
DescriptionSeverityAffected Software
Apr 26, 2016
CVE Published
via MITRE·02:00 PM
Data Sourced
via MITRE·02:00 PM
Description
Data Sourced
02:59 PM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2016-3074?

CVE-2016-3074 has been classified with a high severity level due to the potential for remote code execution and denial of service.

2

How do I fix CVE-2016-3074?

To fix CVE-2016-3074, update the GD Graphics Library to version 2.1.1 or later, and ensure your PHP version is updated to at least 7.0.6.

3

What systems are affected by CVE-2016-3074?

CVE-2016-3074 affects GD Graphics Library version 2.1.1, as well as various PHP versions prior to 7.0.6, and multiple Linux distributions including Debian, Fedora, and Ubuntu.

4

Can CVE-2016-3074 lead to remote exploitation?

Yes, CVE-2016-3074 can lead to remote exploitation through crafted compressed gd2 data, which may result in a heap-based buffer overflow.

5

Is there a patch available for CVE-2016-3074?

Yes, a patch is available that addresses the vulnerability specifically in GD Graphics Library and its dependent software.

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