Vulnerabilities / CVE-2019-17042

critical

CVE-2019-17042

rsyslog: heap-based overflow in contrib/pmcisconames/pmcisconames.c

Published Modified CWE 20
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Red Hat7.5CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Trivy's own label is CRITICAL. Rated critical by NVD, Photon OS. Rated lower by Red Hat (medium), Amazon (medium), Oracle (medium), Ubuntu (low).

Description

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.

Affected packages and fixed versions

SourcePackageFixed in
Photon OS 1.0rsyslog8.1910.0-2.ph1
Photon OS 2.0rsyslog8.1910.0-1.ph2
Photon OS 3.0rsyslog8.1910.0-1.ph3
alpine 3.10rsyslog8.1904.0-r1
alpine 3.11rsyslog8.1908.0-r1
alpine 3.12rsyslog8.1908.0-r1
alpine 3.13rsyslog8.1908.0-r1
alpine 3.14rsyslog8.1908.0-r1
alpine 3.15rsyslog8.1908.0-r1
alpine 3.16rsyslog8.1908.0-r1
alpine 3.17rsyslog8.1908.0-r1
alpine 3.18rsyslog8.1908.0-r1
Show all 100 entries from 36 sources
SourcePackageFixed in
Photon OS 1.0rsyslog8.1910.0-2.ph1
Photon OS 2.0rsyslog8.1910.0-1.ph2
Photon OS 3.0rsyslog8.1910.0-1.ph3
alpine 3.10rsyslog8.1904.0-r1
alpine 3.11rsyslog8.1908.0-r1
alpine 3.12rsyslog8.1908.0-r1
alpine 3.13rsyslog8.1908.0-r1
alpine 3.14rsyslog8.1908.0-r1
alpine 3.15rsyslog8.1908.0-r1
alpine 3.16rsyslog8.1908.0-r1
alpine 3.17rsyslog8.1908.0-r1
alpine 3.18rsyslog8.1908.0-r1
alpine 3.19rsyslog8.1908.0-r1
alpine 3.20rsyslog8.1908.0-r1
alpine 3.21rsyslog8.1908.0-r1
alpine 3.22rsyslog8.1908.0-r1
alpine 3.23rsyslog8.1908.0-r1
alpine 3.24rsyslog8.1908.0-r1
alpine 3.7rsyslog8.31.0-r1
alpine 3.8rsyslog8.34.0-r1
alpine 3.9rsyslog8.40.0-r4
alpine edgersyslog8.1908.0-r1
amazon linux 2rsyslog8.24.0-52.amzn2
amazon linux 2rsyslog-crypto8.24.0-52.amzn2
amazon linux 2rsyslog-debuginfo8.24.0-52.amzn2
amazon linux 2rsyslog-doc8.24.0-52.amzn2
amazon linux 2rsyslog-elasticsearch8.24.0-52.amzn2
amazon linux 2rsyslog-gnutls8.24.0-52.amzn2
amazon linux 2rsyslog-gssapi8.24.0-52.amzn2
amazon linux 2rsyslog-kafka8.24.0-52.amzn2
amazon linux 2rsyslog-libdbi8.24.0-52.amzn2
amazon linux 2rsyslog-mmaudit8.24.0-52.amzn2
amazon linux 2rsyslog-mmjsonparse8.24.0-52.amzn2
amazon linux 2rsyslog-mmkubernetes8.24.0-52.amzn2
amazon linux 2rsyslog-mmnormalize8.24.0-52.amzn2
amazon linux 2rsyslog-mmsnmptrapd8.24.0-52.amzn2
amazon linux 2rsyslog-mysql8.24.0-52.amzn2
amazon linux 2rsyslog-pgsql8.24.0-52.amzn2
amazon linux 2rsyslog-relp8.24.0-52.amzn2
amazon linux 2rsyslog-snmp8.24.0-52.amzn2
amazon linux 2rsyslog-udpspoof8.24.0-52.amzn2
debian 10rsyslog8.1901.0-1+deb10u1
debian 11rsyslog8.1910.0-1
debian 12rsyslog8.1910.0-1
debian 13rsyslog8.1910.0-1
debian 14rsyslog8.1910.0-1
debian 8rsyslog8.4.2-1+deb8u3
debian 9rsyslog8.24.0-1+deb9u1
echorsyslog8.1910.0-1
Oracle Linux 7rsyslog8.24.0-52.el7
Oracle Linux 7rsyslog-crypto8.24.0-52.el7
Oracle Linux 7rsyslog-doc8.24.0-52.el7
Oracle Linux 7rsyslog-elasticsearch8.24.0-52.el7
Oracle Linux 7rsyslog-gnutls8.24.0-52.el7
Oracle Linux 7rsyslog-gssapi8.24.0-52.el7
Oracle Linux 7rsyslog-kafka8.24.0-52.el7
Oracle Linux 7rsyslog-libdbi8.24.0-52.el7
Oracle Linux 7rsyslog-mmaudit8.24.0-52.el7
Oracle Linux 7rsyslog-mmjsonparse8.24.0-52.el7
Oracle Linux 7rsyslog-mmkubernetes8.24.0-52.el7
Oracle Linux 7rsyslog-mmnormalize8.24.0-52.el7
Oracle Linux 7rsyslog-mmsnmptrapd8.24.0-52.el7
Oracle Linux 7rsyslog-mysql8.24.0-52.el7
Oracle Linux 7rsyslog-pgsql8.24.0-52.el7
Oracle Linux 7rsyslog-relp8.24.0-52.el7
Oracle Linux 7rsyslog-snmp8.24.0-52.el7
Oracle Linux 7rsyslog-udpspoof8.24.0-52.el7
Oracle Linux 8rsyslog8.1911.0-3.el8
Oracle Linux 8rsyslog-crypto8.1911.0-3.el8
Oracle Linux 8rsyslog-doc8.1911.0-3.el8
Oracle Linux 8rsyslog-elasticsearch8.1911.0-3.el8
Oracle Linux 8rsyslog-gnutls8.1911.0-3.el8
Oracle Linux 8rsyslog-gssapi8.1911.0-3.el8
Oracle Linux 8rsyslog-kafka8.1911.0-3.el8
Oracle Linux 8rsyslog-mmaudit8.1911.0-3.el8
Oracle Linux 8rsyslog-mmjsonparse8.1911.0-3.el8
Oracle Linux 8rsyslog-mmkubernetes8.1911.0-3.el8
Oracle Linux 8rsyslog-mmnormalize8.1911.0-3.el8
Oracle Linux 8rsyslog-mmsnmptrapd8.1911.0-3.el8
Oracle Linux 8rsyslog-mysql8.1911.0-3.el8
Oracle Linux 8rsyslog-pgsql8.1911.0-3.el8
Oracle Linux 8rsyslog-relp8.1911.0-3.el8
Oracle Linux 8rsyslog-snmp8.1911.0-3.el8
Red Hatrsyslogno fix listed
Red Hatrsyslog-gnutlsno fix listed
Red Hatrsyslog-gssapino fix listed
Red Hatrsyslog-mysqlno fix listed
Red Hatrsyslog-pgsqlno fix listed
Red Hatrsyslog-relpno fix listed
Red Hatrsyslog-snmpno fix listed
Red Hatrsyslog7no fix listed
Red Hatrsyslog7-elasticsearchno fix listed
Red Hatrsyslog7-gnutlsno fix listed
Red Hatrsyslog7-gssapino fix listed
Red Hatrsyslog7-mysqlno fix listed
Red Hatrsyslog7-pgsqlno fix listed
Red Hatrsyslog7-relpno fix listed
Red Hatrsyslog7-snmpno fix listed
ubuntu 16.04-ESMrsyslog8.16.0-1ubuntu3.1+esm1
ubuntu 18.04-ESMrsyslogno fix listed

References

All 13 references

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.