1. CVE archive
  2. 2016
  3. CVE-2016-3074

CVE-2016-3074

9.8 Critical severity CVSS v3.1 · source NVD CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H 9.8 – Critical

Description

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.

Affected products

VendorProductVersionPlatform
canonical ubuntu linux 15.10 –
canonical ubuntu linux 16.04 –
canonical ubuntu linux 12.04 –
canonical ubuntu linux 14.04 –
debian debian linux 7.0 –
debian debian linux 8.0 –
fedoraproject fedora 23 –
fedoraproject fedora 24 –
libgd libgd 2.1.1 –
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 –
All 34 Libgd vulnerabilities

Vulnerability type

CWE-681 Incorrect Conversion between Numeric Types

When converting from one data type to another, such as long to integer, data can be omitted or translated in a way that produces unexpected values. If the resulting values are used in a sensitive context, then dangerous behaviors may occur.

Impact on systems

ScopeImpact
Other, Integrity Unexpected State, Quality Degradation
The program could wind up using the wrong number and generate incorrect results. If the number is used to allocate resources or make a security decision, then this could introduce a vulnerability.

How to prevent it

Implementation Avoid making conversion between numeric types. Always check for the allowed ranges.

All 123 CWE-681 CVEs, with trend and prevention

Source: MITRE CWE catalog · cwe.mitre.org