EulerOS 2.0 SP1 : libxml2 (EulerOS-SA-2017-1237)

high Nessus Plugin ID 103739

Synopsis

The remote EulerOS host is missing a security update.

Description

According to the version of the libxml2 packages installed, the EulerOS installation on the remote host is affected by the following vulnerability :

- A buffer overflow was discovered in libxml2 20904-GITv2.9.4-16-g0741801. The function xmlSnprintfElementContent in valid.c is supposed to recursively dump the element content definition into a char buffer 'buf' of size 'size'. The variable len is assigned strlen(buf). If the content-i1/4ztype is XML_ELEMENT_CONTENT_ELEMENT, then (i) the content-i1/4zprefix is appended to buf (if it actually fits) whereupon (ii) content-i1/4zname is written to the buffer. However, the check for whether the content-i1/4zname actually fits also uses 'len' rather than the updated buffer length strlen(buf). This allows us to write about 'size' many bytes beyond the allocated memory. This vulnerability causes programs that use libxml2, such as PHP, to crash.(CVE-2017-9047)

Note that Tenable Network Security has extracted the preceding description block directly from the EulerOS security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.

Solution

Update the affected libxml2 package.

See Also

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

Plugin Details

Severity: High

ID: 103739

File Name: EulerOS_SA-2017-1237.nasl

Version: 3.14

Type: local

Published: 10/10/2017

Updated: 1/6/2021

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 4.4

CVSS v2

Risk Factor: Medium

Base Score: 5

Temporal Score: 3.7

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

CVSS v3

Risk Factor: High

Base Score: 7.5

Temporal Score: 6.5

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

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

Vulnerability Information

CPE: p-cpe:/a:huawei:euleros:libxml2, p-cpe:/a:huawei:euleros:libxml2-devel, p-cpe:/a:huawei:euleros:libxml2-python, cpe:/o:huawei:euleros:2.0

Required KB Items: Host/local_checks_enabled, Host/EulerOS/release, Host/EulerOS/rpm-list, Host/EulerOS/sp

Excluded KB Items: Host/EulerOS/uvp_version

Patch Publication Date: 10/1/2017

Reference Information

CVE: CVE-2017-9047