Skip to content
OpenAdvisories
Unscored Public exploit CVE-2019-17041 EUVD-2019-7515GHSA-wvqp-mg76-5qw7

An issue was discovered in Rsyslog v8.1908.0. contrib/pmaixforwardedfrom/pmaixforwardedfrom.c has a heap overflow in the parser for AIX log…

Published Oct 7, 2019 · Updated Aug 5, 2024 · Assigned by mitre

Description

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 rsyslog 8.1910.0-1 —
Debian 13 rsyslog 8.1910.0-1 —
Debian 12 rsyslog 8.1910.0-1 —
Debian 9 rsyslog 8.24.0-1+deb9u1 DLA-2835-1
Debian 8 rsyslog 8.4.2-1+deb8u3 DLA-1952-1
ReleasePackageFixed inAdvisory
Ubuntu 14.04 LTS rsyslog No fix yet —
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 18.04 LTS rsyslog No fix yet —
Ubuntu Pro 16.04 LTS rsyslog 8.16.0-1ubuntu3.1+esm1 USN-5419-1
ReleasePackageFixed inAdvisory
RHEL 8 rsyslog +15 8.1911.0-3.el8 RHSA-2020:1702
RHEL 7 rsyslog +17 8.24.0-52.el7 RHSA-2020:1000
ReleasePackageFixed inAdvisory
SLES 15 SP1 rsyslog 8.33.1-3.22.4 SUSE-SU-2019:2937-1
SLES 15 rsyslog 8.33.1-3.22.4 SUSE-SU-2019:2937-1
SLES 12 SP5 rsyslog 8.24.0-3.33.2 SUSE-RU-2019:2816-1
SLES 12 SP4 rsyslog 8.24.0-3.33.2 SUSE-RU-2019:2816-1
SLES 12 SP2 rsyslog 8.4.0-18.13.1 SUSE-SU-2020:0512-1
Show 6 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES 12 SP1 rsyslog 8.4.0-13.8.1 SUSE-SU-2020:0424-1
SLES for SAP 12 SP5 rsyslog 8.24.0-3.33.2 SUSE-RU-2019:2816-1
SLES for SAP 12 SP4 rsyslog 8.24.0-3.33.2 SUSE-RU-2019:2816-1
SLES for SAP 12 SP2 rsyslog 8.4.0-18.13.1 SUSE-SU-2020:0512-1
SLES for SAP 12 SP1 rsyslog 8.4.0-13.8.1 SUSE-SU-2020:0424-1
SUSE OpenStack Cloud 7 rsyslog 8.4.0-18.13.1 SUSE-SU-2020:0512-1
ReleasePackageFixed inAdvisory
openSUSE Leap 15.1 rsyslog 8.33.1-lp151.6.10.1 openSUSE-SU-2019:2501-1
openSUSE Leap 15.0 rsyslog 8.33.1-lp150.2.19.1 openSUSE-SU-2019:2500-1
ReleasePackageFixed inAdvisory
Alpine v3.24 rsyslog 8.1908.0-r1 —
Alpine v3.23 rsyslog 8.1908.0-r1 —
Alpine v3.22 rsyslog 8.1908.0-r1 —
Alpine v3.21 rsyslog 8.1908.0-r1 —
Alpine v3.20 rsyslog 8.1908.0-r1 —
Show 13 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 rsyslog 8.1908.0-r1 —
Alpine v3.18 rsyslog 8.1908.0-r1 —
Alpine v3.17 rsyslog 8.1908.0-r1 —
Alpine v3.16 rsyslog 8.1908.0-r1 —
Alpine v3.15 rsyslog 8.1908.0-r1 —
Alpine v3.14 rsyslog 8.1908.0-r1 —
Alpine v3.13 rsyslog 8.1908.0-r1 —
Alpine v3.12 rsyslog 8.1908.0-r1 —
Alpine v3.11 rsyslog 8.1908.0-r1 —
Alpine v3.10 rsyslog 8.1904.0-r1 —
Alpine v3.9 rsyslog 8.40.0-r4 —
Alpine v3.8 rsyslog 8.34.0-r1 —
Alpine v3.7 rsyslog 8.31.0-r1 —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2 rsyslog +17 8.24.0-52.amzn2 ALAS2-2020-1447

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 8 rsyslog +15 8.1911.0-3.el8 ELSA-2020-1702
Oracle Linux 7 rsyslog +17 8.24.0-52.el7 ELSA-2020-1000

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Advisories 14

References