Amazon Linux 2 : hivex (ALAS-2021-1658)

medium Nessus Plugin ID 169519

Synopsis

The remote Amazon Linux 2 host is missing a security update.

Description

The version of hivex installed on the remote host is prior to 1.3.10-6.11. It is, therefore, affected by a vulnerability as referenced in the ALAS2-2021-1658 advisory.

- A flaw was found in the hivex library in versions before 1.3.20. It is caused due to a lack of bounds check within the hivex_open function. An attacker could input a specially crafted Windows Registry (hive) file which would cause hivex to read memory beyond its normal bounds or cause the program to crash. The highest threat from this vulnerability is to system availability. (CVE-2021-3504)

Note that Nessus has not tested for this issue but has instead relied only on the application's self-reported version number.

Solution

Run 'yum update hivex' to update your system.

See Also

https://alas.aws.amazon.com/AL2/ALAS-2021-1658.html

https://access.redhat.com/security/cve/CVE-2021-3504

Plugin Details

Severity: Medium

ID: 169519

File Name: al2_ALAS-2021-1658.nasl

Version: 1.0

Type: local

Agent: unix

Published: 1/4/2023

Updated: 1/4/2023

Supported Sensors: Agentless Assessment, Continuous Assessment, Frictionless Assessment Agent, Frictionless Assessment AWS, Nessus Agent, Nessus

Risk Information

VPR

Risk Factor: Low

Score: 2.5

CVSS v2

Risk Factor: Medium

Base Score: 5.8

Temporal Score: 4.3

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

CVSS Score Source: CVE-2021-3504

CVSS v3

Risk Factor: Medium

Base Score: 5.4

Temporal Score: 4.7

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

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

Vulnerability Information

CPE: p-cpe:/a:amazon:linux:hivex-devel, p-cpe:/a:amazon:linux:hivex, p-cpe:/a:amazon:linux:perl-hivex, p-cpe:/a:amazon:linux:ruby-hivex, p-cpe:/a:amazon:linux:hivex-debuginfo, cpe:/o:amazon:linux:2, p-cpe:/a:amazon:linux:python-hivex, p-cpe:/a:amazon:linux:ocaml-hivex, p-cpe:/a:amazon:linux:ocaml-hivex-devel

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

Exploit Ease: No known exploits are available

Patch Publication Date: 6/16/2021

Vulnerability Publication Date: 5/11/2021

Reference Information

CVE: CVE-2021-3504