VDB

CVE-2019-17042

CVE-2019-17042 PUBLISHED

Reported by mitre · Published October 7, 2019

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
rsyslogAlpine8.1908.0-r1, 8.1904.0-r1, 8.40.0-r4, 8.34.0-r1, 8.31.0-r1
rsyslog-cryptoAmazon Linux8.24.0-52.amzn2
rsyslog-mysqlAmazon Linux8.24.0-52.amzn2
rsyslog-gssapiAmazon Linux8.24.0-52.amzn2
rsyslog-kafkaAmazon Linux8.24.0-52.amzn2
rsyslog-udpspoofAmazon Linux8.24.0-52.amzn2
rsyslogAmazon Linux8.24.0-52.amzn2
rsyslog-libdbiAmazon Linux8.24.0-52.amzn2
rsyslog-relpAmazon Linux8.24.0-52.amzn2
rsyslog-elasticsearchAmazon Linux8.24.0-52.amzn2
rsyslog-snmpAmazon Linux8.24.0-52.amzn2
rsyslog-docAmazon Linux8.24.0-52.amzn2

6 more packages have a fixed version. See every fix in Lookup.

Affected products

VendorProductVersions
n/an/an/a
alpinersyslog0, 0, 0
amazon:2rsyslog-crypto0
amazon:2rsyslog-mysql0
amazon:2rsyslog-gssapi0
amazon:2rsyslog-kafka0
amazon:2rsyslog-udpspoof0
amazon:2rsyslog0
amazon:2rsyslog-libdbi0
amazon:2rsyslog-relp0
amazon:2rsyslog-elasticsearch0
amazon:2rsyslog-snmp0
amazon:2rsyslog-doc0
amazon:2rsyslog-pgsql0
amazon:2rsyslog-mmjsonparse0
amazon:2rsyslog-mmkubernetes0
amazon:2rsyslog-mmnormalize0
amazon:2rsyslog-gnutls0
n/an/a*
amazon:2rsyslog-mmsnmptrapd0

…and 1 more

Timeline

  • Oct 7, 2019 CVE Published
  • Apr 14, 2021 EPSS Score (30 in total, the first dated here)
  • Mar 6, 2026 Distribution Patch
  • Mar 6, 2026 Security Advisory (6 in total, the first dated here)
  • Sep 13, 2026 Coalition ESS Score

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2019-17042
vulnetix vdb fixes CVE-2019-17042

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2019-17042/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›