SecurityContext

CVE-2019-17041: Rsyslog - Buffer Overflow

  • Cve: CVE-2019-17041
  • Name: Rsyslog - Buffer Overflow
  • 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.
  • Impact: Attackers can cause heap overflow leading to potential remote code execution or denial of service.
  • Remediation: Update to the latest version of Rsyslog where this issue is fixed.
  • Vulnerability type: buffer_overflow
  • Vulnerability impact: remote_code_execution, denial_of_service
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: critical
  • Cvss score: 9.8
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Epss score: 0.04445
  • Epss percentile: 0.91643
  • Assignee: [email protected]
  • Published at: 2019-10-07T16:15:11Z
  • Age in days: 2605
  • Modified at: 2026-06-17T02:23:11Z
  • Patch available: yes
  • Public exploits total: 1
  • References total: 7
  • Products total: 4
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2019-17041
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-787Out-of-bounds Write

Public exploits

UrlSourceAdded date
https://github.com/Resery/CVE-2019-17041poc-in-github2020-12-05

References

Same in every row:

  • Source: nvd
UrlTags
https://github.com/rsyslog/rsyslog/pull/3884Patch, Third Party Advisory
http://lists.opensuse.org/opensuse-security-announce/2019-11/msg00031.htmlMailing List, Third Party Advisory
http://lists.opensuse.org/opensuse-security-announce/2019-11/msg00032.htmlMailing List, Third Party Advisory
https://github.com/rsyslog/rsyslog/blob/v8-stable/ChangeLogRelease Notes, Third Party Advisory
https://lists.debian.org/debian-lts-announce/2021/11/msg00030.htmlMailing List, Third Party Advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/KPNCHI7X2IEXRH6RYD6IDPR4PLB5RPC7/
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/W6SUQE25RD37CD24BHKUWMG27U5RQ2FU/

Products

Same in every row:

  • Platform bound: no
  • Sources: nvd
ProductAffectedUrl
rsyslog:rsyslog= 8.1908.0/v1/products/rsyslog/rsyslog
debian:debian_linux= 9.0/v1/products/debian/debian_linux
fedoraproject:fedora= 31, = 30/v1/products/fedoraproject/fedora
opensuse:leap= 15.1, = 15.0/v1/products/opensuse/leap

Projects

RepositoryLink kindsIndexedUrl
rsyslog/rsyslogpullyes/v1/repositories/rsyslog/rsyslog

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Public exploit: yes
  • Public exploit count: 1
  • Public exploit first date: 2020-12-05
  • Remote: yes
  • Exposed hosts: 4739835
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports