CVE-2019-17042
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.
| Package | Ecosystem | Fixed in |
|---|---|---|
| rsyslog | Alpine | 8.1908.0-r1, 8.1904.0-r1, 8.40.0-r4, 8.34.0-r1, 8.31.0-r1 |
| rsyslog-crypto | Amazon Linux | 8.24.0-52.amzn2 |
| rsyslog-mysql | Amazon Linux | 8.24.0-52.amzn2 |
| rsyslog-gssapi | Amazon Linux | 8.24.0-52.amzn2 |
| rsyslog-kafka | Amazon Linux | 8.24.0-52.amzn2 |
| rsyslog-udpspoof | Amazon Linux | 8.24.0-52.amzn2 |
| rsyslog | Amazon Linux | 8.24.0-52.amzn2 |
| rsyslog-libdbi | Amazon Linux | 8.24.0-52.amzn2 |
| rsyslog-relp | Amazon Linux | 8.24.0-52.amzn2 |
| rsyslog-elasticsearch | Amazon Linux | 8.24.0-52.amzn2 |
| rsyslog-snmp | Amazon Linux | 8.24.0-52.amzn2 |
| rsyslog-doc | Amazon Linux | 8.24.0-52.amzn2 |
6 more packages have a fixed version. See every fix in Lookup.
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| alpine | rsyslog | 0, 0, 0 |
| amazon:2 | rsyslog-crypto | 0 |
| amazon:2 | rsyslog-mysql | 0 |
| amazon:2 | rsyslog-gssapi | 0 |
| amazon:2 | rsyslog-kafka | 0 |
| amazon:2 | rsyslog-udpspoof | 0 |
| amazon:2 | rsyslog | 0 |
| amazon:2 | rsyslog-libdbi | 0 |
| amazon:2 | rsyslog-relp | 0 |
| amazon:2 | rsyslog-elasticsearch | 0 |
| amazon:2 | rsyslog-snmp | 0 |
| amazon:2 | rsyslog-doc | 0 |
| amazon:2 | rsyslog-pgsql | 0 |
| amazon:2 | rsyslog-mmjsonparse | 0 |
| amazon:2 | rsyslog-mmkubernetes | 0 |
| amazon:2 | rsyslog-mmnormalize | 0 |
| amazon:2 | rsyslog-gnutls | 0 |
| n/a | n/a | * |
| amazon:2 | rsyslog-mmsnmptrapd | 0 |
…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
- x_refsource_CONFIRM
- x_refsource_CONFIRM
- openSUSE-SU-2019:2500 vendor-advisoryx_refsource_SUSE
- openSUSE-SU-2019:2501 vendor-advisoryx_refsource_SUSE
- FEDORA-2019-ea7d5876a4 vendor-advisoryx_refsource_FEDORA
- FEDORA-2019-1fb95ae48d vendor-advisoryx_refsource_FEDORA
- [debian-lts-announce] 20211130 [SECURITY] [DLA 2835-1] rsyslog security update mailing-listx_refsource_MLIST