CentOS 7 : rsyslog (RHSA-2020:1000)

critical Nessus Plugin ID 135313

Synopsis

The remote CentOS Linux host is missing one or more security updates.

Description

The remote CentOS Linux 7 host has packages installed that are affected by multiple vulnerabilities as referenced in the RHSA-2020:1000 advisory.

- An issue was discovered in Rsyslog v8.1908.0. contrib/pmaixforwardedfrom/pmaixforwardedfrom.c has a heap overflow in the parser for AIX log messages. The parser tries to locate a log message delimiter (in this case, a space or a colon) but fails to account for strings that do not satisfy this constraint. If the string does not match, then the variable lenMsg will reach the value zero and will skip the sanity check that detects invalid log messages. The message will then be considered valid, and the parser will eat up the nonexistent colon delimiter. In doing so, it will decrement lenMsg, a signed integer, whose value was zero and now becomes minus one. The following step in the parser is to shift left the contents of the message. To do this, it will call memmove with the right pointers to the target and destination strings, but the lenMsg will now be interpreted as a huge value, causing a heap overflow. (CVE-2019-17041)

- An issue was discovered in Rsyslog v8.1908.0. contrib/pmcisconames/pmcisconames.c has a heap overflow in the parser for Cisco log messages. The parser tries to locate a log message delimiter (in this case, a space or a colon), but fails to account for strings that do not satisfy this constraint. If the string does not match, then the variable lenMsg will reach the value zero and will skip the sanity check that detects invalid log messages. The message will then be considered valid, and the parser will eat up the nonexistent colon delimiter. In doing so, it will decrement lenMsg, a signed integer, whose value was zero and now becomes minus one. The following step in the parser is to shift left the contents of the message.
To do this, it will call memmove with the right pointers to the target and destination strings, but the lenMsg will now be interpreted as a huge value, causing a heap overflow. (CVE-2019-17042)

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

Solution

Update the affected packages.

See Also

https://access.redhat.com/errata/RHSA-2020:1000

Plugin Details

Severity: Critical

ID: 135313

File Name: centos_RHSA-2020-1000.nasl

Version: 1.6

Type: local

Agent: unix

Published: 4/10/2020

Updated: 10/10/2024

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

Risk Information

VPR

Risk Factor: Medium

Score: 5.9

Vendor

Vendor Severity: Moderate

CVSS v2

Risk Factor: High

Base Score: 7.5

Temporal Score: 5.5

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

CVSS Score Source: CVE-2019-17042

CVSS v3

Risk Factor: Critical

Base Score: 9.8

Temporal Score: 8.5

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

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

CVSS v4

Risk Factor: Critical

Base Score: 9.3

Threat Score: 8.1

Threat Vector: CVSS:4.0/E:U

Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Vulnerability Information

CPE: p-cpe:/a:centos:centos:rsyslog-gssapi, p-cpe:/a:centos:centos:rsyslog-relp, p-cpe:/a:centos:centos:rsyslog-mmnormalize, p-cpe:/a:centos:centos:rsyslog-snmp, p-cpe:/a:centos:centos:rsyslog-crypto, p-cpe:/a:centos:centos:rsyslog, p-cpe:/a:centos:centos:rsyslog-udpspoof, p-cpe:/a:centos:centos:rsyslog-doc, p-cpe:/a:centos:centos:rsyslog-pgsql, p-cpe:/a:centos:centos:rsyslog-gnutls, p-cpe:/a:centos:centos:rsyslog-elasticsearch, cpe:/o:centos:centos:7, p-cpe:/a:centos:centos:rsyslog-mmjsonparse, p-cpe:/a:centos:centos:rsyslog-mmaudit, p-cpe:/a:centos:centos:rsyslog-kafka, p-cpe:/a:centos:centos:rsyslog-mysql, p-cpe:/a:centos:centos:rsyslog-mmkubernetes, p-cpe:/a:centos:centos:rsyslog-libdbi, p-cpe:/a:centos:centos:rsyslog-mmsnmptrapd

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

Exploit Ease: No known exploits are available

Patch Publication Date: 4/8/2020

Vulnerability Publication Date: 10/7/2019

Reference Information

CVE: CVE-2019-17041, CVE-2019-17042

RHSA: 2020:1000