Improper input validation in Rsyslog
CVE-2019-17042
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.
Vulnerability class: Drupalgeddon 2 (CVE-2018-7600)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 9.8 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.030, 87.5th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Rsyslog — versions 8.1908.0
- Debian Linux — versions 9.0
- Fedoraproject Fedora — versions 30, 31
- openSUSE Leap — versions 15.0, 15.1
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 1 other repository (fbreton/lacework). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- github.com/rsyslog/rsyslog/blob/v8-stable/ChangeLog (Third Party Advisory, Release Notes)
- github.com/rsyslog/rsyslog/pull/3883 (Patch, Third Party Advisory)
- openSUSE-SU-2019:2500 (vendor-advisory, Mailing List, Third Party Advisory)
- openSUSE-SU-2019:2501 (vendor-advisory, Mailing List, Third Party Advisory)
- FEDORA-2019-ea7d5876a4 (vendor-advisory)
- FEDORA-2019-1fb95ae48d (vendor-advisory)
- [debian-lts-announce] 20211130 [SECURITY] [DLA 2835-1] rsyslog security update (mailing-list, Mailing List, Third Party Advisory)