FreeBSD : php-gd and gd -- Buffer over-read into uninitialized memory (5033e2fc-98ec-4ef5-8e0b-87cfbbc73081)

medium Nessus Plugin ID 103478

Language:

Synopsis

The remote FreeBSD host is missing one or more security-related updates.

Description

PHP developers report :

The GIF decoding function gdImageCreateFromGifCtx in gd_gif_in.c in the GD Graphics Library (aka libgd), as used in PHP before 5.6.31 and 7.x before 7.1.7, does not zero colorMap arrays before use. A specially crafted GIF image could use the uninitialized tables to read ~700 bytes from the top of the stack, potentially disclosing sensitive information.

Solution

Update the affected packages.

See Also

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

http://www.nessus.org/u?eee2795d

Plugin Details

Severity: Medium

ID: 103478

File Name: freebsd_pkg_5033e2fc98ec4ef58e0b87cfbbc73081.nasl

Version: 3.4

Type: local

Published: 9/27/2017

Updated: 1/4/2021

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Low

Score: 3.6

CVSS v2

Risk Factor: Medium

Base Score: 4.3

Vector: CVSS2#AV:N/AC:M/Au:N/C:P/I:N/A:N

CVSS v3

Risk Factor: Medium

Base Score: 6.5

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N

Vulnerability Information

CPE: p-cpe:/a:freebsd:freebsd:libgd, p-cpe:/a:freebsd:freebsd:php70-gd, p-cpe:/a:freebsd:freebsd:php71-gd, cpe:/o:freebsd:freebsd

Required KB Items: Host/local_checks_enabled, Host/FreeBSD/release, Host/FreeBSD/pkg_info

Patch Publication Date: 9/26/2017

Vulnerability Publication Date: 8/2/2017

Reference Information

CVE: CVE-2017-7890